// File: /workspace/github_c_makefile_star2_O0/diaxen[P]fft-garden/sr_dit_bi_N_G.c
// Function: burrus84_fft
static void
burrus84_fft(complex double * restrict inout,
	     unsigned n, unsigned m)
{
  BIT_REVERSE_SWAP_LOOP(i, j, n, {
      double complex t = inout[i];
      inout[i] = inout[j];
      inout[j] = t;
  });

  /* 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, inout + i0, inout + 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, inout + i0, w1, w3);
	      is = 2 * id - n2 + j;
	      id = 4 * id;
	    }
	}
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x18(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0x1fa8
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x1f6e
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movsd 0x8(%rax), %xmm0
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movsd -0x38(%rbp), %xmm1
movsd -0x30(%rbp), %xmm0
movq -0x8(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
movl -0x14(%rbp), %eax
shrl %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
ja 0x1f91
movl -0x1c(%rbp), %eax
subl -0x3c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x3c(%rbp), %eax
shrl %eax
movl %eax, -0x3c(%rbp)
jmp 0x1f76
movl -0x1c(%rbp), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x1ed9
jmp 0x1faa
movl $0x0, -0x40(%rbp)
movl $0x4, -0x44(%rbp)
movl -0x40(%rbp), %eax
cmpl -0xc(%rbp), %eax
jae 0x2017
movl -0x40(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0xc(%rbp), %eax
jae 0x2001
movq -0x8(%rbp), %rdx
movl -0x48(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x8(%rbp), %rcx
movl -0x48(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rcx
movl $0x1, %esi
movl %esi, %edi
callq 0x21e0
movl -0x44(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0x1fc6
movl -0x44(%rbp), %eax
shll %eax
subl $0x2, %eax
movl %eax, -0x40(%rbp)
movl -0x44(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x1fb8
cmpl $0x2, -0x10(%rbp)
jae 0x2022
jmp 0x21a5
movl $0x2, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x10(%rbp), %eax
ja 0x21a5
movl -0x4c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
shrl $0x2, %eax
movl %eax, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0x2195
movl -0x58(%rbp), %eax
movl -0x10(%rbp), %ecx
subl -0x4c(%rbp), %ecx
shll %cl, %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0x2290
movsd %xmm0, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movl -0x5c(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0x22d0
movsd %xmm0, -0x80(%rbp)
movsd %xmm1, -0x78(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x4c(%rbp), %ecx
movl $0x2, %eax
shll %cl, %eax
movl %eax, -0x88(%rbp)
movl -0x84(%rbp), %eax
cmpl -0xc(%rbp), %eax
jae 0x2185
movl -0x84(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jae 0x215d
movl -0x54(%rbp), %edi
movq -0x8(%rbp), %rsi
movl -0x8c(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x70(%rbp), %xmm1
movsd -0x68(%rbp), %xmm0
movsd -0x80(%rbp), %xmm3
movsd -0x78(%rbp), %xmm2
movsd %xmm1, -0xa0(%rbp)
movsd %xmm0, -0x98(%rbp)
movsd -0xa0(%rbp), %xmm0
movsd -0x98(%rbp), %xmm1
movsd %xmm3, -0xb0(%rbp)
movsd %xmm2, -0xa8(%rbp)
movsd -0xb0(%rbp), %xmm2
movsd -0xa8(%rbp), %xmm3
callq 0x2310
movl -0x88(%rbp), %eax
addl -0x8c(%rbp), %eax
movl %eax, -0x8c(%rbp)
jmp 0x20ca
movl -0x88(%rbp), %eax
shll %eax
subl -0x50(%rbp), %eax
addl -0x58(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x88(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x88(%rbp)
jmp 0x20af
jmp 0x2187
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x2052
jmp 0x2197
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x2029
addq $0xb0, %rsp
popq %rbp
retq
nop