#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ dft_5(double *, double *);
void twiddleFFT_10(int sofarRadix, int radix, int remainRadix, int groupOffset,
                   double twiddleRe[], double twiddleIm[], double yRe[],
                   double yIm[]) {
  int yIndx[10];
  int groupNo, blockNo, adr, i;
  double aRe[5], aIm[5], bRe[5], bIm[5];
  double yr, yi, twr, twi;
  adr = groupOffset;
  for (groupNo = 0; groupNo < remainRadix; groupNo++) {
    for (blockNo = 0; blockNo < radix; blockNo++) {
      yIndx[blockNo] = adr;
      adr = adr + sofarRadix;
    }
    aRe[0] = yRe[yIndx[0]];
    aIm[0] = yIm[yIndx[0]];
    i = 1;
    for (blockNo = 2; blockNo < radix; blockNo += 2) {
      yr = yRe[yIndx[blockNo]];
      yi = yIm[yIndx[blockNo]];
      twr = twiddleRe[blockNo];
      twi = twiddleIm[blockNo];
      aRe[i] = twr * yr - twi * yi;
      aIm[i] = twr * yi + twi * yr;
      i++;
    }
    i = 0;
    blockNo = 5;
    for (i = 0; i < 5; i++) {
      yr = yRe[yIndx[blockNo]];
      yi = yIm[yIndx[blockNo]];
      twr = twiddleRe[blockNo];
      twi = twiddleIm[blockNo];
      bRe[i] = twr * yr - twi * yi;
      bIm[i] = twr * yi + twi * yr;
      blockNo = (blockNo + 2) % 10;
    }
    dft_5(aRe, aIm);
    dft_5(bRe, bIm);
    yRe[yIndx[0]] = aRe[0] + bRe[0];
    yRe[yIndx[5]] = aRe[0] - bRe[0];
    yRe[yIndx[6]] = aRe[1] + bRe[1];
    yRe[yIndx[1]] = aRe[1] - bRe[1];
    yRe[yIndx[2]] = aRe[2] + bRe[2];
    yRe[yIndx[7]] = aRe[2] - bRe[2];
    yRe[yIndx[8]] = aRe[3] + bRe[3];
    yRe[yIndx[3]] = aRe[3] - bRe[3];
    yRe[yIndx[4]] = aRe[4] + bRe[4];
    yRe[yIndx[9]] = aRe[4] - bRe[4];
    yIm[yIndx[0]] = aIm[0] + bIm[0];
    yIm[yIndx[5]] = aIm[0] - bIm[0];
    yIm[yIndx[6]] = aIm[1] + bIm[1];
    yIm[yIndx[1]] = aIm[1] - bIm[1];
    yIm[yIndx[2]] = aIm[2] + bIm[2];
    yIm[yIndx[7]] = aIm[2] - bIm[2];
    yIm[yIndx[8]] = aIm[3] + bIm[3];
    yIm[yIndx[3]] = aIm[3] - bIm[3];
    yIm[yIndx[4]] = aIm[4] + bIm[4];
    yIm[yIndx[9]] = aIm[4] - bIm[4];
    groupOffset = groupOffset + sofarRadix * radix;
    adr = groupOffset;
  }
}


x86 assembly (clang, -O0):
<twiddleFFT_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x5c(%rbp)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1657 <twiddleFFT_10+0x547>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1185 <twiddleFFT_10+0x75>
mov    -0x5c(%rbp),%ecx
movslq -0x58(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,4)
mov    -0x5c(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1157 <twiddleFFT_10+0x47>
mov    0x10(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movl   $0x1,-0x60(%rbp)
movl   $0x2,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12bf <twiddleFFT_10+0x1af>
mov    0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movslq -0x50(%rbp,%rcx,4),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
movslq -0x50(%rbp,%rcx,4),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm2
ff
movsd  -0x140(%rbp),%xmm1
ff
mulsd  -0x130(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x60(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x130(%rbp),%xmm2
ff
movsd  -0x140(%rbp),%xmm1
ff
mulsd  -0x128(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x60(%rbp),%rax
movsd  %xmm0,-0xc0(%rbp,%rax,8)
ff ff
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
mov    -0x58(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x58(%rbp)
jmp    11bd <twiddleFFT_10+0xad>
movl   $0x0,-0x60(%rbp)
movl   $0x5,-0x58(%rbp)
movl   $0x0,-0x60(%rbp)
cmpl   $0x5,-0x60(%rbp)
jge    13dc <twiddleFFT_10+0x2cc>
mov    0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movslq -0x50(%rbp,%rcx,4),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
movslq -0x50(%rbp,%rcx,4),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm2
ff
movsd  -0x140(%rbp),%xmm1
ff
mulsd  -0x130(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x60(%rbp),%rax
movsd  %xmm0,-0xf0(%rbp,%rax,8)
ff ff
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x130(%rbp),%xmm2
ff
movsd  -0x140(%rbp),%xmm1
ff
mulsd  -0x128(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x60(%rbp),%rax
movsd  %xmm0,-0x120(%rbp,%rax,8)
ff ff
mov    -0x58(%rbp),%eax
add    $0x2,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    12d4 <twiddleFFT_10+0x1c4>
lea    -0x90(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
call   1030 <dft_5@plt>
lea    -0xf0(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   1030 <dft_5@plt>
movsd  -0x90(%rbp),%xmm0
ff
addsd  -0xf0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0xf0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x88(%rbp),%xmm0
ff
addsd  -0xe8(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0xe8(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm0
addsd  -0xe0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm0
subsd  -0xe0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x78(%rbp),%xmm0
addsd  -0xd8(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x78(%rbp),%xmm0
subsd  -0xd8(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x70(%rbp),%xmm0
addsd  -0xd0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x70(%rbp),%xmm0
subsd  -0xd0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
addsd  -0x120(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
subsd  -0x120(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
addsd  -0x118(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
subsd  -0x118(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb0(%rbp),%xmm0
ff
addsd  -0x110(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb0(%rbp),%xmm0
ff
subsd  -0x110(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
addsd  -0x108(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
subsd  -0x108(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
addsd  -0x100(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
subsd  -0x100(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%eax
mov    -0x4(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1144 <twiddleFFT_10+0x34>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<twiddleFFT_10>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
mov    %edx,0x34(%rsp)
test   %edx,%edx
jle    171a <twiddleFFT_10+0x60a>
mov    %r9,%r14
mov    %r8,%r13
mov    0x1d8(%rsp),%rbx
mov    0x1d0(%rsp),%r8
mov    %esi,%eax
imul   %edi,%eax
mov    %eax,0x2c(%rsp)
lea    -0x3(%rsi),%r9d
shr    %r9d
mov    %esi,%ebp
mov    %ebp,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rax
mov    %rax,0x58(%rsp)
shr    $0x3,%rax
add    $0x1,%rax
mov    %rdx,0x38(%rsp)
imul   %edi,%edx
mov    %rdx,0x40(%rsp)
movd   %edi,%xmm0
pshufd $0x0,%xmm0,%xmm2
movdqa 0xe77(%rip),%xmm0
pmuludq %xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa 0xe76(%rip),%xmm1
pmuludq %xmm2,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm0,%xmm1
movdqa %xmm1,0x170(%rsp)
pslld  $0x2,%xmm2
mov    %eax,%edx
and    $0x3,%edx
and    $0xfffffffffffffffc,%rax
mov    %rax,0x48(%rsp)
mov    %rdx,0x50(%rsp)
mov    %rdx,%r10
shl    $0x5,%r10
lea    0x8(,%r9,8),%r12
xor    %eax,%eax
mov    %rsi,0x70(%rsp)
mov    %edi,0x30(%rsp)
mov    %rbp,0x68(%rsp)
movdqa %xmm2,0x180(%rsp)
mov    %r10,0x60(%rsp)
jmp    157b <twiddleFFT_10+0x46b>
nopw   0x0(%rax,%rax,1)
movslq 0x14(%rsp),%rcx
movsd  0x28(%r14),%xmm0
movhpd 0x38(%r14),%xmm0
movslq 0x1c(%rsp),%rax
movsd  (%rbx,%rcx,8),%xmm1
mov    %rcx,0x80(%rsp)
movhpd (%rbx,%rax,8),%xmm1
mov    %rax,0x90(%rsp)
movsd  0x28(%r13),%xmm2
movhpd 0x38(%r13),%xmm2
movapd %xmm2,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm0,%xmm1
movsd  (%r8,%rcx,8),%xmm4
movhpd (%r8,%rax,8),%xmm4
mulpd  %xmm4,%xmm3
subpd  %xmm1,%xmm3
movapd %xmm3,0xe0(%rsp)
mulpd  %xmm0,%xmm4
addpd  %xmm4,%xmm2
movapd %xmm2,0xb0(%rsp)
movslq 0x24(%rsp),%rax
movsd  0x48(%r14),%xmm0
movhpd 0x8(%r14),%xmm0
movslq 0x4(%rsp),%rcx
movsd  (%rbx,%rax,8),%xmm1
mov    %rax,0x88(%rsp)
movhpd (%rbx,%rcx,8),%xmm1
mov    %rcx,0x78(%rsp)
movsd  0x48(%r13),%xmm2
movhpd 0x8(%r13),%xmm2
movapd %xmm2,%xmm3
mulpd  %xmm1,%xmm2
movsd  (%r8,%rax,8),%xmm4
movhpd (%r8,%rcx,8),%xmm4
mulpd  %xmm0,%xmm1
mulpd  %xmm4,%xmm3
subpd  %xmm1,%xmm3
movapd %xmm3,0xf0(%rsp)
mulpd  %xmm0,%xmm4
addpd  %xmm4,%xmm2
movapd %xmm2,0xc0(%rsp)
movslq 0xc(%rsp),%r15
movsd  (%r8,%r15,8),%xmm0
movsd  (%rbx,%r15,8),%xmm1
movsd  0x18(%r13),%xmm2
movsd  0x18(%r14),%xmm3
movapd %xmm2,%xmm4
mulsd  %xmm1,%xmm2
mulsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm4
subsd  %xmm1,%xmm4
movsd  %xmm4,0x100(%rsp)
mulsd  %xmm3,%xmm0
addsd  %xmm0,%xmm2
movsd  %xmm2,0xd0(%rsp)
lea    0x140(%rsp),%rdi
lea    0x110(%rsp),%rsi
mov    %r8,%rbp
call   1030 <dft_5@plt>
lea    0xe0(%rsp),%rdi
lea    0xb0(%rsp),%rsi
call   1030 <dft_5@plt>
mov    %rbp,%r8
movsd  0x140(%rsp),%xmm0
movsd  0xe0(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
mov    0x98(%rsp),%r11
movsd  %xmm2,0x0(%rbp,%r11,8)
subsd  %xmm1,%xmm0
mov    0x80(%rsp),%r10
movsd  %xmm0,0x0(%rbp,%r10,8)
movsd  0x148(%rsp),%xmm0
movsd  0xe8(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movslq 0x18(%rsp),%r9
movsd  %xmm2,0x0(%rbp,%r9,8)
subsd  %xmm1,%xmm0
mov    0x78(%rsp),%rdi
movsd  %xmm0,0x0(%rbp,%rdi,8)
movsd  0x150(%rsp),%xmm0
movsd  0xf0(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movslq 0x8(%rsp),%rcx
movsd  %xmm2,0x0(%rbp,%rcx,8)
subsd  %xmm1,%xmm0
mov    0x90(%rsp),%rbp
movsd  %xmm0,(%r8,%rbp,8)
movsd  0x158(%rsp),%xmm0
movsd  0xf8(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movslq 0x20(%rsp),%rdx
movsd  %xmm2,(%r8,%rdx,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%r8,%r15,8)
movsd  0x160(%rsp),%xmm0
movsd  0x100(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movslq 0x10(%rsp),%rsi
movsd  %xmm2,(%r8,%rsi,8)
subsd  %xmm1,%xmm0
mov    0x88(%rsp),%rax
movsd  %xmm0,(%r8,%rax,8)
movsd  0x110(%rsp),%xmm0
movsd  0xb0(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%r11,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0x118(%rsp),%xmm0
movsd  0xb8(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%r9,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
movsd  0x120(%rsp),%xmm0
movsd  0xc0(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rcx,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  0x128(%rsp),%xmm0
movsd  0xc8(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rdx,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r15,8)
movsd  0x130(%rsp),%xmm0
movsd  0xd0(%rsp),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rsi,8)
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rax,8)
mov    0xa8(%rsp),%rcx
add    0x2c(%rsp),%ecx
mov    0xa0(%rsp),%rax
add    $0x1,%eax
cmp    0x34(%rsp),%eax
mov    0x70(%rsp),%rsi
mov    0x30(%rsp),%edi
mov    0x68(%rsp),%rbp
movdqa 0x180(%rsp),%xmm2
mov    0x60(%rsp),%r10
je     171a <twiddleFFT_10+0x60a>
mov    %rax,0xa0(%rsp)
test   %esi,%esi
jle    167e <twiddleFFT_10+0x56e>
cmp    $0x8,%esi
jae    15a0 <twiddleFFT_10+0x490>
xor    %eax,%eax
mov    %ecx,%edx
jmp    1670 <twiddleFFT_10+0x560>
nopl   0x0(%rax)
movd   %ecx,%xmm0
pshufd $0x0,%xmm0,%xmm0
paddd  0x170(%rsp),%xmm0
cmpq   $0x18,0x58(%rsp)
jae    15be <twiddleFFT_10+0x4ae>
xor    %eax,%eax
jmp    1629 <twiddleFFT_10+0x519>
mov    0x48(%rsp),%rdx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movdqa %xmm0,(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x10(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x20(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x30(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x40(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x50(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x60(%rsp,%rax,4)
paddd  %xmm2,%xmm0
movdqa %xmm0,0x70(%rsp,%rax,4)
add    $0x20,%rax
paddd  %xmm2,%xmm0
add    $0xfffffffffffffffc,%rdx
jne    15d0 <twiddleFFT_10+0x4c0>
cmpq   $0x0,0x50(%rsp)
je     165c <twiddleFFT_10+0x54c>
lea    0x10(%rsp),%rdx
lea    (%rdx,%rax,4),%rax
xor    %edx,%edx
nopl   0x0(%rax)
movdqa %xmm0,-0x10(%rax,%rdx,1)
paddd  %xmm2,%xmm0
movdqa %xmm0,(%rax,%rdx,1)
paddd  %xmm2,%xmm0
add    $0x20,%rdx
cmp    %rdx,%r10
jne    1640 <twiddleFFT_10+0x530>
cmp    %rbp,0x38(%rsp)
je     167e <twiddleFFT_10+0x56e>
mov    0x40(%rsp),%rax
lea    (%rcx,%rax,1),%edx
mov    0x38(%rsp),%rax
mov    %edx,(%rsp,%rax,4)
add    %edi,%edx
add    $0x1,%rax
cmp    %rax,%rbp
jne    1670 <twiddleFFT_10+0x560>
mov    %rcx,0xa8(%rsp)
movslq (%rsp),%rax
movsd  (%r8,%rax,8),%xmm0
movsd  %xmm0,0x140(%rsp)
mov    %rax,0x98(%rsp)
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,0x110(%rsp)
cmp    $0x3,%esi
jl     1200 <twiddleFFT_10+0xf0>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movslq 0x8(%rsp,%rax,1),%rcx
movsd  (%r8,%rcx,8),%xmm0
movsd  (%rbx,%rcx,8),%xmm1
movsd  0x10(%r13,%rax,2),%xmm2
movsd  0x10(%r14,%rax,2),%xmm3
movapd %xmm2,%xmm4
mulsd  %xmm1,%xmm2
mulsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm4
subsd  %xmm1,%xmm4
movsd  %xmm4,0x148(%rsp,%rax,1)
mulsd  %xmm3,%xmm0
addsd  %xmm0,%xmm2
movsd  %xmm2,0x118(%rsp,%rax,1)
add    $0x8,%rax
cmp    %rax,%r12
jne    16c0 <twiddleFFT_10+0x5b0>
jmp    1200 <twiddleFFT_10+0xf0>
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @twiddleFFT_10(i32 %0, i32 %1, i32 %2, i32 %3, double* %4, double* %5, double* %6, double* %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca [10 x i32]
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca [5 x double]
%23 = alloca [5 x double]
%24 = alloca [5 x double]
%25 = alloca [5 x double]
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store double* %4, double** %13
store double* %5, double** %14
store double* %6, double** %15
store double* %7, double** %16
%30 = load i32, i32* %12
store i32 %30, i32* %20
store i32 0, i32* %18
br label %31
31: ; preds = %390, %8
%32 = load i32, i32* %18
%33 = load i32, i32* %11
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %393
35: ; preds = %31
store i32 0, i32* %19
br label %36
36: ; preds = %48, %35
%37 = load i32, i32* %19
%38 = load i32, i32* %10
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %51
40: ; preds = %36
%41 = load i32, i32* %20
%42 = load i32, i32* %19
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 %43
store i32 %41, i32* %44
%45 = load i32, i32* %20
%46 = load i32, i32* %9
%47 = add nsw i32 %45, %46
store i32 %47, i32* %20
br label %48
48: ; preds = %40
%49 = load i32, i32* %19
%50 = add nsw i32 %49, 1
store i32 %50, i32* %19
br label %36
51: ; preds = %36
%52 = load double*, double** %15
%53 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 0
%54 = load i32, i32* %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %52, i64 %55
%57 = load double, double* %56
%58 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 0
store double %57, double* %58
%59 = load double*, double** %16
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 0
%61 = load i32, i32* %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %59, i64 %62
%64 = load double, double* %63
%65 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 0
store double %64, double* %65
store i32 1, i32* %21
store i32 2, i32* %19
br label %66
66: ; preds = %118, %51
%67 = load i32, i32* %19
%68 = load i32, i32* %10
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %121
70: ; preds = %66
%71 = load double*, double** %15
%72 = load i32, i32* %19
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %71, i64 %76
%78 = load double, double* %77
store double %78, double* %26
%79 = load double*, double** %16
%80 = load i32, i32* %19
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %79, i64 %84
%86 = load double, double* %85
store double %86, double* %27
%87 = load double*, double** %13
%88 = load i32, i32* %19
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double, double* %90
store double %91, double* %28
%92 = load double*, double** %14
%93 = load i32, i32* %19
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
store double %96, double* %29
%97 = load double, double* %28
%98 = load double, double* %26
%99 = load double, double* %29
%100 = load double, double* %27
%101 = fmul double %99, %100
%102 = fneg double %101
%103 = call double @llvm.fmuladd.f64(double %97, double %98, double %102)
%104 = load i32, i32* %21
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 %105
store double %103, double* %106
%107 = load double, double* %28
%108 = load double, double* %27
%109 = load double, double* %29
%110 = load double, double* %26
%111 = fmul double %109, %110
%112 = call double @llvm.fmuladd.f64(double %107, double %108, double %111)
%113 = load i32, i32* %21
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 %114
store double %112, double* %115
%116 = load i32, i32* %21
%117 = add nsw i32 %116, 1
store i32 %117, i32* %21
br label %118
118: ; preds = %70
%119 = load i32, i32* %19
%120 = add nsw i32 %119, 2
store i32 %120, i32* %19
br label %66
121: ; preds = %66
store i32 0, i32* %21
store i32 5, i32* %19
store i32 0, i32* %21
br label %122
122: ; preds = %174, %121
%123 = load i32, i32* %21
%124 = icmp slt i32 %123, 5
br i1 %124, label %125, label %177
125: ; preds = %122
%126 = load double*, double** %15
%127 = load i32, i32* %19
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %126, i64 %131
%133 = load double, double* %132
store double %133, double* %26
%134 = load double*, double** %16
%135 = load i32, i32* %19
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 %136
%138 = load i32, i32* %137
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, double* %134, i64 %139
%141 = load double, double* %140
store double %141, double* %27
%142 = load double*, double** %13
%143 = load i32, i32* %19
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %142, i64 %144
%146 = load double, double* %145
store double %146, double* %28
%147 = load double*, double** %14
%148 = load i32, i32* %19
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
%151 = load double, double* %150
store double %151, double* %29
%152 = load double, double* %28
%153 = load double, double* %26
%154 = load double, double* %29
%155 = load double, double* %27
%156 = fmul double %154, %155
%157 = fneg double %156
%158 = call double @llvm.fmuladd.f64(double %152, double %153, double %157)
%159 = load i32, i32* %21
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 %160
store double %158, double* %161
%162 = load double, double* %28
%163 = load double, double* %27
%164 = load double, double* %29
%165 = load double, double* %26
%166 = fmul double %164, %165
%167 = call double @llvm.fmuladd.f64(double %162, double %163, double %166)
%168 = load i32, i32* %21
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 %169
store double %167, double* %170
%171 = load i32, i32* %19
%172 = add nsw i32 %171, 2
%173 = srem i32 %172, 10
store i32 %173, i32* %19
br label %174
174: ; preds = %125
%175 = load i32, i32* %21
%176 = add nsw i32 %175, 1
store i32 %176, i32* %21
br label %122
177: ; preds = %122
%178 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 0
%179 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 0
%180 = call i32 @dft_5(double* %178, double* %179)
%181 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 0
%182 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 0
%183 = call i32 @dft_5(double* %181, double* %182)
%184 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 0
%185 = load double, double* %184
%186 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 0
%187 = load double, double* %186
%188 = fadd double %185, %187
%189 = load double*, double** %15
%190 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 0
%191 = load i32, i32* %190
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %189, i64 %192
store double %188, double* %193
%194 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 0
%195 = load double, double* %194
%196 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 0
%197 = load double, double* %196
%198 = fsub double %195, %197
%199 = load double*, double** %15
%200 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 5
%201 = load i32, i32* %200
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %199, i64 %202
store double %198, double* %203
%204 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 1
%205 = load double, double* %204
%206 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 1
%207 = load double, double* %206
%208 = fadd double %205, %207
%209 = load double*, double** %15
%210 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 6
%211 = load i32, i32* %210
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, double* %209, i64 %212
store double %208, double* %213
%214 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 1
%215 = load double, double* %214
%216 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 1
%217 = load double, double* %216
%218 = fsub double %215, %217
%219 = load double*, double** %15
%220 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 1
%221 = load i32, i32* %220
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds double, double* %219, i64 %222
store double %218, double* %223
%224 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 2
%225 = load double, double* %224
%226 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 2
%227 = load double, double* %226
%228 = fadd double %225, %227
%229 = load double*, double** %15
%230 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 2
%231 = load i32, i32* %230
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, double* %229, i64 %232
store double %228, double* %233
%234 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 2
%235 = load double, double* %234
%236 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 2
%237 = load double, double* %236
%238 = fsub double %235, %237
%239 = load double*, double** %15
%240 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 7
%241 = load i32, i32* %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, double* %239, i64 %242
store double %238, double* %243
%244 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 3
%245 = load double, double* %244
%246 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 3
%247 = load double, double* %246
%248 = fadd double %245, %247
%249 = load double*, double** %15
%250 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 8
%251 = load i32, i32* %250
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, double* %249, i64 %252
store double %248, double* %253
%254 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 3
%255 = load double, double* %254
%256 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 3
%257 = load double, double* %256
%258 = fsub double %255, %257
%259 = load double*, double** %15
%260 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 3
%261 = load i32, i32* %260
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds double, double* %259, i64 %262
store double %258, double* %263
%264 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 4
%265 = load double, double* %264
%266 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 4
%267 = load double, double* %266
%268 = fadd double %265, %267
%269 = load double*, double** %15
%270 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 4
%271 = load i32, i32* %270
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds double, double* %269, i64 %272
store double %268, double* %273
%274 = getelementptr inbounds [5 x double], [5 x double]* %22, i64 0, i64 4
%275 = load double, double* %274
%276 = getelementptr inbounds [5 x double], [5 x double]* %24, i64 0, i64 4
%277 = load double, double* %276
%278 = fsub double %275, %277
%279 = load double*, double** %15
%280 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 9
%281 = load i32, i32* %280
%282 = sext i32 %281 to i64
%283 = getelementptr inbounds double, double* %279, i64 %282
store double %278, double* %283
%284 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 0
%285 = load double, double* %284
%286 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 0
%287 = load double, double* %286
%288 = fadd double %285, %287
%289 = load double*, double** %16
%290 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 0
%291 = load i32, i32* %290
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double, double* %289, i64 %292
store double %288, double* %293
%294 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 0
%295 = load double, double* %294
%296 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 0
%297 = load double, double* %296
%298 = fsub double %295, %297
%299 = load double*, double** %16
%300 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 5
%301 = load i32, i32* %300
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds double, double* %299, i64 %302
store double %298, double* %303
%304 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 1
%305 = load double, double* %304
%306 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 1
%307 = load double, double* %306
%308 = fadd double %305, %307
%309 = load double*, double** %16
%310 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 6
%311 = load i32, i32* %310
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds double, double* %309, i64 %312
store double %308, double* %313
%314 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 1
%315 = load double, double* %314
%316 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 1
%317 = load double, double* %316
%318 = fsub double %315, %317
%319 = load double*, double** %16
%320 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 1
%321 = load i32, i32* %320
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds double, double* %319, i64 %322
store double %318, double* %323
%324 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 2
%325 = load double, double* %324
%326 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 2
%327 = load double, double* %326
%328 = fadd double %325, %327
%329 = load double*, double** %16
%330 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 2
%331 = load i32, i32* %330
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds double, double* %329, i64 %332
store double %328, double* %333
%334 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 2
%335 = load double, double* %334
%336 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 2
%337 = load double, double* %336
%338 = fsub double %335, %337
%339 = load double*, double** %16
%340 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 7
%341 = load i32, i32* %340
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds double, double* %339, i64 %342
store double %338, double* %343
%344 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 3
%345 = load double, double* %344
%346 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 3
%347 = load double, double* %346
%348 = fadd double %345, %347
%349 = load double*, double** %16
%350 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 8
%351 = load i32, i32* %350
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds double, double* %349, i64 %352
store double %348, double* %353
%354 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 3
%355 = load double, double* %354
%356 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 3
%357 = load double, double* %356
%358 = fsub double %355, %357
%359 = load double*, double** %16
%360 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 3
%361 = load i32, i32* %360
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds double, double* %359, i64 %362
store double %358, double* %363
%364 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 4
%365 = load double, double* %364
%366 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 4
%367 = load double, double* %366
%368 = fadd double %365, %367
%369 = load double*, double** %16
%370 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 4
%371 = load i32, i32* %370
%372 = sext i32 %371 to i64
%373 = getelementptr inbounds double, double* %369, i64 %372
store double %368, double* %373
%374 = getelementptr inbounds [5 x double], [5 x double]* %23, i64 0, i64 4
%375 = load double, double* %374
%376 = getelementptr inbounds [5 x double], [5 x double]* %25, i64 0, i64 4
%377 = load double, double* %376
%378 = fsub double %375, %377
%379 = load double*, double** %16
%380 = getelementptr inbounds [10 x i32], [10 x i32]* %17, i64 0, i64 9
%381 = load i32, i32* %380
%382 = sext i32 %381 to i64
%383 = getelementptr inbounds double, double* %379, i64 %382
store double %378, double* %383
%384 = load i32, i32* %12
%385 = load i32, i32* %9
%386 = load i32, i32* %10
%387 = mul nsw i32 %385, %386
%388 = add nsw i32 %384, %387
store i32 %388, i32* %12
%389 = load i32, i32* %12
store i32 %389, i32* %20
br label %390
390: ; preds = %177
%391 = load i32, i32* %18
%392 = add nsw i32 %391, 1
store i32 %392, i32* %18
br label %31
393: ; preds = %31
ret void
}

LLVM IR (-O2):
define void @twiddleFFT_10(i32 %0, i32 %1, i32 %2, i32 %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7) {
%9 = alloca [10 x i32]
%10 = alloca [5 x double]
%11 = alloca [5 x double]
%12 = alloca [5 x double]
%13 = alloca [5 x double]
%14 = bitcast [10 x i32]* %9 to i8*
%15 = bitcast [5 x double]* %10 to i8*
%16 = bitcast [5 x double]* %11 to i8*
%17 = bitcast [5 x double]* %12 to i8*
%18 = bitcast [5 x double]* %13 to i8*
%19 = icmp sgt i32 %2, 0
br i1 %19, label %20, label %326
20: ; preds = %8
%21 = icmp sgt i32 %1, 0
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 0
%23 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%24 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%25 = icmp sgt i32 %1, 2
%26 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 0
%27 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 0
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 5
%29 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
%30 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 1
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 6
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 1
%33 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%34 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 2
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 2
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 7
%37 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
%38 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 3
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 8
%40 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 3
%41 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
%42 = getelementptr inbounds [5 x double], [5 x double]* %12, i64 0, i64 4
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 4
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 9
%45 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%46 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 1
%47 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%48 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 2
%49 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%50 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 3
%51 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
%52 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 4
%53 = mul nsw i32 %1, %0
%54 = add i32 %1, -3
%55 = lshr i32 %54, 1
%56 = add nuw i32 %55, 2
%57 = zext i32 %1 to i64
%58 = zext i32 %56 to i64
%59 = getelementptr inbounds double, double* %4, i64 5
%60 = getelementptr inbounds double, double* %5, i64 5
%61 = getelementptr inbounds double, double* %4, i64 7
%62 = getelementptr inbounds double, double* %5, i64 7
%63 = getelementptr inbounds double, double* %4, i64 9
%64 = getelementptr inbounds double, double* %5, i64 9
%65 = getelementptr inbounds double, double* %4, i64 1
%66 = getelementptr inbounds double, double* %5, i64 1
%67 = getelementptr inbounds double, double* %4, i64 3
%68 = getelementptr inbounds double, double* %5, i64 3
%69 = and i64 %57, 4294967288
%70 = add nsw i64 %69, -8
%71 = lshr exact i64 %70, 3
%72 = add nuw nsw i64 %71, 1
%73 = icmp ult i32 %1, 8
%74 = and i64 %57, 4294967288
%75 = trunc i64 %74 to i32
%76 = mul i32 %75, %0
%77 = insertelement <4 x i32> poison, i32 %0, i64 0
%78 = shufflevector <4 x i32> %77, <4 x i32> poison, <4 x i32> zeroinitializer
%79 = mul <4 x i32> %78, <i32 0, i32 1, i32 2, i32 3>
%80 = shl i32 %0, 2
%81 = insertelement <4 x i32> poison, i32 %80, i64 0
%82 = shufflevector <4 x i32> %81, <4 x i32> poison, <4 x i32> zeroinitializer
%83 = and i64 %72, 3
%84 = icmp ult i64 %70, 24
%85 = and i64 %72, 4611686018427387900
%86 = icmp eq i64 %83, 0
%87 = icmp eq i64 %74, %57
%88 = bitcast [5 x double]* %12 to <2 x double>*
%89 = bitcast [5 x double]* %13 to <2 x double>*
%90 = bitcast double* %34 to <2 x double>*
%91 = bitcast double* %48 to <2 x double>*
br label %92
92: ; preds = %20, %169
%93 = phi i32 [ %3, %20 ], [ %299, %169 ]
%94 = phi i32 [ 0, %20 ], [ %300, %169 ]
br i1 %21, label %95, label %162
95: ; preds = %92
br i1 %73, label %152, label %96
96: ; preds = %95
%97 = add i32 %93, %76
%98 = insertelement <4 x i32> poison, i32 %93, i64 0
%99 = shufflevector <4 x i32> %98, <4 x i32> poison, <4 x i32> zeroinitializer
%100 = add <4 x i32> %99, %79
br i1 %84, label %135, label %101
101: ; preds = %96, %101
%102 = phi i64 [ %131, %101 ], [ 0, %96 ]
%103 = phi <4 x i32> [ %132, %101 ], [ %100, %96 ]
%104 = phi i64 [ %133, %101 ], [ 0, %96 ]
%105 = add <4 x i32> %103, %82
%106 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %102
%107 = bitcast i32* %106 to <4 x i32>*
store <4 x i32> %103, <4 x i32>* %107
%108 = getelementptr inbounds i32, i32* %106, i64 4
%109 = bitcast i32* %108 to <4 x i32>*
store <4 x i32> %105, <4 x i32>* %109
%110 = or i64 %102, 8
%111 = add <4 x i32> %105, %82
%112 = add <4 x i32> %111, %82
%113 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %110
%114 = bitcast i32* %113 to <4 x i32>*
store <4 x i32> %111, <4 x i32>* %114
%115 = getelementptr inbounds i32, i32* %113, i64 4
%116 = bitcast i32* %115 to <4 x i32>*
store <4 x i32> %112, <4 x i32>* %116
%117 = or i64 %102, 16
%118 = add <4 x i32> %112, %82
%119 = add <4 x i32> %118, %82
%120 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %117
%121 = bitcast i32* %120 to <4 x i32>*
store <4 x i32> %118, <4 x i32>* %121
%122 = getelementptr inbounds i32, i32* %120, i64 4
%123 = bitcast i32* %122 to <4 x i32>*
store <4 x i32> %119, <4 x i32>* %123
%124 = or i64 %102, 24
%125 = add <4 x i32> %119, %82
%126 = add <4 x i32> %125, %82
%127 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %124
%128 = bitcast i32* %127 to <4 x i32>*
store <4 x i32> %125, <4 x i32>* %128
%129 = getelementptr inbounds i32, i32* %127, i64 4
%130 = bitcast i32* %129 to <4 x i32>*
store <4 x i32> %126, <4 x i32>* %130
%131 = add nuw i64 %102, 32
%132 = add <4 x i32> %126, %82
%133 = add i64 %104, 4
%134 = icmp eq i64 %133, %85
br i1 %134, label %135, label %101
135: ; preds = %101, %96
%136 = phi i64 [ 0, %96 ], [ %131, %101 ]
%137 = phi <4 x i32> [ %100, %96 ], [ %132, %101 ]
br i1 %86, label %151, label %138
138: ; preds = %135, %138
%139 = phi i64 [ %147, %138 ], [ %136, %135 ]
%140 = phi <4 x i32> [ %148, %138 ], [ %137, %135 ]
%141 = phi i64 [ %149, %138 ], [ 0, %135 ]
%142 = add <4 x i32> %140, %82
%143 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %139
%144 = bitcast i32* %143 to <4 x i32>*
store <4 x i32> %140, <4 x i32>* %144
%145 = getelementptr inbounds i32, i32* %143, i64 4
%146 = bitcast i32* %145 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %146
%147 = add nuw i64 %139, 8
%148 = add <4 x i32> %142, %82
%149 = add i64 %141, 1
%150 = icmp eq i64 %149, %83
br i1 %150, label %151, label %138
151: ; preds = %138, %135
br i1 %87, label %162, label %152
152: ; preds = %95, %151
%153 = phi i64 [ 0, %95 ], [ %74, %151 ]
%154 = phi i32 [ %93, %95 ], [ %97, %151 ]
br label %155
155: ; preds = %152, %155
%156 = phi i64 [ %160, %155 ], [ %153, %152 ]
%157 = phi i32 [ %159, %155 ], [ %154, %152 ]
%158 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %156
store i32 %157, i32* %158
%159 = add nsw i32 %157, %0
%160 = add nuw nsw i64 %156, 1
%161 = icmp eq i64 %160, %57
br i1 %161, label %162, label %155
162: ; preds = %155, %151, %92
%163 = load i32, i32* %22
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %6, i64 %164
%166 = load double, double* %165
store double %166, double* %23
%167 = getelementptr inbounds double, double* %7, i64 %164
%168 = load double, double* %167
store double %168, double* %24
br i1 %25, label %302, label %169
169: ; preds = %302, %162
%170 = load i32, i32* %28
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, double* %6, i64 %171
%173 = load double, double* %172
%174 = getelementptr inbounds double, double* %7, i64 %171
%175 = load double, double* %174
%176 = load double, double* %59
%177 = load double, double* %60
%178 = load i32, i32* %36
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, double* %6, i64 %179
%181 = load double, double* %180
%182 = getelementptr inbounds double, double* %7, i64 %179
%183 = load double, double* %182
%184 = load double, double* %61
%185 = load double, double* %62
%186 = insertelement <2 x double> poison, double %177, i64 0
%187 = insertelement <2 x double> %186, double %185, i64 1
%188 = fneg <2 x double> %187
%189 = insertelement <2 x double> poison, double %175, i64 0
%190 = insertelement <2 x double> %189, double %183, i64 1
%191 = fmul <2 x double> %190, %188
%192 = insertelement <2 x double> poison, double %176, i64 0
%193 = insertelement <2 x double> %192, double %184, i64 1
%194 = insertelement <2 x double> poison, double %173, i64 0
%195 = insertelement <2 x double> %194, double %181, i64 1
%196 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %193, <2 x double> %195, <2 x double> %191)
store <2 x double> %196, <2 x double>* %88
%197 = fmul <2 x double> %195, %187
%198 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %193, <2 x double> %190, <2 x double> %197)
store <2 x double> %198, <2 x double>* %89
%199 = load i32, i32* %44
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %6, i64 %200
%202 = load double, double* %201
%203 = getelementptr inbounds double, double* %7, i64 %200
%204 = load double, double* %203
%205 = load double, double* %63
%206 = load double, double* %64
%207 = load i32, i32* %32
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, double* %6, i64 %208
%210 = load double, double* %209
%211 = getelementptr inbounds double, double* %7, i64 %208
%212 = load double, double* %211
%213 = load double, double* %65
%214 = load double, double* %66
%215 = insertelement <2 x double> poison, double %206, i64 0
%216 = insertelement <2 x double> %215, double %214, i64 1
%217 = fneg <2 x double> %216
%218 = insertelement <2 x double> poison, double %204, i64 0
%219 = insertelement <2 x double> %218, double %212, i64 1
%220 = fmul <2 x double> %219, %217
%221 = insertelement <2 x double> poison, double %205, i64 0
%222 = insertelement <2 x double> %221, double %213, i64 1
%223 = insertelement <2 x double> poison, double %202, i64 0
%224 = insertelement <2 x double> %223, double %210, i64 1
%225 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %222, <2 x double> %224, <2 x double> %220)
store <2 x double> %225, <2 x double>* %90
%226 = fmul <2 x double> %224, %216
%227 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %222, <2 x double> %219, <2 x double> %226)
store <2 x double> %227, <2 x double>* %91
%228 = load i32, i32* %40
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, double* %6, i64 %229
%231 = load double, double* %230
%232 = getelementptr inbounds double, double* %7, i64 %229
%233 = load double, double* %232
%234 = load double, double* %67
%235 = load double, double* %68
%236 = fneg double %235
%237 = fmul double %233, %236
%238 = call double @llvm.fmuladd.f64(double %234, double %231, double %237)
store double %238, double* %42
%239 = fmul double %231, %235
%240 = call double @llvm.fmuladd.f64(double %234, double %233, double %239)
store double %240, double* %52
%241 = call i32 @dft_5(double* %23, double* %24)
%242 = call i32 @dft_5(double* %26, double* %27)
%243 = load double, double* %23
%244 = load double, double* %26
%245 = fadd double %243, %244
store double %245, double* %165
%246 = fsub double %243, %244
store double %246, double* %172
%247 = load double, double* %29
%248 = load double, double* %30
%249 = fadd double %247, %248
%250 = load i32, i32* %31
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, double* %6, i64 %251
store double %249, double* %252
%253 = fsub double %247, %248
store double %253, double* %209
%254 = load double, double* %33
%255 = load double, double* %34
%256 = fadd double %254, %255
%257 = load i32, i32* %35
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %6, i64 %258
store double %256, double* %259
%260 = fsub double %254, %255
store double %260, double* %180
%261 = load double, double* %37
%262 = load double, double* %38
%263 = fadd double %261, %262
%264 = load i32, i32* %39
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, double* %6, i64 %265
store double %263, double* %266
%267 = fsub double %261, %262
store double %267, double* %230
%268 = load double, double* %41
%269 = load double, double* %42
%270 = fadd double %268, %269
%271 = load i32, i32* %43
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds double, double* %6, i64 %272
store double %270, double* %273
%274 = fsub double %268, %269
store double %274, double* %201
%275 = load double, double* %24
%276 = load double, double* %27
%277 = fadd double %275, %276
store double %277, double* %167
%278 = fsub double %275, %276
store double %278, double* %174
%279 = load double, double* %45
%280 = load double, double* %46
%281 = fadd double %279, %280
%282 = getelementptr inbounds double, double* %7, i64 %251
store double %281, double* %282
%283 = fsub double %279, %280
store double %283, double* %211
%284 = load double, double* %47
%285 = load double, double* %48
%286 = fadd double %284, %285
%287 = getelementptr inbounds double, double* %7, i64 %258
store double %286, double* %287
%288 = fsub double %284, %285
store double %288, double* %182
%289 = load double, double* %49
%290 = load double, double* %50
%291 = fadd double %289, %290
%292 = getelementptr inbounds double, double* %7, i64 %265
store double %291, double* %292
%293 = fsub double %289, %290
store double %293, double* %232
%294 = load double, double* %51
%295 = load double, double* %52
%296 = fadd double %294, %295
%297 = getelementptr inbounds double, double* %7, i64 %272
store double %296, double* %297
%298 = fsub double %294, %295
store double %298, double* %203
%299 = add nsw i32 %93, %53
%300 = add nuw i32 %94, 1
%301 = icmp eq i32 %300, %2
br i1 %301, label %326, label %92
302: ; preds = %162, %302
%303 = phi i64 [ %324, %302 ], [ 2, %162 ]
%304 = phi i64 [ %323, %302 ], [ 1, %162 ]
%305 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %303
%306 = load i32, i32* %305
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds double, double* %6, i64 %307
%309 = load double, double* %308
%310 = getelementptr inbounds double, double* %7, i64 %307
%311 = load double, double* %310
%312 = getelementptr inbounds double, double* %4, i64 %303
%313 = load double, double* %312
%314 = getelementptr inbounds double, double* %5, i64 %303
%315 = load double, double* %314
%316 = fneg double %315
%317 = fmul double %311, %316
%318 = call double @llvm.fmuladd.f64(double %313, double %309, double %317)
%319 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 %304
store double %318, double* %319
%320 = fmul double %309, %315
%321 = call double @llvm.fmuladd.f64(double %313, double %311, double %320)
%322 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 %304
store double %321, double* %322
%323 = add nuw nsw i64 %304, 1
%324 = add nuw nsw i64 %303, 2
%325 = icmp eq i64 %323, %58
br i1 %325, label %169, label %302
326: ; preds = %169, %8
ret void
}