// File: /workspace/github_c_makefile_star2_O0/diaxen[P]fft-garden/sr_dit_bi_G_P.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 is = 0, id = 8; is < n; )
    {
      for (unsigned i0 = is; i0 < n; i0 += id)
	sr_dit_bf4_0(1, out + i0);
      is = 2 * id - 4 + 0;
      id = 4 * id;
    }

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

      for (unsigned is = 0, id = 2 << k; is < n; )
        {
          for (unsigned i0 = is; i0 < n; i0 += id)
            sr_dit_bf4_0(n4, out + i0);
          is = 2 * id - n2 + 0;
          id = 4 * id;
        }

      for (unsigned is = n8, id = 2 << k; is < n; )
	{
	  for (unsigned i0 = is; i0 < n; i0 += id)
	    sr_dit_bf4_pi4(n4, out + i0);
	  is = 2 * id - n2 + n8;
	  id = 4 * id;
	}

      for (unsigned j = 1; j < n8; 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;
	    }

	  t += n8 << (m - k);
	  w1 = get_twiddle(t, m);
	  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 + n8, w1, w3);
	      is = 2 * id - n2 + j;
	      id = 4 * id;
	    }
	}
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
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 0x1cd1
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 0x1c66
jmp 0x1cd3
movl $0x0, -0x30(%rbp)
movl $0x4, -0x34(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1d40
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1d2a
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 0x2190
movl -0x34(%rbp), %eax
addl -0x38(%rbp), %eax
movl %eax, -0x38(%rbp)
jmp 0x1cef
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 0x1ce1
cmpl $0x2, -0x18(%rbp)
jae 0x1d4b
jmp 0x2156
movl $0x0, -0x3c(%rbp)
movl $0x8, -0x40(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1dab
movl -0x3c(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1d92
movq -0x8(%rbp), %rsi
movl -0x44(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movl $0x1, %edi
callq 0x2240
movl -0x40(%rbp), %eax
addl -0x44(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x1d67
movl -0x40(%rbp), %eax
shll %eax
subl $0x4, %eax
addl $0x0, %eax
movl %eax, -0x3c(%rbp)
movl -0x40(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x40(%rbp)
jmp 0x1d59
movl $0x3, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x18(%rbp), %eax
ja 0x2156
movl -0x48(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
shrl $0x2, %eax
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %eax
shrl $0x3, %eax
movl %eax, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x48(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0x5c(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1e41
movl -0x58(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1e28
movl -0x50(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0x60(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x2240
movl -0x5c(%rbp), %eax
addl -0x60(%rbp), %eax
movl %eax, -0x60(%rbp)
jmp 0x1dff
movl -0x5c(%rbp), %eax
shll %eax
subl -0x4c(%rbp), %eax
addl $0x0, %eax
movl %eax, -0x58(%rbp)
movl -0x5c(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1df1
movl -0x54(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x48(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0x68(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1ea4
movl -0x64(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1e8b
movl -0x50(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0x6c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x2430
movl -0x68(%rbp), %eax
addl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x1e62
movl -0x68(%rbp), %eax
shll %eax
subl -0x4c(%rbp), %eax
addl -0x54(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x68(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x68(%rbp)
jmp 0x1e54
movl $0x1, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0x2146
movl -0x70(%rbp), %eax
movl -0x18(%rbp), %ecx
subl -0x48(%rbp), %ecx
shll %cl, %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x2720
movsd %xmm0, -0x88(%rbp)
movsd %xmm1, -0x80(%rbp)
movl -0x74(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x27a0
movsd %xmm0, -0x98(%rbp)
movsd %xmm1, -0x90(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x48(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0xa0(%rbp)
movl -0x9c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1ff0
movl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x1fc8
movl -0x50(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0xa4(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x88(%rbp), %xmm1
movsd -0x80(%rbp), %xmm0
movsd -0x98(%rbp), %xmm3
movsd -0x90(%rbp), %xmm2
movsd %xmm1, -0xb8(%rbp)
movsd %xmm0, -0xb0(%rbp)
movsd -0xb8(%rbp), %xmm0
movsd -0xb0(%rbp), %xmm1
movsd %xmm3, -0xc8(%rbp)
movsd %xmm2, -0xc0(%rbp)
movsd -0xc8(%rbp), %xmm2
movsd -0xc0(%rbp), %xmm3
callq 0x2820
movl -0xa0(%rbp), %eax
addl -0xa4(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x1f2c
movl -0xa0(%rbp), %eax
shll %eax
subl -0x4c(%rbp), %eax
addl -0x70(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xa0(%rbp), %eax
shll $0x2, %eax
movl %eax, -0xa0(%rbp)
jmp 0x1f11
movl -0x54(%rbp), %eax
movl -0x18(%rbp), %ecx
subl -0x48(%rbp), %ecx
shll %cl, %eax
addl -0x74(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x2720
movsd %xmm0, -0x88(%rbp)
movsd %xmm1, -0x80(%rbp)
movl -0x74(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x27a0
movsd %xmm0, -0x98(%rbp)
movsd %xmm1, -0x90(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0x48(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0xd0(%rbp)
movl -0xcc(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x2136
movl -0xcc(%rbp), %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x210e
movl -0x50(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0xd4(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movl -0x54(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x88(%rbp), %xmm1
movsd -0x80(%rbp), %xmm0
movsd -0x98(%rbp), %xmm3
movsd -0x90(%rbp), %xmm2
movsd %xmm1, -0xe8(%rbp)
movsd %xmm0, -0xe0(%rbp)
movsd -0xe8(%rbp), %xmm0
movsd -0xe0(%rbp), %xmm1
movsd %xmm3, -0xf8(%rbp)
movsd %xmm2, -0xf0(%rbp)
movsd -0xf8(%rbp), %xmm2
movsd -0xf0(%rbp), %xmm3
callq 0x2820
movl -0xd0(%rbp), %eax
addl -0xd4(%rbp), %eax
movl %eax, -0xd4(%rbp)
jmp 0x2068
movl -0xd0(%rbp), %eax
shll %eax
subl -0x4c(%rbp), %eax
addl -0x70(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xd0(%rbp), %eax
shll $0x2, %eax
movl %eax, -0xd0(%rbp)
jmp 0x204d
jmp 0x2138
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x1eab
jmp 0x2148
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1db2
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nop