// File: /workspace/github_c_makefile_star2_O0/diaxen[P]fft-garden/ct_dif_bi_N.c
// Function: ct_fft_bi
static inline void
ct_fft_bi(complex double * restrict inout,
	  int log2_N)
{
  unsigned N = 1 << log2_N;

  /* stages 0 to log2_N - 1 */
  for (int j = log2_N - 1; j >= 0; j--)
    {
      unsigned s = log2_N - j - 1;
      unsigned l = 1 << j;

      for (unsigned i = 0; i < (1 << s); i++)
	{
	  complex double *t = inout + (i << (j + 1));

          for (unsigned k = 0; k < l; k++)
            ct_dif_bf2(l, t + k, get_twiddle(k << s, log2_N));
	}
    }

  BIT_REVERSE_SWAP_LOOP(i, j, N, {
      double complex t = inout[i];
      inout[i] = inout[j];
      inout[j] = t;
  });
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x10(%rbp)
movl -0xc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x1fb9
movl -0xc(%rbp), %eax
subl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x1fa9
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %edx
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
shll %cl, %edx
movl %edx, %ecx
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x1f99
movl -0x1c(%rbp), %eax
movl %eax, -0x7c(%rbp)
movq -0x28(%rbp), %rax
movl -0x2c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movl -0x2c(%rbp), %edi
movl -0x18(%rbp), %ecx
shll %cl, %edi
movl -0xc(%rbp), %esi
callq 0x2240
movl -0x7c(%rbp), %edi
movq -0x78(%rbp), %rsi
movsd %xmm0, -0x40(%rbp)
movsd %xmm1, -0x38(%rbp)
movsd -0x40(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
callq 0x20e0
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x1f3e
jmp 0x1f9b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x1f02
jmp 0x1fab
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1ed8
jmp 0x1fbb
movl -0x10(%rbp), %eax
movl %eax, -0x44(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movl -0x44(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0x209e
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jae 0x2064
movl -0x4c(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movl -0x50(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movsd %xmm1, -0x68(%rbp)
movsd %xmm0, -0x60(%rbp)
movq -0x8(%rbp), %rax
movl -0x54(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movq -0x8(%rbp), %rax
movl -0x50(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movsd -0x68(%rbp), %xmm1
movsd -0x60(%rbp), %xmm0
movq -0x8(%rbp), %rax
movl -0x54(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movl -0x44(%rbp), %eax
shrl %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x4c(%rbp), %eax
ja 0x2087
movl -0x4c(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x6c(%rbp), %eax
shrl %eax
movl %eax, -0x6c(%rbp)
jmp 0x206c
movl -0x4c(%rbp), %eax
addl -0x6c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1fcf
jmp 0x20a0
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)