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

  switch (l)
    {
    case 2:			/* last stage radix 2 */
      ct_dit_bf2_0(1, stride, out, in);
      break;

    case 4:			/* last stage radix 4 */
      mr_dit_bf4_0(1, stride, out, in);
      break;

    default:
      l >>= 2;
      mr_dit_dr(in,              out,         s + 2, log2_N);
      mr_dit_dr(in + stride,     out + l,     s + 2, log2_N);
      mr_dit_dr(in + stride * 2, out + 2 * l, s + 2, log2_N);
      mr_dit_dr(in + stride * 3, out + 3 * l, s + 2, log2_N);

      mr_dit_bf4_0(l, l, out, out);
      mr_dit_bf4_1(l, out + 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);
          mr_dit_bf4(l, out + k, w1, w2, w3);
          mr_dit_bf4(l, out + l - k, conj(w1 * I), -conj(w2), -conj(w3 * I));
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl -0x14(%rbp), %ecx
subl %ecx, %eax
movb %al, %cl
movl $0x1, %eax
movl %eax, %edx
shll %cl, %edx
movl %edx, %ecx
movl %ecx, -0x1c(%rbp)
movb -0x14(%rbp), %cl
shll %cl, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0xbc(%rbp)
subl $0x2, %eax
je 0x1da6
jmp 0x1d99
movl -0xbc(%rbp), %eax
subl $0x4, %eax
je 0x1dc0
jmp 0x1dda
movl -0x20(%rbp), %esi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %edi
callq 0x2320
jmp 0x22e0
movl -0x20(%rbp), %esi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %edi
callq 0x23d0
jmp 0x22e0
movl -0x1c(%rbp), %eax
shrl $0x2, %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
addl $0x2, %edx
movl -0x18(%rbp), %ecx
callq 0x1d50
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x14(%rbp), %edx
addl $0x2, %edx
movl -0x18(%rbp), %ecx
callq 0x1d50
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %eax
shll %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x14(%rbp), %edx
addl $0x2, %edx
movl -0x18(%rbp), %ecx
callq 0x1d50
movq -0x8(%rbp), %rdi
imull $0x3, -0x20(%rbp), %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
imull $0x3, -0x1c(%rbp), %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x14(%rbp), %edx
addl $0x2, %edx
movl -0x18(%rbp), %ecx
callq 0x1d50
movl -0x1c(%rbp), %edi
movl -0x1c(%rbp), %esi
movq -0x10(%rbp), %rdx
movq -0x10(%rbp), %rcx
callq 0x23d0
movl -0x1c(%rbp), %edi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %eax
shrl %eax
movl %eax, %eax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x26c0
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jae 0x22de
movl -0x24(%rbp), %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2b50
movsd %xmm0, -0x38(%rbp)
movsd %xmm1, -0x30(%rbp)
movl -0x24(%rbp), %edi
shll %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2b50
movsd %xmm0, -0x48(%rbp)
movsd %xmm1, -0x40(%rbp)
imull $0x3, -0x24(%rbp), %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2b50
movsd %xmm0, -0x58(%rbp)
movsd %xmm1, -0x50(%rbp)
movl -0x1c(%rbp), %edi
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm0
movsd -0x48(%rbp), %xmm3
movsd -0x40(%rbp), %xmm2
movsd -0x58(%rbp), %xmm5
movsd -0x50(%rbp), %xmm4
movsd %xmm1, -0x68(%rbp)
movsd %xmm0, -0x60(%rbp)
movsd -0x68(%rbp), %xmm0
movsd -0x60(%rbp), %xmm1
movsd %xmm3, -0x78(%rbp)
movsd %xmm2, -0x70(%rbp)
movsd -0x78(%rbp), %xmm2
movsd -0x70(%rbp), %xmm3
movsd %xmm5, -0x88(%rbp)
movsd %xmm4, -0x80(%rbp)
movsd -0x88(%rbp), %xmm4
movsd -0x80(%rbp), %xmm5
callq 0x2c30
movl -0x1c(%rbp), %eax
movl %eax, -0xfc(%rbp)
movq -0x10(%rbp), %rax
movl -0x1c(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movl -0x24(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm1
movsd %xmm1, -0xf0(%rbp)
movsd -0x30(%rbp), %xmm2
movsd %xmm2, -0xe8(%rbp)
xorps %xmm3, %xmm3
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd 0x2025(%rip), %xmm4     # 0x4010
movaps %xmm2, %xmm3
mulsd %xmm4, %xmm3
movsd 0x2016(%rip), %xmm4     # 0x4010
mulsd %xmm4, %xmm1
xorps %xmm4, %xmm4
mulsd %xmm4, %xmm2
subsd %xmm3, %xmm0
movsd %xmm0, -0xe0(%rbp)
addsd %xmm2, %xmm1
movsd %xmm1, -0xd8(%rbp)
ucomisd %xmm0, %xmm0
movsd %xmm0, -0xd0(%rbp)
movsd %xmm1, -0xc8(%rbp)
jnp 0x2089
movsd -0xd8(%rbp), %xmm1
movsd -0xe0(%rbp), %xmm0
ucomisd %xmm1, %xmm1
movsd %xmm0, -0xd0(%rbp)
movsd %xmm1, -0xc8(%rbp)
jnp 0x2089
movsd -0xe8(%rbp), %xmm1
movsd -0xf0(%rbp), %xmm0
xorps %xmm2, %xmm2
movsd 0x1f9c(%rip), %xmm3     # 0x4010
callq 0x31f0
movsd %xmm0, -0xd0(%rbp)
movsd %xmm1, -0xc8(%rbp)
movsd -0xd0(%rbp), %xmm1
movsd -0xc8(%rbp), %xmm0
movsd %xmm1, -0x150(%rbp)
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x148(%rbp)
movsd -0x48(%rbp), %xmm1
movsd -0x40(%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, -0x140(%rbp)
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x138(%rbp)
movsd -0x58(%rbp), %xmm1
movsd %xmm1, -0x130(%rbp)
movsd -0x50(%rbp), %xmm2
movsd %xmm2, -0x128(%rbp)
xorps %xmm3, %xmm3
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd 0x1ec5(%rip), %xmm4     # 0x4010
movaps %xmm2, %xmm3
mulsd %xmm4, %xmm3
movsd 0x1eb6(%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 0x21e9
movsd -0x118(%rbp), %xmm1
movsd -0x120(%rbp), %xmm0
ucomisd %xmm1, %xmm1
movsd %xmm0, -0x110(%rbp)
movsd %xmm1, -0x108(%rbp)
jnp 0x21e9
movsd -0x128(%rbp), %xmm1
movsd -0x130(%rbp), %xmm0
xorps %xmm2, %xmm2
movsd 0x1e3c(%rip), %xmm3     # 0x4010
callq 0x31f0
movsd %xmm0, -0x110(%rbp)
movsd %xmm1, -0x108(%rbp)
movq -0xf8(%rbp), %rsi
movl -0xfc(%rbp), %edi
movsd -0x138(%rbp), %xmm2
movsd -0x140(%rbp), %xmm3
movsd -0x148(%rbp), %xmm0
movsd -0x150(%rbp), %xmm1
movsd -0x110(%rbp), %xmm5
movsd -0x108(%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, -0x98(%rbp)
movsd %xmm0, -0x90(%rbp)
movsd -0x98(%rbp), %xmm0
movsd -0x90(%rbp), %xmm1
movsd %xmm3, -0xa8(%rbp)
movsd %xmm2, -0xa0(%rbp)
movsd -0xa8(%rbp), %xmm2
movsd -0xa0(%rbp), %xmm3
movsd %xmm5, -0xb8(%rbp)
movsd %xmm4, -0xb0(%rbp)
movsd -0xb8(%rbp), %xmm4
movsd -0xb0(%rbp), %xmm5
callq 0x2c30
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x1eb9
jmp 0x22e0
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopl (%rax)