// File: /workspace/github_c_makefile_star2_O2/diaxen[P]fft-garden/sr_dit_dr.c
// Function: sr_dit_dr
static void
sr_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 t = log2_N - l;

  switch (l)
    {
    case 1:                     /* size 2 base case  */
      ct_dit_bf2_0(1, is, out, in + i);
      break;

    case 2:                     /* size 4 base case  */
      //sr_dit_dr(log2_N, in, out, 1, i);
      ct_dit_bf2_0(1, is * 2, out, in + i);

      out[2] = in[i + is];
      out[3] = in[i + 3 * is];
      sr_dit_bf4_0(1, out);
      break;

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %ecx, %eax
movq %rdx, %rbx
movl %edi, %ecx
subl %eax, %ecx
pushq $0x1
popq %rdx
movl %edx, %r12d
movl %ecx, 0x7c(%rsp)
shll %cl, %r12d
movq %rsi, %r15
pushq $0x2
popq %r14
pushq $0x3
popq %r13
cmpl $0x2, %eax
je 0x1a20
cmpl $0x1, %eax
jne 0x1ac4
movl %r8d, %eax
shlq $0x4, %rax
addq %rax, %r15
movl %r12d, %edi
movq %rbx, %rsi
movq %r15, %rdx
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2625
movl 0x7c(%rsp), %ebp
movl %ebp, %ecx
shll %cl, %r14d
movl %r8d, %edx
shlq $0x4, %rdx
addq %r15, %rdx
movl %r14d, %edi
movq %rbx, %rsi
movl %r8d, %r14d
callq 0x2625
addl %r14d, %r12d
movl %ebp, %ecx
shll %cl, %r13d
shlq $0x4, %r12
addl %r14d, %r13d
shlq $0x4, %r13
movupd (%r15,%r12), %xmm0
movupd (%r15,%r13), %xmm1
movapd %xmm0, %xmm2
addpd %xmm1, %xmm2
movupd (%rbx), %xmm3
movupd 0x10(%rbx), %xmm4
movapd %xmm2, %xmm5
addpd %xmm3, %xmm5
movupd %xmm5, (%rbx)
subpd %xmm1, %xmm0
shufpd $0x1, %xmm0, %xmm0      # xmm0 = xmm0[1,0]
movapd %xmm4, %xmm1
addpd %xmm0, %xmm1
subpd %xmm0, %xmm4
movapd %xmm4, %xmm0
movsd %xmm1, %xmm0            # xmm0 = xmm1[0],xmm0[1]
movupd %xmm0, 0x10(%rbx)
subpd %xmm2, %xmm3
movupd %xmm3, 0x20(%rbx)
shufpd $0x2, %xmm1, %xmm4      # xmm4 = xmm4[0],xmm1[1]
movupd %xmm4, 0x30(%rbx)
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edi, %ebp
leal -0x2(%rax), %ecx
movl %ecx, 0xc0(%rsp)
shll %cl, %edx
movq %rdx, 0x8(%rsp)
decl %eax
movq %r15, %rsi
movq %rbx, %rdx
movl %eax, %ecx
movl %r8d, 0xd0(%rsp)
callq 0x19b7
movl 0xc0(%rsp), %ecx
shll %cl, %r14d
shlq $0x4, %r14
leaq (%rbx,%r14), %rdx
addl 0xd0(%rsp), %r12d
movl %ebp, %edi
movq %r15, %rsi
movl %r12d, %r8d
callq 0x19b7
movl %r13d, %r12d
movl 0xc0(%rsp), %eax
movl %eax, %ecx
shll %cl, %r12d
shlq $0x4, %r12
leaq (%rbx,%r12), %rdx
movl 0x7c(%rsp), %ecx
shll %cl, %r13d
addl 0xd0(%rsp), %r13d
movl %ebp, %edi
movq %r15, %rsi
movl %eax, %ecx
movl %r13d, %r8d
callq 0x19b7
movq 0x8(%rsp), %rsi
movq %rsi, %r15
shlq $0x4, %r15
xorl %r13d, %r13d
leaq 0x3520(%rip), %rdi      # 0x5080
leaq 0x3521(%rip), %rbp      # 0x5088
xorpd %xmm3, %xmm3
xorpd %xmm5, %xmm5
cmpq %r13, %rsi
je 0x1ab2
movl %r13d, %eax
movl 0x7c(%rsp), %ecx
shll %cl, %eax
movq (%rdi), %rcx
shlq $0x4, %rax
movq (%rbp), %rdx
movupd (%rbx,%r15), %xmm6
movsd (%rbx,%r14), %xmm12
movsd 0x8(%rbx,%r14), %xmm13
movsd (%rbx,%r12), %xmm9
movsd 0x8(%rbx,%r12), %xmm10
movupd (%rcx,%rax), %xmm14
movupd (%rdx,%rax), %xmm4
movupd (%rbx), %xmm2
movapd %xmm13, %xmm0
unpcklpd %xmm13, %xmm0           # xmm0 = xmm0[0],xmm13[0]
movapd %xmm14, %xmm1
shufpd $0x1, %xmm14, %xmm1     # xmm1 = xmm1[1],xmm14[0]
mulpd %xmm0, %xmm1
movapd %xmm12, %xmm7
unpcklpd %xmm12, %xmm7           # xmm7 = xmm7[0],xmm12[0]
mulpd %xmm14, %xmm7
movapd %xmm7, %xmm8
subpd %xmm1, %xmm8
addpd %xmm1, %xmm7
movapd %xmm7, %xmm1
movsd %xmm8, %xmm1            # xmm1 = xmm8[0],xmm1[1]
ucomisd %xmm8, %xmm8
unpckhpd %xmm7, %xmm7            # xmm7 = xmm7[1,1]
movapd %xmm14, %xmm0
unpckhpd %xmm14, %xmm0           # xmm0 = xmm0[1],xmm14[1]
movapd %xmm0, 0x120(%rsp)
movapd %xmm1, 0xd0(%rsp)
movapd %xmm1, 0x100(%rsp)
movapd %xmm2, 0xe0(%rsp)
jp 0x1de0
movapd %xmm9, %xmm0
unpcklpd %xmm9, %xmm0            # xmm0 = xmm0[0],xmm9[0]
mulpd %xmm4, %xmm0
movapd %xmm10, %xmm1
unpcklpd %xmm10, %xmm1           # xmm1 = xmm1[0],xmm10[0]
movapd %xmm4, %xmm11
shufpd $0x1, %xmm4, %xmm11     # xmm11 = xmm11[1],xmm4[0]
mulpd %xmm1, %xmm11
movapd %xmm0, %xmm1
subpd %xmm11, %xmm1
addpd %xmm0, %xmm11
movapd %xmm11, %xmm15
movsd %xmm1, %xmm15           # xmm15 = xmm1[0],xmm15[1]
ucomisd %xmm1, %xmm1
unpckhpd %xmm11, %xmm11          # xmm11 = xmm11[1,1]
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
movapd %xmm0, 0x110(%rsp)
movapd %xmm15, 0xc0(%rsp)
movapd %xmm15, %xmm0
movapd %xmm1, 0xf0(%rsp)
jp 0x1ed2
ucomisd %xmm8, %xmm8
movapd 0x100(%rsp), %xmm15
addpd %xmm0, %xmm15
addpd %xmm2, %xmm15
movupd %xmm15, (%rbx)
movapd 0xd0(%rsp), %xmm15
jp 0x1fcf
ucomisd %xmm1, %xmm1
movapd 0xc0(%rsp), %xmm0
jp 0x20ca
subpd %xmm0, %xmm15
movapd %xmm15, %xmm0
mulpd %xmm3, %xmm0
movapd %xmm15, %xmm1
shufpd $0x1, %xmm15, %xmm1     # xmm1 = xmm1[1],xmm15[0]
movapd %xmm0, %xmm2
subpd %xmm1, %xmm2
addpd %xmm0, %xmm1
movapd %xmm1, %xmm0
movsd %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1]
ucomisd %xmm2, %xmm2
jp 0x21c9
movapd 0xe0(%rsp), %xmm2
ucomisd %xmm8, %xmm8
movapd %xmm6, %xmm1
subpd %xmm0, %xmm1
movupd %xmm1, (%rbx,%r15)
jp 0x22c4
movapd 0xf0(%rsp), %xmm1
ucomisd %xmm1, %xmm1
jp 0x23c1
movapd 0xd0(%rsp), %xmm0
addpd 0xc0(%rsp), %xmm0
ucomisd %xmm8, %xmm8
subpd %xmm0, %xmm2
movupd %xmm2, (%rbx,%r14)
jp 0x24be
ucomisd %xmm1, %xmm1
jp 0x2558
subsd %xmm11, %xmm7
subsd %xmm1, %xmm8
movapd %xmm8, %xmm0
mulsd %xmm5, %xmm0
movapd %xmm7, %xmm1
mulsd %xmm5, %xmm1
subsd %xmm7, %xmm0
addsd %xmm8, %xmm1
ucomisd %xmm0, %xmm0
jp 0x25c7
addsd %xmm6, %xmm0
unpckhpd %xmm6, %xmm6            # xmm6 = xmm6[1,1]
addsd %xmm1, %xmm6
movsd %xmm0, (%rbx,%r12)
movsd %xmm6, 0x8(%rbx,%r12)
incq %r13
addq $0x10, %rbx
jmp 0x1b6f
ucomisd %xmm7, %xmm7
movapd 0xd0(%rsp), %xmm0
movapd %xmm0, 0x100(%rsp)
jnp 0x1c37
movapd %xmm14, %xmm0
movapd 0x120(%rsp), %xmm1
movapd %xmm12, %xmm2
movapd %xmm13, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
callq 0x2650
movapd 0xe0(%rsp), %xmm2
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x31c5(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0x100(%rsp)
jmp 0x1c37
ucomisd %xmm11, %xmm11
movapd 0xc0(%rsp), %xmm0
jnp 0x1caf
movapd %xmm4, %xmm0
movapd 0x110(%rsp), %xmm1
movapd %xmm9, %xmm2
movapd %xmm10, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0xe0(%rsp), %xmm2
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x30c8(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd 0xf0(%rsp), %xmm1
jmp 0x1caf
ucomisd %xmm7, %xmm7
movapd 0xd0(%rsp), %xmm15
jnp 0x1cdd
movapd %xmm14, %xmm0
movapd 0x120(%rsp), %xmm1
movapd %xmm12, %xmm2
movapd %xmm13, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2fd3(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
movapd %xmm0, %xmm15
unpcklpd %xmm1, %xmm15           # xmm15 = xmm15[0],xmm1[0]
movapd 0xf0(%rsp), %xmm1
jmp 0x1cdd
ucomisd %xmm11, %xmm11
movapd 0xc0(%rsp), %xmm0
jnp 0x1cf0
movapd %xmm4, %xmm0
movapd 0x110(%rsp), %xmm1
movapd %xmm9, %xmm2
movapd %xmm10, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
movapd %xmm15, 0x100(%rsp)
callq 0x2650
movapd 0x100(%rsp), %xmm15
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2ec5(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
jmp 0x1cf0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
ucomisd %xmm1, %xmm1
movapd 0xe0(%rsp), %xmm2
jnp 0x1d30
movapd %xmm15, %xmm3
unpckhpd %xmm15, %xmm3           # xmm3 = xmm3[1],xmm15[1]
xorpd %xmm0, %xmm0
movsd 0x105a(%rip), %xmm1     # 0x3250
movapd %xmm15, %xmm2
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0xe0(%rsp), %xmm2
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2dca(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
jmp 0x1d30
ucomisd %xmm7, %xmm7
movapd 0xf0(%rsp), %xmm1
jnp 0x1d52
movapd %xmm14, %xmm0
movapd 0x120(%rsp), %xmm1
movapd %xmm12, %xmm2
movapd %xmm13, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0xe0(%rsp), %xmm2
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2cd6(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0xd0(%rsp)
jmp 0x1d49
ucomisd %xmm11, %xmm11
jnp 0x1d5c
movapd %xmm4, %xmm0
movapd 0x110(%rsp), %xmm1
movapd %xmm9, %xmm2
movapd %xmm10, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm12, 0xb0(%rsp)
movapd %xmm13, 0xa0(%rsp)
movapd %xmm14, 0x90(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0xe0(%rsp), %xmm2
movapd 0x80(%rsp), %xmm11
movapd 0x90(%rsp), %xmm14
movapd 0xa0(%rsp), %xmm13
movapd 0xb0(%rsp), %xmm12
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2be2(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0xc0(%rsp)
movapd 0xf0(%rsp), %xmm1
jmp 0x1d5c
ucomisd %xmm7, %xmm7
jnp 0x1d83
movapd %xmm14, %xmm0
movapd 0x120(%rsp), %xmm1
movapd %xmm12, %xmm2
movapd %xmm13, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm9, 0x40(%rsp)
movapd %xmm10, 0x30(%rsp)
movapd %xmm4, 0x20(%rsp)
movapd %xmm11, 0x80(%rsp)
callq 0x2650
movapd 0x80(%rsp), %xmm11
movapd 0x20(%rsp), %xmm4
movapd 0x30(%rsp), %xmm10
movapd 0x40(%rsp), %xmm9
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2b44(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
movapd %xmm0, %xmm8
movapd %xmm1, %xmm7
movapd 0xf0(%rsp), %xmm1
jmp 0x1d83
ucomisd %xmm11, %xmm11
jnp 0x1d8d
movapd %xmm4, %xmm0
movapd 0x110(%rsp), %xmm1
movapd %xmm9, %xmm2
movapd %xmm10, %xmm3
movapd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x60(%rsp)
movapd %xmm8, 0x50(%rsp)
callq 0x2650
movapd 0x50(%rsp), %xmm8
movapd 0x60(%rsp), %xmm7
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2acc(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
movapd %xmm1, %xmm11
movapd %xmm0, %xmm1
jmp 0x1d8d
ucomisd %xmm1, %xmm1
jnp 0x1dbb
xorpd %xmm0, %xmm0
movsd 0xc73(%rip), %xmm1      # 0x3250
movapd %xmm8, %xmm2
movapd %xmm7, %xmm3
movapd %xmm6, 0x10(%rsp)
callq 0x2650
movapd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
xorpd %xmm3, %xmm3
leaq 0x2a7a(%rip), %rdi      # 0x5080
movq 0x8(%rsp), %rsi
jmp 0x1dbb