// File: /workspace/github_cpp_makefile_star2_O3/Sleepwalking[P]world-octave/fft.cpp
// Function: fft_execute(fft_plan)
void fft_execute(fft_plan p) {
  if (p.sign == FFT_FORWARD) {
    ForwardFFT(p);
  } else {  // ifft
    BackwardFFT(p);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x30(%rsp), %rdx
movl (%rdx), %r14d
cmpl $0x1, 0x4(%rdx)
movq 0x10(%rdx), %rcx
movq 0x30(%rdx), %rbx
movq 0x38(%rdx), %rax
movq 0x40(%rdx), %r8
jne 0x882f
movq 0x20(%rdx), %r15
testq %rcx, %rcx
je 0x88a6
testl %r14d, %r14d
jle 0x89f0
movq %r14, %r12
shlq $0x4, %r12
xorl %edx, %edx
movsd (%rcx,%rdx), %xmm0
movsd %xmm0, (%rbx,%rdx)
movsd 0x8(%rcx,%rdx), %xmm0
movsd %xmm0, 0x8(%rbx,%rdx)
addq $0x10, %rdx
cmpq %rdx, %r12
jne 0x87d7
leal (%r14,%r14), %edi
movl (%rax), %ecx
movq %rbx, %rsi
movq %rax, %rdx
callq 0x8a7d
xorl %eax, %eax
movsd (%rbx,%rax), %xmm0
movsd %xmm0, (%r15,%rax)
movsd 0x8(%rbx,%rax), %xmm0
movsd %xmm0, 0x8(%r15,%rax)
addq $0x10, %rax
cmpq %rax, %r12
jne 0x8809
jmp 0x89e4
movq 0x20(%rdx), %r15
testq %r15, %r15
je 0x894f
testl %r14d, %r14d
jle 0x8a0c
movq %r14, %r12
shlq $0x4, %r12
xorl %edx, %edx
movsd (%rcx,%rdx), %xmm0
movsd %xmm0, (%rbx,%rdx)
movsd 0x8(%rcx,%rdx), %xmm0
movsd %xmm0, 0x8(%rbx,%rdx)
addq $0x10, %rdx
cmpq %rdx, %r12
jne 0x884e
leal (%r14,%r14), %edi
movl (%rax), %ecx
movq %rbx, %rsi
movq %rax, %rdx
callq 0x8bb5
xorl %eax, %eax
movsd (%rbx,%rax), %xmm0
movsd %xmm0, (%r15,%rax)
movsd 0x8(%rbx,%rax), %xmm0
movsd %xmm0, 0x8(%r15,%rax)
addq $0x10, %rax
cmpq %rax, %r12
jne 0x8880
jmp 0x89e4
testl %r14d, %r14d
jle 0x88c3
movq 0x18(%rdx), %rcx
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, (%rbx,%rdx,8)
incq %rdx
cmpq %rdx, %r14
jne 0x88b1
movl %r14d, %edi
movl $0x1, %esi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x8cd1
movsd (%rbx), %xmm0
movsd %xmm0, (%r15)
movq $0x0, 0x8(%r15)
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
cmpl $0x4, %r14d
jl 0x8930
cmpl $0x3, %eax
movl $0x2, %ecx
cmovgel %eax, %ecx
shlq $0x4, %rcx
addq $-0x10, %rcx
xorl %edx, %edx
movsd 0x10(%rbx,%rdx), %xmm0
movsd %xmm0, 0x10(%r15,%rdx)
movsd 0x18(%rbx,%rdx), %xmm0
movsd %xmm0, 0x18(%r15,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x890d
movsd 0x8(%rbx), %xmm0
cltq
shlq $0x4, %rax
movsd %xmm0, (%r15,%rax)
movq $0x0, 0x8(%r15,%rax)
jmp 0x89e4
movq 0x28(%rdx), %r15
movsd (%rcx), %xmm0
movsd %xmm0, (%rbx)
movl %r14d, %esi
shrl $0x1f, %esi
addl %r14d, %esi
sarl %esi
movslq %esi, %rdx
shlq $0x4, %rdx
movsd (%rcx,%rdx), %xmm0
movsd %xmm0, 0x8(%rbx)
cmpl $0x4, %r14d
jl 0x89b3
cmpl $0x3, %esi
movl $0x2, %edx
cmovgel %esi, %edx
shlq $0x4, %rdx
addq $-0x10, %rdx
xorl %esi, %esi
movsd 0x10(%rcx,%rsi), %xmm0
movsd %xmm0, 0x10(%rbx,%rsi)
movsd 0x18(%rcx,%rsi), %xmm0
movsd %xmm0, 0x18(%rbx,%rsi)
addq $0x10, %rsi
cmpq %rsi, %rdx
jne 0x8992
movl %r14d, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rbx, %rdx
movq %rax, %rcx
callq 0x8cd1
testl %r14d, %r14d
jle 0x89e4
xorl %eax, %eax
movsd (%rbx,%rax,8), %xmm0
addsd %xmm0, %xmm0
movsd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x89cd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leal (%r14,%r14), %edi
movl (%rax), %ecx
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8a7d
addl %r14d, %r14d
movl (%rax), %ecx
movl %r14d, %edi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8bb5