// File: /workspace/github_c_makefile_star2_O0/diaxen[P]fft-garden/sr_dit_bi_G.c
// Function: burrus84_fft
static void
burrus84_fft(complex double * restrict out,
		 const complex double * restrict in,
		 unsigned n, unsigned m)
{
  BIT_REVERSE_LOOP(i, j, n, {
      out[i] = in[j];
  });

  /* length two transforms */

  for (unsigned is = 0, id = 4; is < n; )
    {
      for (unsigned i0 = is; i0 < n; i0 += id)
	ct_dit_bf2_0(1, 1, out + i0, out + i0);
      is = 2 * id - 2;
      id = 4 * id;
    }

  if (m < 2)
    return;

  /* L shaped butterflies */

  for (unsigned k = 2; k <= m; k++)
    {
      unsigned n2 = 1 << k;
      unsigned n4 = n2 >> 2;

      for (unsigned j = 0; j < n4; j++)
	{
	  unsigned t = j << (m - k);
	  complex double w1 = get_twiddle(t, m);
	  complex double w3 = get_twiddle_sr(t, m);

	  for (unsigned is = j, id = 2 << k; is < n; )
	    {
	      for (unsigned i0 = is; i0 < n; i0 += id)
		sr_dit_bf4(n4, out + i0, w1, w3);
	      is = 2 * id - n2 + j;
	      id = 4 * id;
	    }
	}
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x1f31
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movq -0x8(%rbp), %rax
movl -0x28(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x20(%rbp), %eax
xorl $-0x1, %eax
movl -0x28(%rbp), %ecx
xorl -0x2c(%rbp), %ecx
bsrl %ecx, %edx
xorl $0x1f, %edx
movl $0x20, %ecx
subl %edx, %ecx
shrl %cl, %eax
andl -0x20(%rbp), %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x1ec6
jmp 0x1f33
movl $0x0, -0x30(%rbp)
movl $0x4, -0x34(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1fa0
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1f8a
movq -0x8(%rbp), %rdx
movl -0x38(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x8(%rbp), %rcx
movl -0x38(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
movl $0x1, %esi
movl %esi, %edi
callq 0x2140
movl -0x34(%rbp), %eax
addl -0x38(%rbp), %eax
movl %eax, -0x38(%rbp)
jmp 0x1f4f
movl -0x34(%rbp), %eax
shll %eax
subl $0x2, %eax
movl %eax, -0x30(%rbp)
movl -0x34(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x34(%rbp)
jmp 0x1f41
cmpl $0x2, -0x18(%rbp)
jae 0x1fab
jmp 0x20fd
movl $0x2, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x18(%rbp), %eax
ja 0x20fd
movl -0x3c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
shrl $0x2, %eax
movl %eax, -0x44(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x44(%rbp), %eax
jae 0x20ed
movl -0x48(%rbp), %eax
movl -0x18(%rbp), %ecx
subl -0x3c(%rbp), %ecx
shll %cl, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x21f0
movsd %xmm0, -0x60(%rbp)
movsd %xmm1, -0x58(%rbp)
movl -0x4c(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x2230
movsd %xmm0, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x3c(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0x78(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x20dd
movl -0x74(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x20c1
movl -0x44(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0x7c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x60(%rbp), %xmm1
movsd -0x58(%rbp), %xmm0
movsd -0x70(%rbp), %xmm3
movsd -0x68(%rbp), %xmm2
movsd %xmm1, -0x90(%rbp)
movsd %xmm0, -0x88(%rbp)
movsd -0x90(%rbp), %xmm0
movsd -0x88(%rbp), %xmm1
movsd %xmm3, -0xa0(%rbp)
movsd %xmm2, -0x98(%rbp)
movsd -0xa0(%rbp), %xmm2
movsd -0x98(%rbp), %xmm3
callq 0x2270
movl -0x78(%rbp), %eax
addl -0x7c(%rbp), %eax
movl %eax, -0x7c(%rbp)
jmp 0x2044
movl -0x78(%rbp), %eax
shll %eax
subl -0x40(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x78(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x78(%rbp)
jmp 0x2032
jmp 0x20df
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1fdb
jmp 0x20ef
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x1fb2
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)