// File: /workspace/github_c_makefile_star2_O1/pavel-demin[P]ft8d-c/pffft.c
// Function: passf4_ps
static NEVER_INLINE(void) passf4_ps(int ido, int l1, const v4sf *cc, v4sf *ch,
                                    const float *wa1, const float *wa2, const float *wa3, float fsign) {
  /* isign == -1 for forward transform and +1 for backward transform */

  int i, k;
  v4sf ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, tr3, tr4;
  int l1ido = l1*ido;
  if (ido == 2) {
    for (k=0; k < l1ido; k += ido, ch += ido, cc += 4*ido) {
      tr1 = VSUB(cc[0], cc[2*ido + 0]);
      tr2 = VADD(cc[0], cc[2*ido + 0]);
      ti1 = VSUB(cc[1], cc[2*ido + 1]);
      ti2 = VADD(cc[1], cc[2*ido + 1]);
      ti4 = VMUL(VSUB(cc[1*ido + 0], cc[3*ido + 0]), LD_PS1(fsign));
      tr4 = VMUL(VSUB(cc[3*ido + 1], cc[1*ido + 1]), LD_PS1(fsign));
      tr3 = VADD(cc[ido + 0], cc[3*ido + 0]);
      ti3 = VADD(cc[ido + 1], cc[3*ido + 1]);

      ch[0*l1ido + 0] = VADD(tr2, tr3);
      ch[0*l1ido + 1] = VADD(ti2, ti3);
      ch[1*l1ido + 0] = VADD(tr1, tr4);
      ch[1*l1ido + 1] = VADD(ti1, ti4);
      ch[2*l1ido + 0] = VSUB(tr2, tr3);
      ch[2*l1ido + 1] = VSUB(ti2, ti3);
      ch[3*l1ido + 0] = VSUB(tr1, tr4);
      ch[3*l1ido + 1] = VSUB(ti1, ti4);
    }
  } else {
    for (k=0; k < l1ido; k += ido, ch+=ido, cc += 4*ido) {
      for (i=0; i<ido-1; i+=2) {
        float wr1, wi1, wr2, wi2, wr3, wi3;
        tr1 = VSUB(cc[i + 0], cc[i + 2*ido + 0]);
        tr2 = VADD(cc[i + 0], cc[i + 2*ido + 0]);
        ti1 = VSUB(cc[i + 1], cc[i + 2*ido + 1]);
        ti2 = VADD(cc[i + 1], cc[i + 2*ido + 1]);
        tr4 = VMUL(VSUB(cc[i + 3*ido + 1], cc[i + 1*ido + 1]), LD_PS1(fsign));
        ti4 = VMUL(VSUB(cc[i + 1*ido + 0], cc[i + 3*ido + 0]), LD_PS1(fsign));
        tr3 = VADD(cc[i + ido + 0], cc[i + 3*ido + 0]);
        ti3 = VADD(cc[i + ido + 1], cc[i + 3*ido + 1]);

        ch[i] = VADD(tr2, tr3);
        cr3    = VSUB(tr2, tr3);
        ch[i + 1] = VADD(ti2, ti3);
        ci3 = VSUB(ti2, ti3);

        cr2 = VADD(tr1, tr4);
        cr4 = VSUB(tr1, tr4);
        ci2 = VADD(ti1, ti4);
        ci4 = VSUB(ti1, ti4);
        wr1=wa1[i]; wi1=fsign*wa1[i+1];
        VCPLXMUL(cr2, ci2, LD_PS1(wr1), LD_PS1(wi1));
        wr2=wa2[i]; wi2=fsign*wa2[i+1];
        ch[i + l1ido] = cr2;
        ch[i + l1ido + 1] = ci2;

        VCPLXMUL(cr3, ci3, LD_PS1(wr2), LD_PS1(wi2));
        wr3=wa3[i]; wi3=fsign*wa3[i+1];
        ch[i + 2*l1ido] = cr3;
        ch[i + 2*l1ido + 1] = ci3;

        VCPLXMUL(cr4, ci4, LD_PS1(wr3), LD_PS1(wi3));
        ch[i + 3*l1ido] = cr4;
        ch[i + 3*l1ido + 1] = ci4;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
imull %edi, %esi
cmpl $0x2, %edi
jne 0x1f17
testl %esi, %esi
jle 0x2184
movq %rsi, %rbx
shufps $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movl %ebx, %eax
leal (%rsi,%rsi), %r8d
leal (%rsi,%rsi,2), %esi
shlq $0x4, %rax
addq %rcx, %rax
leal 0x1(%rbx), %edi
shlq $0x4, %rdi
addq %rcx, %rdi
shlq $0x4, %r8
addq %rcx, %r8
addq $0x10, %r8
shlq $0x4, %rsi
addq %rcx, %rsi
leal (%rbx,%rbx,2), %r9d
incl %r9d
shlq $0x4, %r9
addq %rcx, %r9
xorl %r10d, %r10d
xorl %r11d, %r11d
movaps 0x40(%rdx,%r10,4), %xmm4
movaps (%rdx,%r10,4), %xmm3
movaps 0x10(%rdx,%r10,4), %xmm1
movaps 0x20(%rdx,%r10,4), %xmm5
movaps 0x30(%rdx,%r10,4), %xmm7
movaps %xmm3, %xmm2
subps %xmm4, %xmm2
addps %xmm4, %xmm3
movaps 0x50(%rdx,%r10,4), %xmm6
movaps %xmm1, %xmm4
subps %xmm6, %xmm4
addps %xmm6, %xmm1
movaps 0x60(%rdx,%r10,4), %xmm8
movaps %xmm5, %xmm6
subps %xmm8, %xmm6
mulps %xmm0, %xmm6
movaps 0x70(%rdx,%r10,4), %xmm9
movaps %xmm9, %xmm10
subps %xmm7, %xmm10
mulps %xmm0, %xmm10
addps %xmm8, %xmm5
addps %xmm7, %xmm9
movaps %xmm3, %xmm7
addps %xmm5, %xmm7
movaps %xmm7, (%rcx,%r10)
movaps %xmm1, %xmm7
addps %xmm9, %xmm7
movaps %xmm7, 0x10(%rcx,%r10)
movaps %xmm2, %xmm7
addps %xmm10, %xmm7
movaps %xmm7, (%rax,%r10)
movaps %xmm4, %xmm7
addps %xmm6, %xmm7
movaps %xmm7, (%rdi,%r10)
subps %xmm5, %xmm3
movaps %xmm3, -0x10(%r8,%r10)
subps %xmm9, %xmm1
movaps %xmm1, (%r8,%r10)
subps %xmm10, %xmm2
movaps %xmm2, (%rsi,%r10)
subps %xmm6, %xmm4
movaps %xmm4, (%r9,%r10)
addl $0x2, %r11d
addq $0x20, %r10
cmpl %ebx, %r11d
jl 0x1e50
jmp 0x2184
testl %esi, %esi
jle 0x2184
movq 0x38(%rsp), %rax
leal -0x1(%rdi), %ebp
leal (%rdi,%rdi), %r10d
movq %r10, -0x20(%rsp)
movq %rdi, -0x28(%rsp)
movq -0x28(%rsp), %rdi
leal (%rdi,%rdi,2), %r10d
movaps %xmm0, %xmm1
shufps $0x0, %xmm0, %xmm1      # xmm1 = xmm1[0,0],xmm0[0,0]
leal (%rsi,%rsi), %r11d
leal (%rsi,%rsi,2), %r14d
movslq -0x28(%rsp), %r15
movq -0x28(%rsp), %rbx
leal (,%rbx,4), %ebx
movslq %ebx, %rdi
movl -0x28(%rsp), %r13d
movl %esi, %r12d
movslq %ebp, %rbx
shlq $0x4, %r14
addq %rcx, %r14
addq $0x10, %r14
shlq $0x4, %r15
movq %r15, -0x10(%rsp)
shlq $0x4, %r11
leaq (%r11,%rcx), %r15
addq $0x10, %r15
shlq $0x4, %r12
addq %rcx, %r12
addq $0x10, %r12
shlq $0x4, %r13
addq %rdx, %r13
addq $0x10, %r13
shlq $0x4, %rdi
movq %rdi, -0x18(%rsp)
shlq $0x4, %r10
leaq (%r10,%rdx), %rbp
addq $0x10, %rbp
movq -0x28(%rsp), %rdi
movq -0x20(%rsp), %r10
shlq $0x4, %r10
addq %rdx, %r10
addq $0x10, %r10
movq $0x0, -0x20(%rsp)
movq %rsi, -0x8(%rsp)
cmpl $0x2, %edi
jl 0x213f
xorl %edi, %edi
xorl %r11d, %r11d
movaps (%rdx,%rdi,4), %xmm4
movaps 0x10(%rdx,%rdi,4), %xmm5
movaps -0x10(%r10,%rdi,4), %xmm3
movaps (%r10,%rdi,4), %xmm6
movaps %xmm4, %xmm2
subps %xmm3, %xmm2
addps %xmm3, %xmm4
movaps %xmm5, %xmm3
subps %xmm6, %xmm3
addps %xmm6, %xmm5
movaps -0x10(%rbp,%rdi,4), %xmm6
movaps (%rbp,%rdi,4), %xmm7
movaps -0x10(%r13,%rdi,4), %xmm8
movaps (%r13,%rdi,4), %xmm9
movaps %xmm7, %xmm10
subps %xmm9, %xmm10
mulps %xmm1, %xmm10
movaps %xmm8, %xmm11
subps %xmm6, %xmm11
mulps %xmm1, %xmm11
addps %xmm6, %xmm8
addps %xmm9, %xmm7
movaps %xmm4, %xmm6
addps %xmm8, %xmm6
movaps %xmm6, (%rcx,%rdi,4)
subps %xmm8, %xmm4
movaps %xmm5, %xmm6
addps %xmm7, %xmm6
movaps %xmm6, 0x10(%rcx,%rdi,4)
subps %xmm7, %xmm5
movaps %xmm2, %xmm6
addps %xmm10, %xmm6
subps %xmm10, %xmm2
movaps %xmm3, %xmm7
addps %xmm11, %xmm7
subps %xmm11, %xmm3
movss 0x4(%r8,%rdi), %xmm8
mulss %xmm0, %xmm8
shufps $0x0, %xmm8, %xmm8      # xmm8 = xmm8[0,0,0,0]
movaps %xmm6, %xmm9
mulps %xmm8, %xmm9
movss (%r8,%rdi), %xmm10
shufps $0x0, %xmm10, %xmm10    # xmm10 = xmm10[0,0,0,0]
mulps %xmm10, %xmm6
mulps %xmm7, %xmm8
subps %xmm8, %xmm6
mulps %xmm7, %xmm10
addps %xmm9, %xmm10
movss 0x4(%r9,%rdi), %xmm7
mulss %xmm0, %xmm7
movss (%r9,%rdi), %xmm8
movaps %xmm6, -0x10(%r12,%rdi,4)
movaps %xmm10, (%r12,%rdi,4)
shufps $0x0, %xmm7, %xmm7      # xmm7 = xmm7[0,0,0,0]
movaps %xmm4, %xmm6
mulps %xmm7, %xmm6
shufps $0x0, %xmm8, %xmm8      # xmm8 = xmm8[0,0,0,0]
mulps %xmm8, %xmm4
mulps %xmm5, %xmm7
subps %xmm7, %xmm4
mulps %xmm5, %xmm8
addps %xmm6, %xmm8
movss 0x4(%rax,%rdi), %xmm5
mulss %xmm0, %xmm5
movss (%rax,%rdi), %xmm6
movaps %xmm4, -0x10(%r15,%rdi,4)
movaps %xmm8, (%r15,%rdi,4)
shufps $0x0, %xmm5, %xmm5      # xmm5 = xmm5[0,0,0,0]
movaps %xmm2, %xmm4
mulps %xmm5, %xmm4
shufps $0x0, %xmm6, %xmm6      # xmm6 = xmm6[0,0,0,0]
mulps %xmm6, %xmm2
mulps %xmm3, %xmm5
subps %xmm5, %xmm2
mulps %xmm3, %xmm6
addps %xmm4, %xmm6
movaps %xmm2, -0x10(%r14,%rdi,4)
movaps %xmm6, (%r14,%rdi,4)
addq $0x2, %r11
addq $0x8, %rdi
cmpq %rbx, %r11
jl 0x1fe8
movq -0x28(%rsp), %rdi
movq -0x20(%rsp), %rax
addl %edi, %eax
movq -0x10(%rsp), %rsi
addq %rsi, %r14
addq %rsi, %r15
addq %rsi, %r12
movq -0x18(%rsp), %r11
addq %r11, %r13
addq %r11, %rbp
addq %r11, %r10
addq %rsi, %rcx
addq %r11, %rdx
movq -0x8(%rsp), %rsi
movq %rax, -0x20(%rsp)
cmpl %esi, %eax
movq 0x38(%rsp), %rax
jl 0x1fda
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq