// File: /workspace/github_c_makefile_star2_O0/pavel-demin[P]ft8d-c/pffft.c
// Function: cfftf1_ps
v4sf *cfftf1_ps(int n, const v4sf *input_readonly, v4sf *work1, v4sf *work2, const float *wa, const int *ifac, int isign) {
  v4sf *in  = (v4sf*)input_readonly;
  v4sf *out = (in == work2 ? work1 : work2);
  int nf = ifac[1], k1;
  int l1 = 1;
  int iw = 0;
  assert(in != out && work1 != work2);
  for (k1=2; k1<=nf+1; k1++) {
    int ip = ifac[k1];
    int l2 = ip*l1;
    int ido = n / l2;
    int idot = ido + ido;
    switch (ip) {
      case 5: {
        int ix2 = iw + idot;
        int ix3 = ix2 + idot;
        int ix4 = ix3 + idot;
        passf5_ps(idot, l1, in, out, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4], isign);
      } break;
      case 4: {
        int ix2 = iw + idot;
        int ix3 = ix2 + idot;
        passf4_ps(idot, l1, in, out, &wa[iw], &wa[ix2], &wa[ix3], isign);
      } break;
      case 2: {
        passf2_ps(idot, l1, in, out, &wa[iw], isign);
      } break;
      case 3: {
        int ix2 = iw + idot;
        passf3_ps(idot, l1, in, out, &wa[iw], &wa[ix2], isign);
      } break;
      default:
        assert(0);
    }
    l1 = l2;
    iw += (ip - 1)*idot;
    if (out == work2) {
      out = work1; in = work2;
    } else {
      out = work2; in = work1;
    }
  }

  return in; /* this is in fact the output .. */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movl 0x10(%rbp), %eax
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x2491
movq -0x18(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x2499
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x44(%rbp)
movl $0x1, -0x4c(%rbp)
movl $0x0, -0x50(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
je 0x24cf
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x24cf
jmp 0x24ee
leaq 0x161fa(%rip), %rdi     # 0x186d0
leaq 0x15d01(%rip), %rsi     # 0x181de
movl $0x487, %edx            # imm = 0x487
leaq 0x16203(%rip), %rcx     # 0x186ec
callq 0x1090
movl $0x2, -0x48(%rbp)
movl -0x48(%rbp), %eax
movl -0x44(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jg 0x271b
movq -0x30(%rbp), %rax
movslq -0x48(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl -0x4c(%rbp), %ecx
imull %ecx, %eax
movl %eax, -0x58(%rbp)
movl -0x4(%rbp), %eax
movl -0x58(%rbp), %ecx
cltd
idivl %ecx
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
addl %eax, %eax
movl %eax, -0x60(%rbp)
movl -0x54(%rbp), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
subl $0x3, %eax
ja 0x26aa
movq -0x88(%rbp), %rax
leaq 0x15b36(%rip), %rcx     # 0x18090
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x50(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl -0x60(%rbp), %edi
movl -0x4c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %r8
movslq -0x50(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r8
movq -0x28(%rbp), %r9
movslq -0x64(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r9
movq -0x28(%rbp), %r10
movslq -0x68(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r10
movq -0x28(%rbp), %rax
movslq -0x6c(%rbp), %r11
shlq $0x2, %r11
addq %r11, %rax
cvtsi2ssl 0x10(%rbp), %xmm0
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2730
jmp 0x26c9
movl -0x50(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x60(%rbp), %edi
movl -0x4c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %r8
movslq -0x50(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r8
movq -0x28(%rbp), %r9
movslq -0x70(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r9
movq -0x28(%rbp), %rax
movslq -0x74(%rbp), %r10
shlq $0x2, %r10
addq %r10, %rax
cvtsi2ssl 0x10(%rbp), %xmm0
movq %rax, (%rsp)
callq 0x3e30
jmp 0x26c9
movl -0x60(%rbp), %edi
movl -0x4c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %r8
movslq -0x50(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r8
cvtsi2ssl 0x10(%rbp), %xmm0
callq 0x50c0
jmp 0x26c9
movl -0x50(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x78(%rbp)
movl -0x60(%rbp), %edi
movl -0x4c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %r8
movslq -0x50(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r8
movq -0x28(%rbp), %r9
movslq -0x78(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r9
cvtsi2ssl 0x10(%rbp), %xmm0
callq 0x5720
jmp 0x26c9
leaq 0x16104(%rip), %rdi     # 0x187b5
leaq 0x15b26(%rip), %rsi     # 0x181de
movl $0x4a1, %edx            # imm = 0x4A1
leaq 0x16028(%rip), %rcx     # 0x186ec
callq 0x1090
movl -0x58(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x54(%rbp), %eax
subl $0x1, %eax
imull -0x60(%rbp), %eax
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x26fb
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x270b
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x270d
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x24f5
movq -0x38(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)