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

      unsigned k;
      for (k = 1; k < l / 2; 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));
      for (k++; 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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, 0x28(%rsp)
movl %ecx, %eax
subl %edx, %eax
movl $0x1, %ebp
movl $0x1, %ebx
movl %eax, %ecx
shll %cl, %ebx
movq %rdx, 0x30(%rsp)
movl %edx, %ecx
shll %cl, %ebp
movq %rdi, %r14
shlq $0x4, %rbp
addq %rdi, %rbp
cmpl $0x4, %ebx
je 0x198c
cmpl $0x2, %ebx
jne 0x1aa9
movsd (%r14), %xmm3
movsd 0x8(%r14), %xmm2
movsd (%rbp), %xmm0
movsd 0x8(%rbp), %xmm1
movapd %xmm3, %xmm4
addsd %xmm0, %xmm4
movapd %xmm2, %xmm5
addsd %xmm1, %xmm5
movsd %xmm4, (%rsi)
movsd %xmm5, 0x8(%rsi)
subsd %xmm0, %xmm3
subsd %xmm1, %xmm2
movl $0x18, %eax
movl $0x10, %ecx
jmp 0x1a8d
movsd (%r14), %xmm6
movsd 0x8(%r14), %xmm7
movsd (%rbp), %xmm8
movl $0x2, %eax
movq 0x30(%rsp), %rcx
shll %cl, %eax
movsd 0x8(%rbp), %xmm9
shlq $0x4, %rax
movsd (%r14,%rax), %xmm10
movl $0x3, %edx
shll %cl, %edx
movsd 0x8(%r14,%rax), %xmm11
shlq $0x4, %rdx
movsd (%r14,%rdx), %xmm2
movsd 0x8(%r14,%rdx), %xmm3
movapd %xmm8, %xmm5
subsd %xmm2, %xmm5
movapd %xmm9, %xmm4
subsd %xmm3, %xmm4
xorpd %xmm1, %xmm1
movapd %xmm5, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm4, %xmm1
subsd %xmm4, %xmm0
addsd %xmm5, %xmm1
ucomisd %xmm0, %xmm0
jp 0x213a
addsd %xmm3, %xmm9
addsd %xmm2, %xmm8
movapd %xmm7, %xmm2
subsd %xmm11, %xmm2
movapd %xmm6, %xmm3
subsd %xmm10, %xmm3
addsd %xmm11, %xmm7
addsd %xmm10, %xmm6
movapd %xmm6, %xmm4
addsd %xmm8, %xmm4
movapd %xmm7, %xmm5
addsd %xmm9, %xmm5
movsd %xmm4, (%rsi)
movsd %xmm5, 0x8(%rsi)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movsd %xmm4, 0x10(%rsi)
movsd %xmm5, 0x18(%rsi)
subsd %xmm8, %xmm6
subsd %xmm9, %xmm7
movsd %xmm6, 0x20(%rsi)
movsd %xmm7, 0x28(%rsi)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movl $0x38, %eax
movl $0x30, %ecx
movsd %xmm3, (%rsi,%rcx)
movsd %xmm2, (%rsi,%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, 0x38(%rsp)
movq %rbx, 0x18(%rsp)
shrl $0x2, %ebx
movq 0x30(%rsp), %rax
leal 0x2(%rax), %r13d
movq %r14, %rdi
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rsi
movl %r13d, %edx
movl %r13d, 0x8(%rsp)
movq 0x28(%rsp), %r12
movl %r12d, %ecx
callq 0x18fe
movq %rbx, %r15
shlq $0x4, %r15
movq 0x10(%rsp), %rax
leaq (%rax,%r15), %rsi
movq %rbp, %rdi
movq %rsi, 0x20(%rsp)
movl %r13d, %edx
movl %r12d, %ecx
callq 0x18fe
movl $0x2, %edi
movq 0x30(%rsp), %r13
movl %r13d, %ecx
shll %cl, %edi
shlq $0x4, %rdi
addq %r14, %rdi
leal (%rbx,%rbx), %ebp
shlq $0x4, %rbp
movq 0x10(%rsp), %rax
leaq (%rax,%rbp), %rsi
movq %rsi, 0x58(%rsp)
movl 0x8(%rsp), %edx
movl %r12d, %ecx
callq 0x18fe
movl $0x3, %edi
movl %r13d, %ecx
shll %cl, %edi
shlq $0x4, %rdi
addq %r14, %rdi
movq %rbx, 0x40(%rsp)
leal (%rbx,%rbx,2), %ebx
shlq $0x4, %rbx
movq 0x10(%rsp), %rax
leaq (%rax,%rbx), %r14
movq %r14, %rsi
movl 0x8(%rsp), %edx
movq %r15, %r13
movl %r12d, %ecx
callq 0x18fe
movq 0x10(%rsp), %rdx
movsd (%rdx), %xmm6
movsd 0x8(%rdx), %xmm7
movsd (%rdx,%r15), %xmm9
movsd 0x8(%rdx,%r15), %xmm8
movsd (%rdx,%rbp), %xmm10
movsd 0x8(%rdx,%rbp), %xmm11
movsd (%rdx,%rbx), %xmm2
movsd 0x8(%rdx,%rbx), %xmm3
movapd %xmm9, %xmm5
subsd %xmm2, %xmm5
movapd %xmm8, %xmm4
subsd %xmm3, %xmm4
xorpd %xmm1, %xmm1
movapd %xmm5, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm4, %xmm1
subsd %xmm4, %xmm0
addsd %xmm5, %xmm1
ucomisd %xmm0, %xmm0
jp 0x21d0
addsd %xmm3, %xmm8
addsd %xmm2, %xmm9
movapd %xmm7, %xmm2
subsd %xmm11, %xmm2
movapd %xmm6, %xmm3
subsd %xmm10, %xmm3
addsd %xmm11, %xmm7
addsd %xmm10, %xmm6
movapd %xmm6, %xmm4
addsd %xmm9, %xmm4
movapd %xmm7, %xmm5
addsd %xmm8, %xmm5
movsd %xmm4, (%rdx)
movsd %xmm5, 0x8(%rdx)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movq 0x20(%rsp), %rax
movsd %xmm4, (%rax)
movsd %xmm5, 0x8(%rax)
subsd %xmm9, %xmm6
subsd %xmm8, %xmm7
movq 0x58(%rsp), %rax
movsd %xmm6, (%rax)
movsd %xmm7, 0x8(%rax)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movsd %xmm3, (%r14)
movsd %xmm2, 0x8(%r14)
movq 0x18(%rsp), %rsi
shrl $0x3, %esi
movq %rsi, %rax
shlq $0x4, %rax
leaq (%rdx,%rax), %r14
movsd (%rdx,%rax), %xmm6
movsd 0x8(%rdx,%rax), %xmm7
movsd (%rbp,%r14), %xmm0
movsd 0x8(%rbp,%r14), %xmm1
movsd 0x13d8(%rip), %xmm9     # 0x3070
movapd %xmm0, %xmm8
mulsd %xmm9, %xmm8
mulsd %xmm1, %xmm9
addsd %xmm1, %xmm8
subsd %xmm0, %xmm9
ucomisd %xmm8, %xmm8
jp 0x2277
addq %r14, %rbp
leaq (%r14,%r13), %r12
movsd 0x1565(%rip), %xmm2     # 0x3230
movsd (%r14,%r13), %xmm0
mulsd %xmm2, %xmm0
movsd 0x8(%r14,%r13), %xmm10
mulsd %xmm2, %xmm10
leaq (%r14,%rbx), %r13
movsd (%r14,%rbx), %xmm1
mulsd %xmm2, %xmm1
mulsd 0x8(%r14,%rbx), %xmm2
movapd %xmm0, %xmm11
addsd %xmm10, %xmm11
subsd %xmm0, %xmm10
movapd %xmm2, %xmm3
subsd %xmm1, %xmm3
xorpd 0x131b(%rip), %xmm2     # 0x3030
subsd %xmm1, %xmm2
movapd %xmm11, %xmm5
subsd %xmm3, %xmm5
movapd %xmm10, %xmm4
subsd %xmm2, %xmm4
xorpd %xmm1, %xmm1
movapd %xmm5, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm4, %xmm1
subsd %xmm4, %xmm0
addsd %xmm5, %xmm1
ucomisd %xmm0, %xmm0
jp 0x22c9
addsd %xmm2, %xmm10
addsd %xmm3, %xmm11
movapd %xmm7, %xmm2
subsd %xmm9, %xmm2
movapd %xmm6, %xmm3
subsd %xmm8, %xmm3
addsd %xmm9, %xmm7
addsd %xmm8, %xmm6
movapd %xmm6, %xmm4
addsd %xmm11, %xmm4
movapd %xmm7, %xmm5
addsd %xmm10, %xmm5
movsd %xmm4, (%r14)
movsd %xmm5, 0x8(%r14)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movsd %xmm4, (%r12)
movsd %xmm5, 0x8(%r12)
subsd %xmm11, %xmm6
subsd %xmm10, %xmm7
movsd %xmm6, (%rbp)
movsd %xmm7, 0x8(%rbp)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movsd %xmm3, (%r13)
movsd %xmm2, 0x8(%r13)
movl $0x1, %r12d
cmpl $0x4, 0x38(%rsp)
jb 0x1f87
movq 0x28(%rsp), %rax
leal -0x3(%rax), %ebp
movl $0x1, %edi
movl %ebp, %ecx
shll %cl, %edi
movq %rdi, 0x8(%rsp)
leal -0x1(%rdi), %ecx
movl %ecx, 0x38(%rsp)
decl %eax
movl %eax, 0x20(%rsp)
cmpl $0x3, %esi
movl $0x2, %ebx
cmovbl %ebx, %esi
leaq 0x10(%rdx), %r14
movl $0x1, %r12d
movl $0x3, %r13d
movq %rsi, 0x18(%rsp)
movl %r12d, %edx
movq 0x30(%rsp), %r10
movl %r10d, %ecx
shll %cl, %edx
movl %edx, %esi
movl %edx, %eax
movl %ebp, %ecx
shrl %cl, %eax
movl 0x38(%rsp), %r15d
andl %r15d, %esi
movq 0x8(%rsp), %r11
movl %r11d, %edi
subl %esi, %edi
btl %ebp, %edx
cmovael %esi, %edi
movl %ebx, %r8d
movl %r10d, %ecx
shll %cl, %r8d
movl %r8d, %edx
movl %ebp, %ecx
shrl %cl, %edx
movl %r8d, %ecx
andl %r15d, %ecx
movl %r11d, %esi
subl %ecx, %esi
btl %ebp, %r8d
cmovael %ecx, %esi
movl %r13d, %r9d
movl %r10d, %ecx
shll %cl, %r9d
movl %r9d, %r8d
andl %r15d, %r8d
movl %r9d, %r10d
movl %ebp, %ecx
shrl %cl, %r10d
movl %r11d, %ecx
subl %r8d, %ecx
btl %ebp, %r9d
cmovael %r8d, %ecx
leaq 0x31dc(%rip), %r8       # 0x5080
movq (%r8), %r8
movl %r10d, %r11d
shrl %r11d
xorl %r10d, %r11d
movl %r11d, %r15d
andl $0x1, %r15d
shlq $0x4, %rcx
addq %r8, %rcx
shlq $0x3f, %r10
xorq (%rcx,%r15,8), %r10
xorl $0x1, %r15d
shlq $0x3f, %r11
xorq (%rcx,%r15,8), %r11
movq %r11, %xmm5
movq %r10, %xmm4
movl 0x20(%rsp), %ecx
shrl %cl, %r9d
testl %r9d, %r9d
je 0x1ef8
movdqa 0x1140(%rip), %xmm0     # 0x3030
pxor %xmm0, %xmm4
pxor %xmm0, %xmm5
movl %eax, %ecx
shrl %ecx
xorl %eax, %ecx
movl %ecx, %r9d
andl $0x1, %r9d
shlq $0x4, %rdi
addq %r8, %rdi
shlq $0x3f, %rax
xorq (%rdi,%r9,8), %rax
xorl $0x1, %r9d
shlq $0x3f, %rcx
xorq (%rdi,%r9,8), %rcx
movq %rcx, %xmm1
movl %edx, %ecx
shrl %ecx
xorl %edx, %ecx
movl %ecx, %edi
andl $0x1, %edi
shlq $0x4, %rsi
addq %r8, %rsi
shlq $0x3f, %rdx
xorq (%rsi,%rdi,8), %rdx
movq %rax, %xmm0
xorl $0x1, %edi
shlq $0x3f, %rcx
xorq (%rsi,%rdi,8), %rcx
movq %rcx, %xmm3
movq %rdx, %xmm2
movq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x2372
incq %r12
addl $0x3, %r13d
addl $0x2, %ebx
addq $0x10, %r14
movq 0x18(%rsp), %rsi
cmpq %r12, %rsi
jne 0x1e29
movq 0x10(%rsp), %rdx
leal 0x1(%r12), %eax
cmpl 0x40(%rsp), %eax
jae 0x1a97
movq 0x28(%rsp), %rax
leal -0x3(%rax), %ebp
movl $0x1, %esi
movl %ebp, %ecx
shll %cl, %esi
movq %rsi, 0x18(%rsp)
leal -0x1(%rsi), %ecx
movl %ecx, 0x8(%rsp)
decl %eax
movq %rax, 0x28(%rsp)
movl %r12d, %eax
leaq 0x1(%rax), %rbx
leal (%r12,%r12,2), %r15d
addl $0x3, %r15d
leal 0x2(,%r12,2), %r12d
shlq $0x4, %rax
leaq (%rax,%rdx), %r14
addq $0x10, %r14
movl %ebx, %edx
movq 0x30(%rsp), %r10
movl %r10d, %ecx
shll %cl, %edx
movl %edx, %esi
movl %edx, %eax
movl %ebp, %ecx
shrl %cl, %eax
movl 0x8(%rsp), %r13d
andl %r13d, %esi
movq 0x18(%rsp), %r11
movl %r11d, %edi
subl %esi, %edi
btl %ebp, %edx
cmovael %esi, %edi
movl %r12d, %r8d
movl %r10d, %ecx
shll %cl, %r8d
movl %r8d, %edx
movl %ebp, %ecx
shrl %cl, %edx
movl %r8d, %ecx
andl %r13d, %ecx
movl %r11d, %esi
subl %ecx, %esi
btl %ebp, %r8d
cmovael %ecx, %esi
movl %r15d, %r9d
movl %r10d, %ecx
shll %cl, %r9d
movl %r9d, %r8d
andl %r13d, %r8d
movl %r9d, %r10d
movl %ebp, %ecx
shrl %cl, %r10d
movl %r11d, %ecx
subl %r8d, %ecx
btl %ebp, %r9d
cmovael %r8d, %ecx
leaq 0x3029(%rip), %r8       # 0x5080
movq (%r8), %r8
movl %r10d, %r11d
shrl %r11d
xorl %r10d, %r11d
movl %r11d, %r13d
andl $0x1, %r13d
shlq $0x4, %rcx
addq %r8, %rcx
shlq $0x3f, %r10
xorq (%rcx,%r13,8), %r10
xorl $0x1, %r13d
shlq $0x3f, %r11
xorq (%rcx,%r13,8), %r11
movq %r11, %xmm5
movq %r10, %xmm4
movq 0x28(%rsp), %rcx
shrl %cl, %r9d
testl %r9d, %r9d
je 0x20ac
movdqa 0xf8c(%rip), %xmm0      # 0x3030
pxor %xmm0, %xmm4
pxor %xmm0, %xmm5
movl %eax, %ecx
shrl %ecx
xorl %eax, %ecx
movl %ecx, %r9d
andl $0x1, %r9d
shlq $0x4, %rdi
addq %r8, %rdi
shlq $0x3f, %rax
xorq (%rdi,%r9,8), %rax
xorl $0x1, %r9d
shlq $0x3f, %rcx
xorq (%rdi,%r9,8), %rcx
movq %rcx, %xmm1
movl %edx, %ecx
shrl %ecx
xorl %edx, %ecx
movl %ecx, %edi
andl $0x1, %edi
shlq $0x4, %rsi
addq %r8, %rsi
shlq $0x3f, %rdx
xorq (%rsi,%rdi,8), %rdx
movq %rax, %xmm0
xorl $0x1, %edi
shlq $0x3f, %rcx
xorq (%rsi,%rdi,8), %rcx
movq %rcx, %xmm3
movq %rdx, %xmm2
movq 0x40(%rsp), %r13
movl %r13d, %edi
movq %r14, %rsi
callq 0x2372
incq %rbx
addl $0x3, %r15d
addl $0x2, %r12d
addq $0x10, %r14
cmpq %rbx, %r13
jne 0x1fdd
jmp 0x1a97
ucomisd %xmm1, %xmm1
jnp 0x1a0c
movsd %xmm3, 0x10(%rsp)
movsd 0x10ce(%rip), %xmm3     # 0x3220
movsd %xmm2, 0x20(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movq %rsi, %rbx
movsd %xmm6, 0x30(%rsp)
movsd %xmm7, 0x40(%rsp)
movsd %xmm8, 0x28(%rsp)
movsd %xmm9, 0x18(%rsp)
movsd %xmm10, 0x8(%rsp)
movsd %xmm11, 0x38(%rsp)
callq 0x2750
movsd 0x10(%rsp), %xmm3
movsd 0x20(%rsp), %xmm2
movsd 0x38(%rsp), %xmm11
movsd 0x8(%rsp), %xmm10
movsd 0x18(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x40(%rsp), %xmm7
movsd 0x30(%rsp), %xmm6
movq %rbx, %rsi
jmp 0x1a0c
ucomisd %xmm1, %xmm1
jnp 0x1bd9
movsd %xmm3, 0x80(%rsp)
movsd 0x1035(%rip), %xmm3     # 0x3220
movsd %xmm2, 0x88(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, 0x50(%rsp)
movsd %xmm8, 0x48(%rsp)
movsd %xmm9, 0x70(%rsp)
movsd %xmm10, 0x60(%rsp)
movsd %xmm11, 0x90(%rsp)
callq 0x2750
movsd 0x80(%rsp), %xmm3
movsd 0x88(%rsp), %xmm2
movsd 0x90(%rsp), %xmm11
movsd 0x60(%rsp), %xmm10
movsd 0x70(%rsp), %xmm9
movsd 0x48(%rsp), %xmm8
movsd 0x50(%rsp), %xmm7
movsd 0x8(%rsp), %xmm6
movq 0x10(%rsp), %rdx
jmp 0x1bd9
ucomisd %xmm9, %xmm9
jnp 0x1cbc
movsd 0xde6(%rip), %xmm2      # 0x3070
movsd 0xf96(%rip), %xmm3      # 0x3228
movq %rsi, %r15
movsd %xmm6, 0x18(%rsp)
movsd %xmm7, 0x8(%rsp)
callq 0x2750
movsd 0x8(%rsp), %xmm7
movsd 0x18(%rsp), %xmm6
movq %r15, %rsi
movq 0x10(%rsp), %rdx
movapd %xmm0, %xmm8
movapd %xmm1, %xmm9
jmp 0x1cbc
ucomisd %xmm1, %xmm1
jnp 0x1d4d
movapd %xmm3, 0x60(%rsp)
movsd 0xf3f(%rip), %xmm3      # 0x3220
movapd %xmm2, 0x70(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movq %rsi, %r15
movsd %xmm6, 0x18(%rsp)
movsd %xmm7, 0x8(%rsp)
movsd %xmm8, 0x20(%rsp)
movsd %xmm9, 0x58(%rsp)
movsd %xmm10, 0x50(%rsp)
movsd %xmm11, 0x48(%rsp)
callq 0x2750
movapd 0x60(%rsp), %xmm3
movapd 0x70(%rsp), %xmm2
movsd 0x48(%rsp), %xmm11
movsd 0x50(%rsp), %xmm10
movsd 0x58(%rsp), %xmm9
movsd 0x20(%rsp), %xmm8
movsd 0x8(%rsp), %xmm7
movsd 0x18(%rsp), %xmm6
movq %r15, %rsi
movq 0x10(%rsp), %rdx
jmp 0x1d4d