/*
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
 * Copyright (c) 2000-2001 Stefan Kral
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Tue Mar 25 06:42:48 EST 2003 */


/* fnset1/cheap-mode: VECTGRADE_FULLH2 succeeded. (19 steps) */
/* fnset2/cheap-mode: VECTGRADE_FULL succeeded. (82 steps) */
/* fnset1/cheap-mode: VECTGRADE_FULLH2 succeeded. (19 steps) */
.section .rodata
	.balign 64
	chs_lo: .double -1.0, +1.0
	PK1_732050807PK1_732050807: .double +1.7320508075688772935274463, +1.7320508075688772935274463
	PK2_000000000PK2_000000000: .double +2.0000000000000000000000000, +2.0000000000000000000000000
	PK866025403NK866025403: .double +0.8660254037844386467637232, -0.8660254037844386467637232
	chs_hi: .double +1.0, -1.0
	PK500000000PK500000000: .double +0.5000000000000000000000000, +0.5000000000000000000000000
	NK500000000PK500000000: .double -0.5000000000000000000000000, +0.5000000000000000000000000
	NK866025403PK866025403: .double -0.8660254037844386467637232, +0.8660254037844386467637232
	NK1_732050807PK1_732050807: .double -1.7320508075688772935274463, +1.7320508075688772935274463
	NK2_000000000PK2_000000000: .double -2.0000000000000000000000000, +2.0000000000000000000000000

	

.text
	.balign 64
	.globl	fftw_hc2hc_backward_6
	.type	fftw_hc2hc_backward_6, @function
fftw_hc2hc_backward_6:
	/* promise simd cell size = 16 */ 
	subl $16, %esp
	movl 28(%esp), %ecx
	movl %ebx, 12(%esp)
	movl 20(%esp), %eax
	movl %esi, 8(%esp)
	movl %edi, 4(%esp)
	movl %ebp, 0(%esp)
	sall $3, 36(%esp)
	movl 24(%esp), %ebp
	leal (,%ecx,8), %edx
	leal (%edx,%edx,2), %ebx
	leal (%edx,%edx,4), %esi
	leal (%edx,%edx,2), %ecx
	leal (%edx,%edx,4), %edi
	movhpd (%eax,%ebx), %xmm0
	movlpd (%eax), %xmm0
	movl %eax, %ebx
	movhpd (%eax,%esi), %xmm2
	movlpd (%eax,%edx,4), %xmm2
	movl %eax, %esi
	movapd %xmm0, %xmm1
	movapd %xmm0, %xmm4
	movhpd (%eax,%edx), %xmm0
	movlpd (%eax,%edx,2), %xmm0
	movapd %xmm2, %xmm3
	/* simd data load/store barrier */ 
	shufpd $9, %xmm1, %xmm1
	shufpd $9, %xmm3, %xmm3
	mulsd chs_lo, %xmm1
	movapd %xmm0, %xmm5
	mulsd chs_lo, %xmm3
	shufpd $9, %xmm5, %xmm5
	addpd %xmm1, %xmm4
	addpd %xmm3, %xmm2
	movapd %xmm4, %xmm6
	movapd %xmm4, %xmm7
	mulsd chs_lo, %xmm5
	mulpd PK1_732050807PK1_732050807, %xmm2
	addpd %xmm5, %xmm0
	subpd %xmm0, %xmm6
	mulpd PK2_000000000PK2_000000000, %xmm0
	movapd %xmm6, %xmm1
	addpd %xmm0, %xmm7
	shufpd $9, %xmm1, %xmm1
	movlpd %xmm7, (%eax,%ecx)
	movhpd %xmm7, (%eax)
	movapd %xmm1, %xmm3
	addpd %xmm2, %xmm1
	subpd %xmm2, %xmm3
	movlpd %xmm1, (%eax,%edx,2)
	movhpd %xmm1, (%eax,%edi)
	movlpd %xmm3, (%eax,%edx,4)
	movhpd %xmm3, (%eax,%edx)
	jmp .LC2
	.p2align 4,,7
.LC1:
	/* promise simd cell size = 16 */ 
	leal (%edx,%edx,2), %ecx
	leal (%edx,%edx,4), %edi
	movhpd (%ebx,%edx,4), %xmm1
	movlpd (%ebx,%edx), %xmm1
	leal (%edx,%edx,4), %eax
	movhpd (%esi,%ecx,2), %xmm6
	movlpd (%ebx), %xmm6
	movhpd (%ebx,%edi), %xmm2
	movlpd (%esi,%edx), %xmm2
	movhpd (%ebx,%ecx), %xmm4
	movlpd (%esi,%ecx), %xmm4
	leal (%edx,%edx,2), %ecx
	movapd %xmm1, %xmm3
	movlpd (%esi,%edx,2), %xmm1
	movhpd (%esi,%edi), %xmm1
	mulsd chs_lo, %xmm3
	movapd %xmm6, %xmm5
	movapd %xmm6, %xmm0
	movhpd (%esi,%edx,4), %xmm6
	movlpd (%ebx,%edx,2), %xmm6
	mulsd chs_lo, %xmm2
	/* simd data load/store barrier */ 
	mulsd chs_lo, %xmm4
	subpd %xmm4, %xmm5
	movapd %xmm6, %xmm7
	addpd %xmm4, %xmm0
	movapd %xmm1, %xmm4
	addpd %xmm2, %xmm6
	subpd %xmm2, %xmm7
	subpd %xmm3, %xmm1
	movapd %xmm7, %xmm2
	addpd %xmm3, %xmm4
	movapd %xmm5, %xmm3
	subpd %xmm1, %xmm7
	addpd %xmm1, %xmm2
	movapd %xmm4, %xmm1
	shufpd $9, %xmm3, %xmm3
	mulpd PK866025403NK866025403, %xmm7
	addpd %xmm2, %xmm5
	mulsd chs_lo, %xmm1
	shufpd $9, %xmm2, %xmm2
	movlpd %xmm5, (%ebx)
	movhpd %xmm5, (%esi,%edx)
	movapd %xmm6, %xmm5
	mulpd chs_hi, %xmm6
	mulpd PK500000000PK500000000, %xmm2
	addpd %xmm1, %xmm5
	addpd %xmm6, %xmm4
	movapd %xmm0, %xmm6
	shufpd $9, %xmm5, %xmm5
	subpd %xmm2, %xmm3
	movapd %xmm4, %xmm1
	mulsd chs_lo, %xmm4
	mulpd NK500000000PK500000000, %xmm1
	subpd %xmm4, %xmm0
	mulpd NK866025403PK866025403, %xmm5
	movapd (%ebp), %xmm4
	addpd %xmm1, %xmm6
	movapd %xmm6, %xmm2
	subpd %xmm5, %xmm6
	addpd %xmm5, %xmm2
	movapd %xmm4, %xmm1
	movapd %xmm6, %xmm5
	mulpd %xmm2, %xmm1
	shufpd $9, %xmm2, %xmm2
	shufpd $9, %xmm5, %xmm5
	mulpd %xmm2, %xmm4
	movapd %xmm1, %xmm2
	unpckhpd %xmm4, %xmm2
	unpcklpd %xmm4, %xmm1
	mulsd chs_lo, %xmm2
	movapd 64(%ebp), %xmm4
	subpd %xmm2, %xmm1
	movapd %xmm4, %xmm2
	mulpd %xmm5, %xmm4
	movapd %xmm0, %xmm5
	movlpd %xmm1, (%ebx,%edx)
	movhpd %xmm1, (%esi,%edx,2)
	mulpd %xmm6, %xmm2
	movapd 32(%ebp), %xmm6
	shufpd $9, %xmm5, %xmm5
	movapd %xmm2, %xmm1
	unpcklpd %xmm4, %xmm2
	unpckhpd %xmm4, %xmm1
	movapd %xmm6, %xmm4
	mulpd %xmm5, %xmm6
	movapd %xmm3, %xmm5
	subpd %xmm7, %xmm3
	mulpd %xmm0, %xmm4
	addpd %xmm7, %xmm5
	mulsd chs_lo, %xmm1
	movapd 48(%ebp), %xmm7
	movapd %xmm4, %xmm0
	unpckhpd %xmm6, %xmm4
	subpd %xmm1, %xmm2
	movapd %xmm3, %xmm1
	unpcklpd %xmm6, %xmm0
	movapd 16(%ebp), %xmm6
	addl $80, %ebp
	mulsd chs_lo, %xmm4
	movlpd %xmm2, (%ebx,%eax)
	movhpd %xmm2, (%esi,%ecx,2)
	shufpd $9, %xmm1, %xmm1
	movapd %xmm7, %xmm2
	subpd %xmm4, %xmm0
	mulpd %xmm5, %xmm2
	shufpd $9, %xmm5, %xmm5
	movapd %xmm6, %xmm4
	movlpd %xmm0, (%ebx,%ecx)
	movhpd %xmm0, (%esi,%edx,4)
	movapd %xmm2, %xmm0
	mulpd %xmm3, %xmm4
	movapd %xmm6, %xmm3
	mulpd %xmm5, %xmm7
	mulpd %xmm1, %xmm3
	movapd %xmm4, %xmm5
	unpckhpd %xmm7, %xmm0
	unpckhpd %xmm3, %xmm5
	unpcklpd %xmm7, %xmm2
	mulsd chs_lo, %xmm0
	unpcklpd %xmm3, %xmm4
	mulsd chs_lo, %xmm5
	addpd %xmm2, %xmm0
	movapd %xmm5, %xmm7
	movlpd %xmm0, (%esi,%eax)
	movhpd %xmm0, (%ebx,%edx,4)
	addpd %xmm4, %xmm7
	movlpd %xmm7, (%esi,%ecx)
	movhpd %xmm7, (%ebx,%edx,2)
	addl 36(%esp), %ebx
	subl 36(%esp), %esi
	subl $2, 32(%esp)
	jg .LC1
	je .LC3
	jmp .LC4
	.p2align 4,,7
.LC2:
	addl 36(%esp), %ebx
	subl 36(%esp), %esi
	subl $2, 32(%esp)
	jg .LC1
	je .LC3
	jmp .LC4
	.p2align 4,,7
.LC3:
	/* promise simd cell size = 16 */ 
	leal (%edx,%edx,4), %eax
	leal (%edx,%edx,2), %edi
	movhpd (%esi,%edx,4), %xmm1
	movlpd (%ebx,%edx,2), %xmm1
	movlpd (%ebx), %xmm6
	leal (%edx,%edx,2), %ecx
	movhpd (%esi,%eax), %xmm5
	movlpd (%ebx,%edx), %xmm5
	leal (%edx,%edx,4), %eax
	movhpd (%esi,%edi,2), %xmm6
	/* simd data load/store barrier */ 
	movapd %xmm1, %xmm3
	movapd %xmm5, %xmm2
	addpd %xmm6, %xmm3
	shufpd $9, %xmm2, %xmm2
	subpd %xmm6, %xmm1
	movapd %xmm3, %xmm0
	mulsd chs_lo, %xmm3
	mulpd NK1_732050807PK1_732050807, %xmm1
	shufpd $9, %xmm0, %xmm0
	mulpd NK2_000000000PK2_000000000, %xmm2
	subpd %xmm3, %xmm5
	movapd %xmm1, %xmm4
	subpd %xmm0, %xmm2
	mulpd PK2_000000000PK2_000000000, %xmm5
	mulpd chs_hi, %xmm2
	movlpd %xmm5, (%ebx)
	movhpd %xmm5, (%ebx,%ecx)
	addpd %xmm2, %xmm4
	subpd %xmm1, %xmm2
	movlpd %xmm4, (%ebx,%edx)
	movhpd %xmm4, (%ebx,%edx,2)
	mulpd chs_hi, %xmm2
	movlpd %xmm2, (%ebx,%eax)
	movhpd %xmm2, (%ebx,%edx,4)
	.p2align 4,,7
.LC4:
	movl 12(%esp), %ebx
	movl 8(%esp), %esi
	movl 4(%esp), %edi
	movl 0(%esp), %ebp
	addl $16, %esp
	ret 


.section .rodata
	.balign 4
twiddle_order:
	.long 1
	.long 2
	.long 3
	.long 4
	.long 5

	.globl fftw_hc2hc_backward_6_desc
	.balign 32
fftw_hc2hc_backward_6_desc:
	/* descr_str_ptr */	.long .LC0
	/* codelet_ptr */	.long fftw_hc2hc_backward_6
	/* n */			.long 6
	/* cdir_int */		.long 1
	/* ctype_int */		.long 6
	/* signature */		.long 146
	/* num_twiddles */	.long 5
	/* twiddle_order */	.long twiddle_order
.LC0:	.string "fftw_hc2hc_backward_6"
