// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movl %ecx, 0x14(%rsp)
movl %ecx, %esi
subl %edx, %esi
movl $0x1, %r15d
movl $0x1, %eax
movl %esi, %ecx
shll %cl, %eax
movq %rdx, 0x18(%rsp)
movl %edx, %ecx
shll %cl, %r15d
movq %rdi, %r13
shlq $0x4, %r15
addq %rdi, %r15
cmpl $0x4, %eax
je 0x1992
cmpl $0x2, %eax
jne 0x1ab1
movsd (%r13), %xmm3
movsd 0x8(%r13), %xmm2
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movapd %xmm3, %xmm4
addsd %xmm0, %xmm4
movapd %xmm2, %xmm5
addsd %xmm1, %xmm5
movsd %xmm4, (%rbx)
movsd %xmm5, 0x8(%rbx)
subsd %xmm0, %xmm3
subsd %xmm1, %xmm2
movl $0x18, %eax
movl $0x10, %ecx
jmp 0x1a95
movsd (%r13), %xmm6
movsd 0x8(%r13), %xmm7
movsd (%r15), %xmm8
movl $0x2, %eax
movq 0x18(%rsp), %rcx
shll %cl, %eax
movsd 0x8(%r15), %xmm9
shlq $0x4, %rax
movsd (%r13,%rax), %xmm10
movl $0x3, %edx
shll %cl, %edx
movsd 0x8(%r13,%rax), %xmm11
shlq $0x4, %rdx
movsd (%r13,%rdx), %xmm2
movsd 0x8(%r13,%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 0x20b6
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, (%rbx)
movsd %xmm5, 0x8(%rbx)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movsd %xmm4, 0x10(%rbx)
movsd %xmm5, 0x18(%rbx)
subsd %xmm8, %xmm6
subsd %xmm9, %xmm7
movsd %xmm6, 0x20(%rbx)
movsd %xmm7, 0x28(%rbx)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movl $0x38, %eax
movl $0x30, %ecx
movsd %xmm3, (%rbx,%rcx)
movsd %xmm2, (%rbx,%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %esi, 0x48(%rsp)
movq %rax, 0x40(%rsp)
movl %eax, %ebp
shrl $0x2, %ebp
movq 0x18(%rsp), %rax
leal 0x2(%rax), %r14d
movq %r13, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl %r14d, 0x8(%rsp)
movl 0x14(%rsp), %ecx
callq 0x18fe
movq %rbp, %r12
shlq $0x4, %r12
leaq (%rbx,%r12), %rsi
movq %r15, %rdi
movq %rsi, 0x60(%rsp)
movl %r14d, %edx
movl 0x14(%rsp), %r14d
movl %r14d, %ecx
callq 0x18fe
movl $0x2, %edi
movq 0x18(%rsp), %rcx
shll %cl, %edi
shlq $0x4, %rdi
addq %r13, %rdi
leal (,%rbp,2), %r15d
shlq $0x4, %r15
leaq (%rbx,%r15), %rsi
movq %rsi, (%rsp)
movl 0x8(%rsp), %edx
movl %r14d, %ecx
callq 0x18fe
movl $0x3, %edi
movq 0x18(%rsp), %rcx
shll %cl, %edi
shlq $0x4, %rdi
addq %r13, %rdi
movq %rbp, 0x38(%rsp)
leal (%rbp,%rbp,2), %ebp
shlq $0x4, %rbp
leaq (%rbx,%rbp), %r13
movq %r13, %rsi
movl 0x8(%rsp), %edx
movl %r14d, %ecx
callq 0x18fe
movq %r15, %rcx
movq %r12, %rsi
movsd (%rbx), %xmm6
movsd 0x8(%rbx), %xmm7
movsd (%rbx,%r12), %xmm9
movsd 0x8(%rbx,%r12), %xmm8
movsd (%rbx,%r15), %xmm10
movsd 0x8(%rbx,%r15), %xmm11
movsd (%rbx,%rbp), %xmm2
movsd 0x8(%rbx,%rbp), %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 0x2144
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, (%rbx)
movsd %xmm5, 0x8(%rbx)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movq 0x60(%rsp), %rax
movsd %xmm4, (%rax)
movsd %xmm5, 0x8(%rax)
subsd %xmm9, %xmm6
subsd %xmm8, %xmm7
movq (%rsp), %rax
movsd %xmm6, (%rax)
movsd %xmm7, 0x8(%rax)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movsd %xmm3, (%r13)
movsd %xmm2, 0x8(%r13)
movq 0x40(%rsp), %rdx
shrl $0x3, %edx
movq %rdx, %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %r12
movsd (%rbx,%rax), %xmm6
movsd 0x8(%rbx,%rax), %xmm7
movsd (%rcx,%r12), %xmm0
movsd 0x8(%rcx,%r12), %xmm1
movsd 0x13e2(%rip), %xmm9     # 0x3070
movapd %xmm0, %xmm8
mulsd %xmm9, %xmm8
mulsd %xmm1, %xmm9
addsd %xmm1, %xmm8
subsd %xmm0, %xmm9
ucomisd %xmm8, %xmm8
movl 0x48(%rsp), %r14d
jp 0x21ec
addq %r12, %rcx
leaq (%r12,%rsi), %r13
movsd 0x156a(%rip), %xmm2     # 0x3230
movsd (%r12,%rsi), %xmm0
mulsd %xmm2, %xmm0
movsd 0x8(%r12,%rsi), %xmm10
mulsd %xmm2, %xmm10
leaq (%r12,%rbp), %rax
movsd (%r12,%rbp), %xmm1
mulsd %xmm2, %xmm1
mulsd 0x8(%r12,%rbp), %xmm2
movapd %xmm0, %xmm11
addsd %xmm10, %xmm11
subsd %xmm0, %xmm10
movapd %xmm2, %xmm3
subsd %xmm1, %xmm3
xorpd 0x1320(%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 0x2247
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, (%r12)
movsd %xmm5, 0x8(%r12)
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
movapd %xmm2, %xmm5
subsd %xmm1, %xmm5
movsd %xmm4, (%r13)
movsd %xmm5, 0x8(%r13)
subsd %xmm11, %xmm6
subsd %xmm10, %xmm7
movsd %xmm6, (%rcx)
movsd %xmm7, 0x8(%rcx)
addsd %xmm0, %xmm3
addsd %xmm1, %xmm2
movsd %xmm3, (%rax)
movsd %xmm2, 0x8(%rax)
cmpl $0x4, %r14d
movq 0x38(%rsp), %rbp
jb 0x1a9f
movl 0x14(%rsp), %ecx
addl $-0x3, %ecx
movl $0x1, %eax
movl %ecx, 0x14(%rsp)
shll %cl, %eax
movq %rax, 0x30(%rsp)
decl %eax
movl %eax, 0x70(%rsp)
cmpl $0x3, %edx
movl $0x2, %r14d
cmovbl %r14d, %edx
leaq (%rsi,%rbx), %r12
addq $-0x10, %r12
addq $0x10, %rbx
movl $0x1, %r13d
movl $0x3, %r15d
movq %rdx, 0x40(%rsp)
movq %rbx, 0x8(%rsp)
movl %r13d, %eax
movq 0x18(%rsp), %r9
movl %r9d, %ecx
shll %cl, %eax
movl %eax, %esi
movl 0x70(%rsp), %ebx
andl %ebx, %esi
movl %eax, %edx
movl 0x14(%rsp), %r10d
movl %r10d, %ecx
shrl %cl, %edx
movq 0x30(%rsp), %r11
movl %r11d, %ecx
subl %esi, %ecx
btl %r10d, %eax
cmovael %esi, %ecx
movl %edx, %esi
shrl %esi
xorl %edx, %esi
movl %esi, %edi
andl $0x1, %edi
leaq 0x3214(%rip), %rax      # 0x5080
movq (%rax), %rax
shlq $0x4, %rcx
addq %rax, %rcx
shlq $0x3f, %rdx
xorq (%rcx,%rdi,8), %rdx
xorl $0x1, %edi
shlq $0x3f, %rsi
xorq (%rcx,%rdi,8), %rsi
movq %rsi, %xmm1
movq %xmm1, 0x20(%rsp)
movl %r14d, %edi
movl %r9d, %ecx
shll %cl, %edi
movl %edi, %r8d
andl %ebx, %r8d
movl %edi, %esi
movl %r10d, %ecx
shrl %cl, %esi
movl %r11d, %ecx
subl %r8d, %ecx
btl %r10d, %edi
cmovael %r8d, %ecx
movl %esi, %edi
shrl %edi
xorl %esi, %edi
movl %edi, %r8d
andl $0x1, %r8d
shlq $0x4, %rcx
addq %rax, %rcx
shlq $0x3f, %rsi
xorq (%rcx,%r8,8), %rsi
xorl $0x1, %r8d
shlq $0x3f, %rdi
xorq (%rcx,%r8,8), %rdi
movl %r15d, %r8d
movl %r9d, %ecx
shll %cl, %r8d
movq %rdx, %xmm0
movq %xmm0, 0x28(%rsp)
movq %rdi, %xmm3
movl %r8d, %edi
movl %r8d, %edx
movl %r10d, %ecx
shrl %cl, %edx
andl %ebx, %edi
movq 0x8(%rsp), %rbx
movl %r11d, %ecx
subl %edi, %ecx
btl %r10d, %r8d
cmovael %edi, %ecx
movl %edx, %edi
shrl %edi
xorl %edx, %edi
movl %edi, %r8d
andl $0x1, %r8d
shlq $0x4, %rcx
addq %rax, %rcx
shlq $0x3f, %rdx
xorq (%rcx,%r8,8), %rdx
movq %rsi, %xmm2
xorl $0x1, %r8d
shlq $0x3f, %rdi
xorq (%rcx,%r8,8), %rdi
movq %rdi, %xmm5
movq %rdx, %xmm4
movl %ebp, %edi
movq %rbx, %rsi
movdqa %xmm2, 0x60(%rsp)
movq %xmm3, 0x48(%rsp)
movq %xmm4, 0x50(%rsp)
movq %xmm5, (%rsp)
callq 0x230f
movsd 0x20(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movapd %xmm2, %xmm3
pxor %xmm0, %xmm0
mulsd %xmm0, %xmm3
movapd %xmm1, %xmm6
mulsd %xmm0, %xmm6
subsd %xmm1, %xmm3
addsd %xmm2, %xmm6
ucomisd %xmm3, %xmm3
jp 0x2032
movq 0x38(%rsp), %rbp
movsd 0x50(%rsp), %xmm2
movapd %xmm2, %xmm4
xorpd %xmm0, %xmm0
mulsd %xmm0, %xmm4
movsd (%rsp), %xmm1
movapd %xmm1, %xmm5
mulsd %xmm0, %xmm5
subsd %xmm1, %xmm4
addsd %xmm2, %xmm5
ucomisd %xmm4, %xmm4
jp 0x2068
xorpd 0x1052(%rip), %xmm4     # 0x3030
movapd 0x104a(%rip), %xmm0     # 0x3030
xorpd %xmm0, %xmm6
movapd 0x60(%rsp), %xmm2
xorpd %xmm0, %xmm2
movl %ebp, %edi
movq %r12, %rsi
movapd %xmm3, %xmm0
movapd %xmm6, %xmm1
movsd 0x48(%rsp), %xmm3
callq 0x230f
incq %r13
addl $0x3, %r15d
addl $0x2, %r14d
addq $0x10, %rbx
addq $-0x10, %r12
movq 0x40(%rsp), %rdx
cmpq %r13, %rdx
jne 0x1e23
jmp 0x1a9f
ucomisd %xmm6, %xmm6
movq 0x38(%rsp), %rbp
jnp 0x1fa5
movapd %xmm2, %xmm0
xorpd %xmm2, %xmm2
movsd 0x11cf(%rip), %xmm3     # 0x3220
callq 0x26f0
movq 0x38(%rsp), %rbp
movapd %xmm0, %xmm3
movapd %xmm1, %xmm6
jmp 0x1fa5
ucomisd %xmm5, %xmm5
jnp 0x1fd6
xorpd %xmm2, %xmm2
movsd 0x50(%rsp), %xmm0
movsd (%rsp), %xmm1
movsd %xmm3, (%rsp)
movsd 0x1192(%rip), %xmm3     # 0x3220
movapd %xmm6, 0x50(%rsp)
callq 0x26f0
movapd 0x50(%rsp), %xmm6
movsd (%rsp), %xmm3
movq 0x38(%rsp), %rbp
movapd %xmm0, %xmm4
movapd %xmm1, %xmm5
jmp 0x1fd6
ucomisd %xmm1, %xmm1
jnp 0x1a14
movsd %xmm3, 0x18(%rsp)
movsd 0x1152(%rip), %xmm3     # 0x3220
movsd %xmm2, 0x20(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, 0x48(%rsp)
movsd %xmm8, 0x60(%rsp)
movsd %xmm9, (%rsp)
movsd %xmm10, 0x50(%rsp)
movsd %xmm11, 0x28(%rsp)
callq 0x26f0
movsd 0x18(%rsp), %xmm3
movsd 0x20(%rsp), %xmm2
movsd 0x28(%rsp), %xmm11
movsd 0x50(%rsp), %xmm10
movsd (%rsp), %xmm9
movsd 0x60(%rsp), %xmm8
movsd 0x48(%rsp), %xmm7
movsd 0x8(%rsp), %xmm6
jmp 0x1a14
ucomisd %xmm1, %xmm1
jnp 0x1bd0
movsd %xmm3, 0x90(%rsp)
movsd 0x10c1(%rip), %xmm3     # 0x3220
movsd %xmm2, 0x80(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movq %rsi, %r14
movq %rcx, %r15
movsd %xmm6, 0x8(%rsp)
movsd %xmm7, 0x50(%rsp)
movsd %xmm8, 0x28(%rsp)
movsd %xmm9, 0x20(%rsp)
movsd %xmm10, 0x30(%rsp)
movsd %xmm11, 0x70(%rsp)
callq 0x26f0
movsd 0x90(%rsp), %xmm3
movsd 0x80(%rsp), %xmm2
movsd 0x70(%rsp), %xmm11
movsd 0x30(%rsp), %xmm10
movsd 0x20(%rsp), %xmm9
movsd 0x28(%rsp), %xmm8
movsd 0x50(%rsp), %xmm7
movsd 0x8(%rsp), %xmm6
movq %r15, %rcx
movq %r14, %rsi
jmp 0x1bd0
ucomisd %xmm9, %xmm9
jnp 0x1cb7
movsd 0xe71(%rip), %xmm2      # 0x3070
movsd 0x1021(%rip), %xmm3     # 0x3228
movq %rdx, %r15
movq %rsi, %r13
movq %rcx, 0x8(%rsp)
movsd %xmm6, 0x60(%rsp)
movsd %xmm7, (%rsp)
callq 0x26f0
movsd (%rsp), %xmm7
movsd 0x60(%rsp), %xmm6
movq 0x8(%rsp), %rcx
movq %r13, %rsi
movq %r15, %rdx
movapd %xmm0, %xmm8
movapd %xmm1, %xmm9
jmp 0x1cb7
ucomisd %xmm1, %xmm1
jnp 0x1d48
movapd %xmm3, 0x80(%rsp)
movsd 0xfbe(%rip), %xmm3      # 0x3220
movapd %xmm2, 0x70(%rsp)
xorpd %xmm2, %xmm2
movapd %xmm5, %xmm0
movapd %xmm4, %xmm1
movq %rdx, 0x40(%rsp)
movq %rsi, %r15
movq %rcx, 0x8(%rsp)
movsd %xmm6, 0x60(%rsp)
movsd %xmm7, (%rsp)
movsd %xmm8, 0x50(%rsp)
movsd %xmm9, 0x28(%rsp)
movq %rax, %rbp
movsd %xmm10, 0x20(%rsp)
movsd %xmm11, 0x30(%rsp)
callq 0x26f0
movapd 0x80(%rsp), %xmm3
movapd 0x70(%rsp), %xmm2
movsd 0x30(%rsp), %xmm11
movsd 0x20(%rsp), %xmm10
movq %rbp, %rax
movsd 0x28(%rsp), %xmm9
movsd 0x50(%rsp), %xmm8
movsd (%rsp), %xmm7
movsd 0x60(%rsp), %xmm6
movq 0x8(%rsp), %rcx
movq %r15, %rsi
movq 0x40(%rsp), %rdx
jmp 0x1d48