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

  if (log2_N & 1)      /* stage 0 */
    {
      BIT_REVERSE42_LOOP(i, r, N, {
          ct_dit_bf2_0(1, N / 2, out + i, in + r);
          ct_dit_bf2_0(1, N / 2, out + i + 2, in + r + N / 8);
      });
    }
  else                 /* stage 1 */
    {
      BIT_REVERSE42_LOOP(i, r, N, {
	  mr_dit_bf4_0(1, N / 4, out + i, in + r);
      });
    }

  /* higher stages */
  for (unsigned j = 2 - (log2_N & 1); j < log2_N; j += 2)
    {
      unsigned s = log2_N - (j + 2);
      unsigned l = 1 << j;

      for (unsigned i = 0; i < (1 << s); i++)
	{
	  unsigned t = i << (j + 2);
	  mr_dit_bf4_0(l, l, out + t, out + t);
          mr_dit_bf4_1(l, out + t + l / 2);
	}

      for (unsigned k = 1; k < l / 2; k++)
	{
	  complex double w1 = get_twiddle(k << s, log2_N);
	  complex double w2 = get_twiddle(k * 2 << s, log2_N);
	  complex double w3 = get_twiddle(k * 3 << s, log2_N);
          complex double *t = out;

	  for (unsigned i = 0; i < (1 << s); i++)
	    {
	      mr_dit_bf4(l, t + k, w1, w2, w3);
	      mr_dit_bf4(l, t + l - k, conj(w1 * I), -conj(w2), -conj(w3 * I));
	      t += 1 << (j + 2);
	    }
	}
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x1e72
jmp 0x1d84
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
shrl $0x2, %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x1e6b
movl -0x24(%rbp), %eax
andl $0x55555555, %eax       # imm = 0x55555555
shll %eax
movl -0x24(%rbp), %ecx
andl $0xaaaaaaaa, %ecx       # imm = 0xAAAAAAAA
shrl %ecx
orl %ecx, %eax
movl %eax, -0x2c(%rbp)
movl -0x18(%rbp), %esi
shrl %esi
movq -0x10(%rbp), %rdx
movl -0x28(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x8(%rbp), %rcx
movl -0x2c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
movl $0x1, %edi
callq 0x24f0
movl -0x18(%rbp), %esi
shrl %esi
movq -0x10(%rbp), %rdx
movl -0x28(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
addq $0x20, %rdx
movq -0x8(%rbp), %rcx
movl -0x2c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
movl -0x18(%rbp), %eax
shrl $0x3, %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rcx
movl $0x1, %edi
callq 0x24f0
movl -0x28(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x30(%rbp)
movl -0x20(%rbp), %eax
xorl $-0x1, %eax
movl -0x28(%rbp), %ecx
xorl -0x30(%rbp), %ecx
bsrl %ecx, %edx
xorl $0x1f, %edx
movl $0x1e, %ecx
subl %edx, %ecx
shrl %cl, %eax
andl -0x20(%rbp), %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x1da4
jmp 0x1e6d
jmp 0x1f1e
jmp 0x1e74
movl -0x18(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
shrl $0x2, %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movl -0x40(%rbp), %eax
cmpl -0x34(%rbp), %eax
jae 0x1f1a
movl -0x3c(%rbp), %eax
andl $0x55555555, %eax       # imm = 0x55555555
shll %eax
movl -0x3c(%rbp), %ecx
andl $0xaaaaaaaa, %ecx       # imm = 0xAAAAAAAA
shrl %ecx
orl %ecx, %eax
movl %eax, -0x44(%rbp)
movl -0x18(%rbp), %esi
shrl $0x2, %esi
movq -0x10(%rbp), %rdx
movl -0x40(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x8(%rbp), %rcx
movl -0x44(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
movl $0x1, %edi
callq 0x25a0
movl -0x40(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x48(%rbp)
movl -0x38(%rbp), %eax
xorl $-0x1, %eax
movl -0x40(%rbp), %ecx
xorl -0x48(%rbp), %ecx
bsrl %ecx, %edx
xorl $0x1f, %edx
movl $0x1e, %ecx
subl %edx, %ecx
shrl %cl, %eax
andl -0x38(%rbp), %eax
xorl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x1e94
jmp 0x1f1c
jmp 0x1f1e
movl -0x14(%rbp), %ecx
andl $0x1, %ecx
movl $0x2, %eax
subl %ecx, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x24b1
movl -0x14(%rbp), %eax
movl -0x4c(%rbp), %ecx
addl $0x2, %ecx
subl %ecx, %eax
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl -0x50(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x1fd3
movl -0x58(%rbp), %eax
movl -0x4c(%rbp), %ecx
addl $0x2, %ecx
shll %cl, %eax
movl %eax, -0x5c(%rbp)
movl -0x54(%rbp), %edi
movl -0x54(%rbp), %esi
movq -0x10(%rbp), %rdx
movl -0x5c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x10(%rbp), %rcx
movl -0x5c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
callq 0x25a0
movl -0x54(%rbp), %edi
movq -0x10(%rbp), %rsi
movl -0x5c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x54(%rbp), %eax
shrl %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x2890
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x1f5c
movl $0x1, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl -0x54(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jae 0x24a1
movl -0x60(%rbp), %edi
movl -0x50(%rbp), %ecx
shll %cl, %edi
movl -0x14(%rbp), %esi
callq 0x2d20
movsd %xmm0, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movl -0x60(%rbp), %edi
shll %edi
movl -0x50(%rbp), %ecx
shll %cl, %edi
movl -0x14(%rbp), %esi
callq 0x2d20
movsd %xmm0, -0x80(%rbp)
movsd %xmm1, -0x78(%rbp)
imull $0x3, -0x60(%rbp), %edi
movl -0x50(%rbp), %ecx
shll %cl, %edi
movl -0x14(%rbp), %esi
callq 0x2d20
movsd %xmm0, -0x90(%rbp)
movsd %xmm1, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
movl -0x50(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x2491
movl -0x54(%rbp), %edi
movq -0x98(%rbp), %rsi
movl -0x60(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x70(%rbp), %xmm1
movsd -0x68(%rbp), %xmm0
movsd -0x80(%rbp), %xmm3
movsd -0x78(%rbp), %xmm2
movsd -0x90(%rbp), %xmm5
movsd -0x88(%rbp), %xmm4
movsd %xmm1, -0xb0(%rbp)
movsd %xmm0, -0xa8(%rbp)
movsd -0xb0(%rbp), %xmm0
movsd -0xa8(%rbp), %xmm1
movsd %xmm3, -0xc0(%rbp)
movsd %xmm2, -0xb8(%rbp)
movsd -0xc0(%rbp), %xmm2
movsd -0xb8(%rbp), %xmm3
movsd %xmm5, -0xd0(%rbp)
movsd %xmm4, -0xc8(%rbp)
movsd -0xd0(%rbp), %xmm4
movsd -0xc8(%rbp), %xmm5
callq 0x2e00
movl -0x54(%rbp), %eax
movl %eax, -0x13c(%rbp)
movq -0x98(%rbp), %rax
movl -0x54(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movl -0x60(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x138(%rbp)
movsd -0x70(%rbp), %xmm1
movsd %xmm1, -0x130(%rbp)
movsd -0x68(%rbp), %xmm2
movsd %xmm2, -0x128(%rbp)
xorps %xmm3, %xmm3
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd 0x1ea5(%rip), %xmm4     # 0x4010
movaps %xmm2, %xmm3
mulsd %xmm4, %xmm3
movsd 0x1e96(%rip), %xmm4     # 0x4010
mulsd %xmm4, %xmm1
xorps %xmm4, %xmm4
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, -0x120(%rbp)
addsd %xmm2, %xmm1
movsd %xmm1, -0x118(%rbp)
ucomisd %xmm0, %xmm0
movsd %xmm0, -0x110(%rbp)
movsd %xmm1, -0x108(%rbp)
jnp 0x2209
movsd -0x118(%rbp), %xmm1
movsd -0x120(%rbp), %xmm0
ucomisd %xmm1, %xmm1
movsd %xmm0, -0x110(%rbp)
movsd %xmm1, -0x108(%rbp)
jnp 0x2209
movsd -0x128(%rbp), %xmm1
movsd -0x130(%rbp), %xmm0
xorps %xmm2, %xmm2
movsd 0x1e1c(%rip), %xmm3     # 0x4010
callq 0x33c0
movsd %xmm0, -0x110(%rbp)
movsd %xmm1, -0x108(%rbp)
movsd -0x110(%rbp), %xmm1
movsd -0x108(%rbp), %xmm0
movsd %xmm1, -0x190(%rbp)
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x188(%rbp)
movsd -0x80(%rbp), %xmm1
movsd -0x78(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movsd %xmm1, -0x180(%rbp)
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x178(%rbp)
movsd -0x90(%rbp), %xmm1
movsd %xmm1, -0x170(%rbp)
movsd -0x88(%rbp), %xmm2
movsd %xmm2, -0x168(%rbp)
xorps %xmm3, %xmm3
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd 0x1d3f(%rip), %xmm4     # 0x4010
movaps %xmm2, %xmm3
mulsd %xmm4, %xmm3
movsd 0x1d30(%rip), %xmm4     # 0x4010
mulsd %xmm4, %xmm1
xorps %xmm4, %xmm4
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, -0x160(%rbp)
addsd %xmm2, %xmm1
movsd %xmm1, -0x158(%rbp)
ucomisd %xmm0, %xmm0
movsd %xmm0, -0x150(%rbp)
movsd %xmm1, -0x148(%rbp)
jnp 0x236f
movsd -0x158(%rbp), %xmm1
movsd -0x160(%rbp), %xmm0
ucomisd %xmm1, %xmm1
movsd %xmm0, -0x150(%rbp)
movsd %xmm1, -0x148(%rbp)
jnp 0x236f
movsd -0x168(%rbp), %xmm1
movsd -0x170(%rbp), %xmm0
xorps %xmm2, %xmm2
movsd 0x1cb6(%rip), %xmm3     # 0x4010
callq 0x33c0
movsd %xmm0, -0x150(%rbp)
movsd %xmm1, -0x148(%rbp)
movq -0x138(%rbp), %rsi
movl -0x13c(%rbp), %edi
movsd -0x178(%rbp), %xmm2
movsd -0x180(%rbp), %xmm3
movsd -0x188(%rbp), %xmm0
movsd -0x190(%rbp), %xmm1
movsd -0x150(%rbp), %xmm5
movsd -0x148(%rbp), %xmm4
movq %xmm4, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm4
movq %xmm5, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm5
movq %xmm4, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm4
movsd %xmm1, -0xe0(%rbp)
movsd %xmm0, -0xd8(%rbp)
movsd -0xe0(%rbp), %xmm0
movsd -0xd8(%rbp), %xmm1
movsd %xmm3, -0xf0(%rbp)
movsd %xmm2, -0xe8(%rbp)
movsd -0xf0(%rbp), %xmm2
movsd -0xe8(%rbp), %xmm3
movsd %xmm5, -0x100(%rbp)
movsd %xmm4, -0xf8(%rbp)
movsd -0x100(%rbp), %xmm4
movsd -0xf8(%rbp), %xmm5
callq 0x2e00
movl -0x4c(%rbp), %ecx
addl $0x2, %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq -0x98(%rbp), %rax
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2056
jmp 0x2493
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x1fda
jmp 0x24a3
movl -0x4c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x4c(%rbp)
jmp 0x1f2e
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopw (%rax,%rax)