// File: /workspace/github_c_makefile_star2_O0/diaxen[P]fft-garden/ct_dit_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;

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

  /* stages 0 to log2_N - 1 */
  for (unsigned j = 0; j < log2_N; 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_dit_bf2(l, t + k, get_twiddle(k << s, log2_N));
	}
    }
}

// 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 -0x10(%rbp), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x18(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0x1fb2
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x1f78
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm0
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movl -0x14(%rbp), %eax
shrl %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
ja 0x1f9b
movl -0x1c(%rbp), %eax
subl -0x3c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x3c(%rbp), %eax
shrl %eax
movl %eax, -0x3c(%rbp)
jmp 0x1f80
movl -0x1c(%rbp), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x1ee3
jmp 0x1fb4
movl $0x0, -0x40(%rbp)
movl -0x40(%rbp), %eax
cmpl -0xc(%rbp), %eax
jae 0x209e
movl -0xc(%rbp), %eax
subl -0x40(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
movl -0x40(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl -0x44(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x208e
movq -0x8(%rbp), %rax
movl -0x4c(%rbp), %edx
movl -0x40(%rbp), %ecx
addl $0x1, %ecx
shll %cl, %edx
movl %edx, %ecx
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jae 0x207e
movl -0x48(%rbp), %eax
movl %eax, -0x7c(%rbp)
movq -0x58(%rbp), %rax
movl -0x5c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movl -0x5c(%rbp), %edi
movl -0x44(%rbp), %ecx
shll %cl, %edi
movl -0xc(%rbp), %esi
callq 0x2240
movl -0x7c(%rbp), %edi
movq -0x78(%rbp), %rsi
movsd %xmm0, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movsd -0x70(%rbp), %xmm0
movsd -0x68(%rbp), %xmm1
callq 0x20e0
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x2023
jmp 0x2080
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x1fe7
jmp 0x2090
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x1fbb
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)