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

      for (unsigned k = 0; k < l; k++)
        mr_dit_bf4(l, out + k,
               get_twiddle(k << s, log2_N),
               get_twiddle(k * 2 << s, log2_N),
               get_twiddle_mr(k * 3 << s, log2_N));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
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, -0x5c(%rbp)
subl $0x2, %eax
je 0x1ee0
jmp 0x1ed6
movl -0x5c(%rbp), %eax
subl $0x4, %eax
je 0x1efa
jmp 0x1f14
movl -0x20(%rbp), %esi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %edi
callq 0x20f0
jmp 0x20af
movl -0x20(%rbp), %esi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %edi
callq 0x21a0
jmp 0x20af
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 0x1e90
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 0x1e90
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 0x1e90
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 0x1e90
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x20ad
movl -0x1c(%rbp), %eax
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movl -0x24(%rbp), %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2a50
movsd %xmm0, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movl -0x24(%rbp), %edi
shll %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2a50
movsd %xmm0, -0x90(%rbp)
movsd %xmm1, -0x88(%rbp)
imull $0x3, -0x24(%rbp), %edi
movl -0x14(%rbp), %ecx
shll %cl, %edi
movl -0x18(%rbp), %esi
callq 0x2a90
movsd -0x90(%rbp), %xmm3
movsd -0x88(%rbp), %xmm2
movl -0x7c(%rbp), %edi
movq -0x78(%rbp), %rsi
movaps %xmm0, %xmm5
movsd -0x70(%rbp), %xmm0
movaps %xmm1, %xmm4
movsd -0x68(%rbp), %xmm1
movsd %xmm0, -0x38(%rbp)
movsd %xmm1, -0x30(%rbp)
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movsd %xmm3, -0x48(%rbp)
movsd %xmm2, -0x40(%rbp)
movsd -0x48(%rbp), %xmm2
movsd -0x40(%rbp), %xmm3
movsd %xmm5, -0x58(%rbp)
movsd %xmm4, -0x50(%rbp)
movsd -0x58(%rbp), %xmm4
movsd -0x50(%rbp), %xmm5
callq 0x2490
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x1fc6
jmp 0x20af
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)