// File: /workspace/github_c_makefile_star2_O1/diaxen[P]fft-garden/cp_dit_dr.c
// Function: cp_dit_dr
static void
cp_dit_dr(unsigned log2_N,
	  const complex double * restrict in,
	  complex double * restrict out,
	  unsigned l, unsigned i)
{
  unsigned is = 1 << (log2_N - l);
  unsigned os = 1 << (l - 2);
  unsigned mask = (1 << log2_N) - 1;
  unsigned i0 = i & mask;
  unsigned t = log2_N - l;

  switch (l)
    {
#if 0
    case 0:			/* size 1 base case  */
      out[0] = in[i];
      break;
#endif

    case 1: {			/* size 2 base case  */
      unsigned i1 = i0 ^ is;
      complex double a = in[i0];
      complex double b = in[i1];
      out[0] = a + b;
      out[1] = a - b;
      break;
    }

    case 2: {			/* size 4 base case  */
      //      cp_dit_dr(log2_N, in, out, 1, i);
      unsigned i1 = i0 ^ (1 << (log2_N - 1));
      complex double a = in[i0];
      complex double b = in[i1];
      out[0] = a + b;
      out[1] = a - b;

      out[2] = in[(i + is) & mask];
      out[3] = in[(i - is) & mask];
      cp_dit_bf_0(1, out);
      break;
    }

    default:
      cp_dit_dr(log2_N, in, out, l - 1, i);
      cp_dit_dr(log2_N, in, out + 2 * os, l - 2, i + is);
      cp_dit_dr(log2_N, in, out + 3 * os, l - 2, i - is);

      unsigned k;
      for (k = 0; k < os; k++)
	cp_dit_bf(os, out + k, get_twiddle(k << t, log2_N));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %r8d, %r15d
movl %ecx, %eax
movq %rdx, %rbx
movl %edi, %r12d
movl %edi, %r8d
subl %ecx, %r8d
movl $0x1, %r14d
movl %r8d, %ecx
shll %cl, %r14d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
notl %edx
movl %edx, %ecx
andl %r15d, %ecx
cmpl $0x2, %eax
je 0x1ac9
cmpl $0x1, %eax
jne 0x1bdc
xorl %ecx, %r14d
movl %ecx, %eax
shlq $0x4, %rax
movsd (%rsi,%rax), %xmm0
movsd 0x8(%rsi,%rax), %xmm1
shlq $0x4, %r14
movsd (%rsi,%r14), %xmm2
movsd 0x8(%rsi,%r14), %xmm3
movapd %xmm0, %xmm4
addsd %xmm2, %xmm4
movapd %xmm1, %xmm5
addsd %xmm3, %xmm5
movsd %xmm4, (%rbx)
movsd %xmm5, 0x8(%rbx)
subsd %xmm2, %xmm0
subsd %xmm3, %xmm1
movsd %xmm0, 0x10(%rbx)
movsd %xmm1, 0x18(%rbx)
jmp 0x1bca
decb %r12b
movl %ecx, %eax
btcl %r12d, %ecx
shlq $0x4, %rax
movsd (%rsi,%rax), %xmm0
movsd 0x8(%rsi,%rax), %xmm1
shlq $0x4, %rcx
movsd (%rsi,%rcx), %xmm4
movsd 0x8(%rsi,%rcx), %xmm5
movapd %xmm0, %xmm2
addsd %xmm4, %xmm2
movapd %xmm1, %xmm3
addsd %xmm5, %xmm3
movsd %xmm2, (%rbx)
movsd %xmm3, 0x8(%rbx)
subsd %xmm4, %xmm0
subsd %xmm5, %xmm1
movsd %xmm0, 0x10(%rbx)
movsd %xmm1, 0x18(%rbx)
leal (%r14,%r15), %eax
andl %edx, %eax
shlq $0x4, %rax
movsd (%rsi,%rax), %xmm4
movsd 0x8(%rsi,%rax), %xmm5
movsd %xmm4, 0x20(%rbx)
movsd %xmm5, 0x28(%rbx)
subl %r14d, %r15d
andl %edx, %r15d
shlq $0x4, %r15
movsd (%rsi,%r15), %xmm6
movsd 0x8(%rsi,%r15), %xmm7
movapd %xmm4, %xmm8
addsd %xmm6, %xmm8
subsd %xmm6, %xmm4
movapd %xmm5, %xmm6
addsd %xmm7, %xmm6
subsd %xmm7, %xmm5
movapd %xmm2, %xmm7
addsd %xmm8, %xmm7
movapd %xmm3, %xmm9
addsd %xmm6, %xmm9
movsd %xmm7, (%rbx)
movsd %xmm9, 0x8(%rbx)
movapd %xmm0, %xmm7
addsd %xmm5, %xmm7
movapd %xmm1, %xmm9
subsd %xmm4, %xmm9
movsd %xmm7, 0x10(%rbx)
movsd %xmm9, 0x18(%rbx)
subsd %xmm8, %xmm2
subsd %xmm6, %xmm3
movsd %xmm2, 0x20(%rbx)
movsd %xmm3, 0x28(%rbx)
subsd %xmm5, %xmm0
addsd %xmm1, %xmm4
movsd %xmm0, 0x30(%rbx)
movsd %xmm4, 0x38(%rbx)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal -0x2(%rax), %ecx
movl %ecx, 0x80(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq %rdx, 0x40(%rsp)
decl %eax
movl %r12d, %edi
movl %r8d, 0x4(%rsp)
movq %rbx, %rdx
movl %eax, %ecx
movq %rsi, %rbp
movq %rsi, 0x48(%rsp)
movl %r15d, %r8d
callq 0x1a27
movl $0x2, %r13d
movl 0x80(%rsp), %ecx
shll %cl, %r13d
shlq $0x4, %r13
leaq (%rbx,%r13), %rdx
leal (%r14,%r15), %r8d
movl %r12d, %edi
movq %rbp, %rsi
callq 0x1a27
movl $0x3, %ebp
movl 0x80(%rsp), %ecx
shll %cl, %ebp
shlq $0x4, %rbp
leaq (%rbx,%rbp), %rdx
subl %r14d, %r15d
movl %r12d, %edi
movq 0x48(%rsp), %rsi
movl %r15d, %r8d
callq 0x1a27
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movq %rsi, %r14
shlq $0x4, %r14
xorl %r15d, %r15d
leaq 0x3405(%rip), %r12      # 0x5080
movapd 0x13ad(%rip), %xmm3     # 0x3030
xorpd %xmm4, %xmm4
movl %r15d, %eax
shll %cl, %eax
movq (%r12), %rdx
shlq $0x4, %rax
movsd (%rdx,%rax), %xmm11
movsd 0x8(%rdx,%rax), %xmm13
movsd (%rbx), %xmm2
movsd 0x8(%rbx), %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd (%rbx,%r14), %xmm6
movsd 0x8(%rbx,%r14), %xmm7
movsd (%rbx,%r13), %xmm14
movsd 0x8(%rbx,%r13), %xmm15
movsd (%rbx,%rbp), %xmm5
movsd 0x8(%rbx,%rbp), %xmm12
movapd %xmm11, %xmm8
mulsd %xmm14, %xmm8
movapd %xmm13, %xmm0
mulsd %xmm15, %xmm0
subsd %xmm0, %xmm8
movapd %xmm11, %xmm0
mulsd %xmm15, %xmm0
movapd %xmm13, %xmm9
mulsd %xmm14, %xmm9
addsd %xmm0, %xmm9
ucomisd %xmm8, %xmm8
movsd %xmm8, 0x68(%rsp)
movsd %xmm9, 0x60(%rsp)
movsd %xmm2, 0xa0(%rsp)
movsd %xmm5, 0x98(%rsp)
jp 0x1f11
movapd %xmm13, %xmm0
xorpd %xmm3, %xmm0
movapd %xmm0, 0xb0(%rsp)
movapd %xmm11, %xmm0
mulsd %xmm5, %xmm0
movapd %xmm11, %xmm10
mulsd %xmm12, %xmm10
movapd %xmm13, %xmm1
mulsd %xmm12, %xmm1
addsd %xmm0, %xmm1
movapd %xmm13, %xmm0
mulsd %xmm5, %xmm0
subsd %xmm0, %xmm10
ucomisd %xmm1, %xmm1
movapd %xmm1, 0x80(%rsp)
movapd %xmm1, %xmm0
movsd %xmm10, 0x48(%rsp)
jp 0x1ff5
movsd 0x60(%rsp), %xmm5
addsd %xmm10, %xmm5
movsd 0x68(%rsp), %xmm1
addsd %xmm0, %xmm1
ucomisd %xmm8, %xmm8
addsd %xmm2, %xmm1
addsd 0xa8(%rsp), %xmm5
movsd %xmm1, (%rbx)
movsd %xmm5, 0x8(%rbx)
movapd %xmm8, %xmm2
movapd %xmm9, %xmm5
jp 0x20d3
movapd 0x80(%rsp), %xmm0
ucomisd %xmm0, %xmm0
movsd 0x48(%rsp), %xmm1
jp 0x219d
subsd %xmm1, %xmm5
subsd %xmm0, %xmm2
movapd %xmm2, %xmm0
mulsd %xmm4, %xmm0
movapd %xmm5, %xmm1
mulsd %xmm4, %xmm1
subsd %xmm5, %xmm0
addsd %xmm2, %xmm1
ucomisd %xmm0, %xmm0
jp 0x2283
ucomisd %xmm8, %xmm8
movapd %xmm6, %xmm2
subsd %xmm0, %xmm2
movapd %xmm7, %xmm0
subsd %xmm1, %xmm0
movsd %xmm2, (%rbx,%r14)
movsd %xmm0, 0x8(%rbx,%r14)
movapd %xmm8, %xmm5
movapd %xmm9, %xmm10
jp 0x2336
movapd 0x80(%rsp), %xmm0
ucomisd %xmm0, %xmm0
movsd 0x48(%rsp), %xmm1
movsd 0xa0(%rsp), %xmm2
jp 0x2401
addsd %xmm1, %xmm10
addsd %xmm0, %xmm5
ucomisd %xmm8, %xmm8
subsd %xmm5, %xmm2
movsd 0xa8(%rsp), %xmm0
subsd %xmm10, %xmm0
movsd %xmm2, (%rbx,%r13)
movsd %xmm0, 0x8(%rbx,%r13)
jp 0x24f2
movapd 0x80(%rsp), %xmm0
ucomisd %xmm0, %xmm0
jp 0x256e
subsd 0x48(%rsp), %xmm9
subsd 0x80(%rsp), %xmm8
movapd %xmm8, %xmm0
mulsd %xmm4, %xmm0
movapd %xmm9, %xmm1
mulsd %xmm4, %xmm1
subsd %xmm9, %xmm0
addsd %xmm8, %xmm1
ucomisd %xmm0, %xmm0
jp 0x25fc
addsd %xmm0, %xmm6
addsd %xmm1, %xmm7
movsd %xmm6, (%rbx,%rbp)
movsd %xmm7, 0x8(%rbx,%rbp)
incq %r15
addq $0x10, %rbx
cmpq %r15, %rsi
jne 0x1c87
jmp 0x1bca
ucomisd %xmm9, %xmm9
movsd %xmm8, 0x68(%rsp)
movsd %xmm9, 0x60(%rsp)
jnp 0x1d36
movapd %xmm11, %xmm0
movapd %xmm13, %xmm1
movapd %xmm14, %xmm2
movapd %xmm15, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
callq 0x2670
movsd 0xa0(%rsp), %xmm2
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x98(%rsp), %xmm5
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0x1055(%rip), %xmm3     # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movsd %xmm0, 0x68(%rsp)
movsd %xmm1, 0x60(%rsp)
jmp 0x1d36
movsd 0x48(%rsp), %xmm10
ucomisd %xmm10, %xmm10
movapd 0x80(%rsp), %xmm0
jnp 0x1d95
movapd %xmm11, %xmm0
movapd 0xb0(%rsp), %xmm1
movsd 0x98(%rsp), %xmm2
movapd %xmm12, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
callq 0x2670
movsd 0xa0(%rsp), %xmm2
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xf70(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movapd %xmm1, %xmm10
jmp 0x1d95
ucomisd %xmm9, %xmm9
movapd %xmm8, %xmm2
movapd %xmm9, %xmm5
jnp 0x1dd5
movapd %xmm11, %xmm0
movapd %xmm13, %xmm1
movapd %xmm14, %xmm2
movapd %xmm15, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
callq 0x2670
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xea9(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movapd %xmm0, %xmm2
movapd %xmm1, %xmm5
jmp 0x1dd5
movsd 0x48(%rsp), %xmm1
ucomisd %xmm1, %xmm1
movapd 0x80(%rsp), %xmm0
jnp 0x1dee
movapd %xmm11, %xmm0
movapd 0xb0(%rsp), %xmm1
movsd %xmm2, 0x68(%rsp)
movsd 0x98(%rsp), %xmm2
movapd %xmm12, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
movsd %xmm5, 0x60(%rsp)
callq 0x2670
movsd 0x60(%rsp), %xmm5
movsd 0x68(%rsp), %xmm2
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xdbb(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
jmp 0x1dee
ucomisd %xmm1, %xmm1
jnp 0x1e18
xorpd %xmm0, %xmm0
movsd 0xfb7(%rip), %xmm1      # 0x3250
movapd %xmm5, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
callq 0x2670
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xd08(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
jmp 0x1e18
ucomisd %xmm9, %xmm9
movapd %xmm8, %xmm5
movapd %xmm9, %xmm10
jnp 0x1e4a
movapd %xmm11, %xmm0
movapd %xmm13, %xmm1
movapd %xmm14, %xmm2
movapd %xmm15, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
callq 0x2670
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xc46(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movapd %xmm0, %xmm5
movapd %xmm1, %xmm10
jmp 0x1e4a
movsd 0x48(%rsp), %xmm1
ucomisd %xmm1, %xmm1
movapd 0x80(%rsp), %xmm0
jnp 0x1e6c
movapd %xmm11, %xmm0
movapd 0xb0(%rsp), %xmm1
movsd 0x98(%rsp), %xmm2
movapd %xmm12, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
movapd %xmm13, 0x70(%rsp)
movsd %xmm14, 0x38(%rsp)
movsd %xmm15, 0x30(%rsp)
movsd %xmm5, 0x68(%rsp)
movsd %xmm10, 0x60(%rsp)
callq 0x2670
movsd 0x60(%rsp), %xmm10
movsd 0x68(%rsp), %xmm5
movsd 0xa0(%rsp), %xmm2
movsd 0x30(%rsp), %xmm15
movsd 0x38(%rsp), %xmm14
movapd 0x70(%rsp), %xmm13
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xb4c(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
jmp 0x1e6c
ucomisd %xmm9, %xmm9
jnp 0x1e9f
movapd %xmm11, %xmm0
movapd %xmm13, %xmm1
movapd %xmm14, %xmm2
movapd %xmm15, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm11, 0x20(%rsp)
movsd %xmm12, 0x18(%rsp)
callq 0x2670
movsd 0x18(%rsp), %xmm12
movsd 0x20(%rsp), %xmm11
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xada(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movapd %xmm0, %xmm8
movapd %xmm1, %xmm9
jmp 0x1e9f
movsd 0x98(%rsp), %xmm2
movsd 0x48(%rsp), %xmm1
ucomisd %xmm1, %xmm1
jnp 0x1eb2
movapd %xmm11, %xmm0
movapd 0xb0(%rsp), %xmm1
movapd %xmm12, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x28(%rsp)
movapd %xmm9, 0x50(%rsp)
callq 0x2670
movapd 0x50(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0xa51(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
movapd %xmm0, 0x80(%rsp)
movsd %xmm1, 0x48(%rsp)
jmp 0x1eb2
ucomisd %xmm1, %xmm1
jnp 0x1ee9
xorpd %xmm0, %xmm0
movsd 0xc3e(%rip), %xmm1      # 0x3250
movapd %xmm8, %xmm2
movapd %xmm9, %xmm3
movsd %xmm6, 0x10(%rsp)
movsd %xmm7, 0x8(%rsp)
callq 0x2670
movsd 0x8(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm4, %xmm4
movapd 0x9eb(%rip), %xmm3      # 0x3030
movq 0x40(%rsp), %rsi
movl 0x4(%rsp), %ecx
jmp 0x1ee9