#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*/ radf2(int, int, double *, double *, double const *);
int /*<<< orphan*/ radf3(int, int, double *, double *, double const *,
                         double const *);
int /*<<< orphan*/ radf4(int, int, double *, double *, double const *,
                         double const *, double const *);
int /*<<< orphan*/ radf5(int, int, double *, double *, double const *,
                         double const *, double const *, double const *);
int /*<<< orphan*/ radfg(int, int, int, int, double *, double *,
                         double const *);
void rfftf1(int n, double c[], double ch[], const double wa[],
            const int ifac[13 + 2]) {
  int i;
  int k1, l1, l2, na, kh, nf, ip, iw, ix2, ix3, ix4, ido, idl1;
  double *cinput, *coutput;
  nf = ifac[1];
  na = 1;
  l2 = n;
  iw = n - 1;
  for (k1 = 1; k1 <= nf; ++k1) {
    kh = nf - k1;
    ip = ifac[kh + 2];
    l1 = l2 / ip;
    ido = n / l2;
    idl1 = ido * l1;
    iw -= (ip - 1) * ido;
    na = !na;
    if (na) {
      cinput = ch;
      coutput = c;
    } else {
      cinput = c;
      coutput = ch;
    }
    switch (ip) {
    case 4:
      ix2 = iw + ido;
      ix3 = ix2 + ido;
      radf4(ido, l1, cinput, coutput, &wa[iw], &wa[ix2], &wa[ix3]);
      break;
    case 2:
      radf2(ido, l1, cinput, coutput, &wa[iw]);
      break;
    case 3:
      ix2 = iw + ido;
      radf3(ido, l1, cinput, coutput, &wa[iw], &wa[ix2]);
      break;
    case 5:
      ix2 = iw + ido;
      ix3 = ix2 + ido;
      ix4 = ix3 + ido;
      radf5(ido, l1, cinput, coutput, &wa[iw], &wa[ix2], &wa[ix3], &wa[ix4]);
      break;
    default:
      if (ido == 1)
        na = !na;
      if (na == 0) {
        radfg(ido, ip, l1, idl1, c, ch, &wa[iw]);
        na = 1;
      } else {
        radfg(ido, ip, l1, idl1, ch, c, &wa[iw]);
        na = 0;
      }
    }
    l2 = l1;
  }
  if (na == 1)
    return;
  for (i = 0; i < n; i++)
    c[i] = ch[i];
}


x86 assembly (clang, -O0):
<rfftf1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x44(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x44(%rbp),%eax
jg     1438 <rfftf1+0x2e8>
mov    -0x44(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
mov    -0x38(%rbp),%eax
cltd
idivl  -0x48(%rbp)
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x38(%rbp)
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
imul   -0x34(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x48(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x5c(%rbp),%ecx
mov    -0x4c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     121d <rfftf1+0xcd>
mov    -0x18(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    122d <rfftf1+0xdd>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x48(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x78(%rbp)
sub    $0x3,%eax
ja     138f <rfftf1+0x23f>
mov    -0x78(%rbp),%rax
lea    0xdb3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x4c(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x20(%rbp),%r8
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
mov    -0x20(%rbp),%r9
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%r10
shl    $0x3,%r10
add    %r10,%rax
mov    %rax,(%rsp)
call   1060 <radf4@plt>
jmp    1424 <rfftf1+0x2d4>
mov    -0x5c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x20(%rbp),%r8
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
call   1070 <radf2@plt>
jmp    1424 <rfftf1+0x2d4>
mov    -0x4c(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x20(%rbp),%r8
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
mov    -0x20(%rbp),%r9
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
call   1040 <radf3@plt>
jmp    1424 <rfftf1+0x2d4>
mov    -0x4c(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
add    -0x5c(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x20(%rbp),%r8
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
mov    -0x20(%rbp),%r9
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
mov    -0x20(%rbp),%r10
movslq -0x54(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r10
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%r11
shl    $0x3,%r11
add    %r11,%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <radf5@plt>
jmp    1424 <rfftf1+0x2d4>
cmpl   $0x1,-0x5c(%rbp)
jne    13aa <rfftf1+0x25a>
cmpl   $0x0,-0x3c(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jne    13ec <rfftf1+0x29c>
mov    -0x5c(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x60(%rbp),%ecx
mov    -0x10(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%rax
movslq -0x4c(%rbp),%r10
shl    $0x3,%r10
add    %r10,%rax
mov    %rax,(%rsp)
call   1050 <radfg@plt>
movl   $0x1,-0x3c(%rbp)
jmp    141f <rfftf1+0x2cf>
mov    -0x5c(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x60(%rbp),%ecx
mov    -0x18(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x20(%rbp),%rax
movslq -0x4c(%rbp),%r10
shl    $0x3,%r10
add    %r10,%rax
mov    %rax,(%rsp)
call   1050 <radfg@plt>
movl   $0x0,-0x3c(%rbp)
jmp    1424 <rfftf1+0x2d4>
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1195 <rfftf1+0x45>
cmpl   $0x1,-0x3c(%rbp)
jne    1447 <rfftf1+0x2f7>
jmp    1482 <rfftf1+0x332>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1482 <rfftf1+0x332>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    144e <rfftf1+0x2fe>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rfftf1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,%rax
mov    %rcx,0x28(%rsp)
mov    %r8,0x30(%rsp)
mov    0x4(%r8),%r12d
test   %r12d,%r12d
jle    1507 <rfftf1+0x3b7>
mov    %rdx,%rbp
mov    %rsi,%r8
mov    %edi,%ebx
lea    -0x1(%rbx),%r15d
add    $0x1,%r12
mov    $0x1,%edi
mov    %ebx,%r13d
mov    %rsi,0x18(%rsp)
mov    %rbx,0x20(%rsp)
jmp    11d2 <rfftf1+0x82>
nopl   0x0(%rax)
movslq %r15d,%rsi
mov    0x28(%rsp),%rdi
lea    (%rdi,%rsi,8),%r8
mov    %eax,%edi
mov    %r13d,%esi
call   1070 <radf2@plt>
mov    0x18(%rsp),%r8
mov    0x20(%rsp),%rbx
movzbl %r14b,%edi
add    $0xffffffffffffffff,%r12
cmp    $0x1,%r12
je     1387 <rfftf1+0x237>
mov    %r13d,%ecx
movslq %r12d,%rax
mov    0x30(%rsp),%rdx
mov    (%rdx,%rax,4),%esi
mov    %r13d,%eax
cltd
idiv   %esi
mov    %eax,%r13d
mov    %ebx,%eax
cltd
idiv   %ecx
lea    -0x1(%rsi),%ecx
imul   %eax,%ecx
sub    %ecx,%r15d
test   %edi,%edi
sete   %r14b
mov    %rbp,%rdx
cmovne %r8,%rdx
mov    %r8,%rcx
cmovne %rbp,%rcx
lea    -0x2(%rsi),%ebx
cmp    $0x3,%ebx
ja     1260 <rfftf1+0x110>
lea    0xde6(%rip),%rdi
movslq (%rdi,%rbx,4),%rsi
add    %rdi,%rsi
jmp    *%rsi
mov    %eax,%esi
add    %r15d,%esi
movslq %r15d,%rdi
mov    %rbp,%rbx
mov    0x28(%rsp),%rbp
lea    0x0(,%rdi,8),%r8
add    %rbp,%r8
movslq %esi,%rsi
lea    0x0(%rbp,%rsi,8),%r9
mov    %rbx,%rbp
mov    %eax,%edi
mov    %r13d,%esi
call   1040 <radf3@plt>
jmp    11b6 <rfftf1+0x66>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%r9
mov    %r13d,%ecx
imul   %eax,%ecx
test   %edi,%edi
setne  %bl
cmp    $0x1,%eax
sete   %dl
movslq %r15d,%rdi
mov    0x28(%rsp),%rbp
lea    0x0(,%rdi,8),%rdi
add    %rbp,%rdi
cmp    %dl,%bl
je     135c <rfftf1+0x20c>
mov    %rdi,(%rsp)
mov    %eax,%edi
mov    %r13d,%edx
mov    %r9,%rbp
call   1050 <radfg@plt>
mov    0x20(%rsp),%rbx
mov    0x18(%rsp),%r8
mov    $0x1,%r14b
jmp    11c0 <rfftf1+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%r15,%rax,1),%esi
mov    %eax,%edi
add    %esi,%edi
movslq %r15d,%rbx
mov    %rbp,%r10
mov    0x28(%rsp),%rbp
lea    0x0(,%rbx,8),%r8
add    %rbp,%r8
movslq %esi,%rsi
lea    0x0(%rbp,%rsi,8),%r9
movslq %edi,%rsi
lea    0x0(%rbp,%rsi,8),%rsi
mov    %r10,%rbp
mov    %rsi,(%rsp)
mov    %eax,%edi
mov    %r13d,%esi
call   1060 <radf4@plt>
jmp    11b6 <rfftf1+0x66>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%r15,%rax,1),%esi
lea    (%rsi,%rax,1),%r10d
mov    %eax,%edi
add    %r10d,%edi
mov    %rbp,%r9
movslq %r15d,%rbp
mov    0x28(%rsp),%rbx
lea    (%rbx,%rbp,8),%r8
mov    %r9,%rbp
movslq %esi,%rsi
lea    (%rbx,%rsi,8),%r9
movslq %r10d,%rsi
lea    (%rbx,%rsi,8),%rsi
movslq %edi,%rdi
lea    (%rbx,%rdi,8),%rdi
mov    %rsi,(%rsp)
mov    %rdi,0x8(%rsp)
mov    %eax,%edi
mov    %r13d,%esi
call   1030 <radf5@plt>
jmp    11b6 <rfftf1+0x66>
mov    %rdi,(%rsp)
mov    %eax,%edi
mov    %r13d,%edx
mov    %r9,%rbp
mov    %r9,%r8
mov    0x18(%rsp),%r9
call   1050 <radfg@plt>
mov    0x20(%rsp),%rbx
mov    0x18(%rsp),%r8
xor    %r14d,%r14d
jmp    11c0 <rfftf1+0x70>
test   %edi,%edi
jne    1507 <rfftf1+0x3b7>
test   %ebx,%ebx
jle    1507 <rfftf1+0x3b7>
mov    %ebx,%eax
cmp    $0x4,%ebx
jb     13bb <rfftf1+0x26b>
lea    0x0(,%rax,8),%rcx
add    %rbp,%rcx
cmp    %r8,%rcx
jbe    1431 <rfftf1+0x2e1>
lea    (%r8,%rax,8),%rcx
cmp    %rbp,%rcx
jbe    1431 <rfftf1+0x2e1>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     13e6 <rfftf1+0x296>
nop
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r8,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    13d0 <rfftf1+0x280>
cmp    $0x3,%rdx
jb     1507 <rfftf1+0x3b7>
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r8,%rcx,8)
movsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r8,%rcx,8)
movsd  0x10(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r8,%rcx,8)
movsd  0x18(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r8,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    13f0 <rfftf1+0x2a0>
jmp    1507 <rfftf1+0x3b7>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0xc,%rdi
jae    1454 <rfftf1+0x304>
xor    %edi,%edi
jmp    14c1 <rfftf1+0x371>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movups 0x0(%rbp,%rdi,8),%xmm0
movups 0x10(%rbp,%rdi,8),%xmm1
movups %xmm0,(%r8,%rdi,8)
movups %xmm1,0x10(%r8,%rdi,8)
movups 0x20(%rbp,%rdi,8),%xmm0
movups 0x30(%rbp,%rdi,8),%xmm1
movups %xmm0,0x20(%r8,%rdi,8)
movups %xmm1,0x30(%r8,%rdi,8)
movups 0x40(%rbp,%rdi,8),%xmm0
movups 0x50(%rbp,%rdi,8),%xmm1
movups %xmm0,0x40(%r8,%rdi,8)
movups %xmm1,0x50(%r8,%rdi,8)
movups 0x60(%rbp,%rdi,8),%xmm0
movups 0x70(%rbp,%rdi,8),%xmm1
movups %xmm0,0x60(%r8,%rdi,8)
movups %xmm1,0x70(%r8,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1460 <rfftf1+0x310>
mov    %rbp,%rbx
test   %rdx,%rdx
je     14fb <rfftf1+0x3ab>
lea    (%r8,%rdi,8),%rsi
add    $0x10,%rsi
lea    (%rbx,%rdi,8),%rdi
add    $0x10,%rdi
shl    $0x5,%rdx
xor    %ebp,%ebp
nop
movups -0x10(%rdi,%rbp,1),%xmm0
movups (%rdi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rsi,%rbp,1)
movups %xmm1,(%rsi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdx
jne    14e0 <rfftf1+0x390>
cmp    %rax,%rcx
mov    %rbx,%rbp
jne    13bd <rfftf1+0x26d>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @rfftf1(i32 %0, double* %1, double* %2, double* %3, i32* %4) {
%6 = alloca i32
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca double*
%26 = alloca double*
store i32 %0, i32* %6
store double* %1, double** %7
store double* %2, double** %8
store double* %3, double** %9
store i32* %4, i32** %10
%27 = load i32*, i32** %10
%28 = getelementptr inbounds i32, i32* %27, i64 1
%29 = load i32, i32* %28
store i32 %29, i32* %17
store i32 1, i32* %15
%30 = load i32, i32* %6
store i32 %30, i32* %14
%31 = load i32, i32* %6
%32 = sub nsw i32 %31, 1
store i32 %32, i32* %19
store i32 1, i32* %12
br label %33
33: ; preds = %196, %5
%34 = load i32, i32* %12
%35 = load i32, i32* %17
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %199
37: ; preds = %33
%38 = load i32, i32* %17
%39 = load i32, i32* %12
%40 = sub nsw i32 %38, %39
store i32 %40, i32* %16
%41 = load i32*, i32** %10
%42 = load i32, i32* %16
%43 = add nsw i32 %42, 2
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, i32* %41, i64 %44
%46 = load i32, i32* %45
store i32 %46, i32* %18
%47 = load i32, i32* %14
%48 = load i32, i32* %18
%49 = sdiv i32 %47, %48
store i32 %49, i32* %13
%50 = load i32, i32* %6
%51 = load i32, i32* %14
%52 = sdiv i32 %50, %51
store i32 %52, i32* %23
%53 = load i32, i32* %23
%54 = load i32, i32* %13
%55 = mul nsw i32 %53, %54
store i32 %55, i32* %24
%56 = load i32, i32* %18
%57 = sub nsw i32 %56, 1
%58 = load i32, i32* %23
%59 = mul nsw i32 %57, %58
%60 = load i32, i32* %19
%61 = sub nsw i32 %60, %59
store i32 %61, i32* %19
%62 = load i32, i32* %15
%63 = icmp ne i32 %62, 0
%64 = xor i1 %63, true
%65 = zext i1 %64 to i32
store i32 %65, i32* %15
%66 = load i32, i32* %15
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %37
%69 = load double*, double** %8
store double* %69, double** %25
%70 = load double*, double** %7
store double* %70, double** %26
br label %74
71: ; preds = %37
%72 = load double*, double** %7
store double* %72, double** %25
%73 = load double*, double** %8
store double* %73, double** %26
br label %74
74: ; preds = %71, %68
%75 = load i32, i32* %18
switch i32 %75, label %158 [
i32 4, label %76
i32 2, label %100
i32 3, label %110
i32 5, label %127
]
76: ; preds = %74
%77 = load i32, i32* %19
%78 = load i32, i32* %23
%79 = add nsw i32 %77, %78
store i32 %79, i32* %20
%80 = load i32, i32* %20
%81 = load i32, i32* %23
%82 = add nsw i32 %80, %81
store i32 %82, i32* %21
%83 = load i32, i32* %23
%84 = load i32, i32* %13
%85 = load double*, double** %25
%86 = load double*, double** %26
%87 = load double*, double** %9
%88 = load i32, i32* %19
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double*, double** %9
%92 = load i32, i32* %20
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double*, double** %9
%96 = load i32, i32* %21
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = call i32 @radf4(i32 %83, i32 %84, double* %85, double* %86, double* %90, double* %94, double* %98)
br label %194
100: ; preds = %74
%101 = load i32, i32* %23
%102 = load i32, i32* %13
%103 = load double*, double** %25
%104 = load double*, double** %26
%105 = load double*, double** %9
%106 = load i32, i32* %19
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
%109 = call i32 @radf2(i32 %101, i32 %102, double* %103, double* %104, double* %108)
br label %194
110: ; preds = %74
%111 = load i32, i32* %19
%112 = load i32, i32* %23
%113 = add nsw i32 %111, %112
store i32 %113, i32* %20
%114 = load i32, i32* %23
%115 = load i32, i32* %13
%116 = load double*, double** %25
%117 = load double*, double** %26
%118 = load double*, double** %9
%119 = load i32, i32* %19
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double*, double** %9
%123 = load i32, i32* %20
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, double* %122, i64 %124
%126 = call i32 @radf3(i32 %114, i32 %115, double* %116, double* %117, double* %121, double* %125)
br label %194
127: ; preds = %74
%128 = load i32, i32* %19
%129 = load i32, i32* %23
%130 = add nsw i32 %128, %129
store i32 %130, i32* %20
%131 = load i32, i32* %20
%132 = load i32, i32* %23
%133 = add nsw i32 %131, %132
store i32 %133, i32* %21
%134 = load i32, i32* %21
%135 = load i32, i32* %23
%136 = add nsw i32 %134, %135
store i32 %136, i32* %22
%137 = load i32, i32* %23
%138 = load i32, i32* %13
%139 = load double*, double** %25
%140 = load double*, double** %26
%141 = load double*, double** %9
%142 = load i32, i32* %19
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, double* %141, i64 %143
%145 = load double*, double** %9
%146 = load i32, i32* %20
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, double* %145, i64 %147
%149 = load double*, double** %9
%150 = load i32, i32* %21
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %149, i64 %151
%153 = load double*, double** %9
%154 = load i32, i32* %22
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, double* %153, i64 %155
%157 = call i32 @radf5(i32 %137, i32 %138, double* %139, double* %140, double* %144, double* %148, double* %152, double* %156)
br label %194
158: ; preds = %74
%159 = load i32, i32* %23
%160 = icmp eq i32 %159, 1
br i1 %160, label %161, label %166
161: ; preds = %158
%162 = load i32, i32* %15
%163 = icmp ne i32 %162, 0
%164 = xor i1 %163, true
%165 = zext i1 %164 to i32
store i32 %165, i32* %15
br label %166
166: ; preds = %161, %158
%167 = load i32, i32* %15
%168 = icmp eq i32 %167, 0
br i1 %168, label %169, label %181
169: ; preds = %166
%170 = load i32, i32* %23
%171 = load i32, i32* %18
%172 = load i32, i32* %13
%173 = load i32, i32* %24
%174 = load double*, double** %7
%175 = load double*, double** %8
%176 = load double*, double** %9
%177 = load i32, i32* %19
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %176, i64 %178
%180 = call i32 @radfg(i32 %170, i32 %171, i32 %172, i32 %173, double* %174, double* %175, double* %179)
store i32 1, i32* %15
br label %193
181: ; preds = %166
%182 = load i32, i32* %23
%183 = load i32, i32* %18
%184 = load i32, i32* %13
%185 = load i32, i32* %24
%186 = load double*, double** %8
%187 = load double*, double** %7
%188 = load double*, double** %9
%189 = load i32, i32* %19
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %188, i64 %190
%192 = call i32 @radfg(i32 %182, i32 %183, i32 %184, i32 %185, double* %186, double* %187, double* %191)
store i32 0, i32* %15
br label %193
193: ; preds = %181, %169
br label %194
194: ; preds = %193, %127, %110, %100, %76
%195 = load i32, i32* %13
store i32 %195, i32* %14
br label %196
196: ; preds = %194
%197 = load i32, i32* %12
%198 = add nsw i32 %197, 1
store i32 %198, i32* %12
br label %33
199: ; preds = %33
%200 = load i32, i32* %15
%201 = icmp eq i32 %200, 1
br i1 %201, label %202, label %203
202: ; preds = %199
br label %221
203: ; preds = %199
store i32 0, i32* %11
br label %204
204: ; preds = %218, %203
%205 = load i32, i32* %11
%206 = load i32, i32* %6
%207 = icmp slt i32 %205, %206
br i1 %207, label %208, label %221
208: ; preds = %204
%209 = load double*, double** %8
%210 = load i32, i32* %11
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds double, double* %209, i64 %211
%213 = load double, double* %212
%214 = load double*, double** %7
%215 = load i32, i32* %11
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, double* %214, i64 %216
store double %213, double* %217
br label %218
218: ; preds = %208
%219 = load i32, i32* %11
%220 = add nsw i32 %219, 1
store i32 %220, i32* %11
br label %204
221: ; preds = %202, %204
ret void
}

LLVM IR (-O2):
define void @rfftf1(i32 %0, double* %1, double* %2, double* %3, i32* nocapture %4) {
%6 = getelementptr inbounds i32, i32* %4, i64 1
%7 = load i32, i32* %6
%8 = icmp slt i32 %7, 1
br i1 %8, label %210, label %9
9: ; preds = %5
%10 = add nsw i32 %0, -1
%11 = add nuw i32 %7, 2
%12 = add nuw i32 %7, 1
%13 = zext i32 %12 to i64
br label %14
14: ; preds = %9, %77
%15 = phi i64 [ 1, %9 ], [ %80, %77 ]
%16 = phi i32 [ %0, %9 ], [ %24, %77 ]
%17 = phi i32 [ %10, %9 ], [ %29, %77 ]
%18 = phi i32 [ 1, %9 ], [ %79, %77 ]
%19 = trunc i64 %15 to i32
%20 = sub i32 %11, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %4, i64 %21
%23 = load i32, i32* %22
%24 = sdiv i32 %16, %23
%25 = sdiv i32 %0, %16
%26 = mul nsw i32 %25, %24
%27 = add nsw i32 %23, -1
%28 = mul nsw i32 %25, %27
%29 = sub nsw i32 %17, %28
%30 = icmp ne i32 %18, 0
%31 = xor i1 %30, true
%32 = select i1 %30, double* %1, double* %2
%33 = select i1 %30, double* %2, double* %1
switch i32 %23, label %68 [
i32 4, label %34
i32 2, label %44
i32 3, label %48
i32 5, label %55
]
34: ; preds = %14
%35 = add nsw i32 %29, %25
%36 = add nsw i32 %35, %25
%37 = sext i32 %29 to i64
%38 = getelementptr inbounds double, double* %3, i64 %37
%39 = sext i32 %35 to i64
%40 = getelementptr inbounds double, double* %3, i64 %39
%41 = sext i32 %36 to i64
%42 = getelementptr inbounds double, double* %3, i64 %41
%43 = tail call i32 @radf4(i32 %25, i32 %24, double* %32, double* %33, double* %38, double* %40, double* %42)
br label %77
44: ; preds = %14
%45 = sext i32 %29 to i64
%46 = getelementptr inbounds double, double* %3, i64 %45
%47 = tail call i32 @radf2(i32 %25, i32 %24, double* %32, double* %33, double* %46)
br label %77
48: ; preds = %14
%49 = add nsw i32 %29, %25
%50 = sext i32 %29 to i64
%51 = getelementptr inbounds double, double* %3, i64 %50
%52 = sext i32 %49 to i64
%53 = getelementptr inbounds double, double* %3, i64 %52
%54 = tail call i32 @radf3(i32 %25, i32 %24, double* %32, double* %33, double* %51, double* %53)
br label %77
55: ; preds = %14
%56 = add nsw i32 %29, %25
%57 = add nsw i32 %56, %25
%58 = add nsw i32 %57, %25
%59 = sext i32 %29 to i64
%60 = getelementptr inbounds double, double* %3, i64 %59
%61 = sext i32 %56 to i64
%62 = getelementptr inbounds double, double* %3, i64 %61
%63 = sext i32 %57 to i64
%64 = getelementptr inbounds double, double* %3, i64 %63
%65 = sext i32 %58 to i64
%66 = getelementptr inbounds double, double* %3, i64 %65
%67 = tail call i32 @radf5(i32 %25, i32 %24, double* %32, double* %33, double* %60, double* %62, double* %64, double* %66)
br label %77
68: ; preds = %14
%69 = icmp eq i32 %25, 1
%70 = xor i1 %30, %69
%71 = sext i32 %29 to i64
%72 = getelementptr inbounds double, double* %3, i64 %71
br i1 %70, label %73, label %75
73: ; preds = %68
%74 = tail call i32 @radfg(i32 %25, i32 %23, i32 %24, i32 %26, double* %1, double* %2, double* %72)
br label %77
75: ; preds = %68
%76 = tail call i32 @radfg(i32 %25, i32 %23, i32 %24, i32 %26, double* %2, double* %1, double* %72)
br label %77
77: ; preds = %73, %75, %55, %48, %44, %34
%78 = phi i1 [ true, %73 ], [ false, %75 ], [ %31, %55 ], [ %31, %48 ], [ %31, %44 ], [ %31, %34 ]
%79 = zext i1 %78 to i32
%80 = add nuw nsw i64 %15, 1
%81 = icmp eq i64 %80, %13
br i1 %81, label %82, label %14
82: ; preds = %77
%83 = icmp slt i32 %0, 1
%84 = or i1 %78, %83
br i1 %84, label %210, label %85
85: ; preds = %82
%86 = zext i32 %0 to i64
%87 = icmp ult i32 %0, 4
br i1 %87, label %173, label %88
88: ; preds = %85
%89 = getelementptr double, double* %1, i64 %86
%90 = getelementptr double, double* %2, i64 %86
%91 = icmp ugt double* %90, %1
%92 = icmp ugt double* %89, %2
%93 = and i1 %91, %92
br i1 %93, label %173, label %94
94: ; preds = %88
%95 = and i64 %86, 4294967292
%96 = add nsw i64 %95, -4
%97 = lshr exact i64 %96, 2
%98 = add nuw nsw i64 %97, 1
%99 = and i64 %98, 3
%100 = icmp ult i64 %96, 12
br i1 %100, label %152, label %101
101: ; preds = %94
%102 = and i64 %98, 9223372036854775804
br label %103
103: ; preds = %103, %101
%104 = phi i64 [ 0, %101 ], [ %149, %103 ]
%105 = phi i64 [ 0, %101 ], [ %150, %103 ]
%106 = getelementptr inbounds double, double* %2, i64 %104
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = getelementptr inbounds double, double* %106, i64 2
%110 = bitcast double* %109 to <2 x double>*
%111 = load <2 x double>, <2 x double>* %110
%112 = getelementptr inbounds double, double* %1, i64 %104
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> %108, <2 x double>* %113
%114 = getelementptr inbounds double, double* %112, i64 2
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> %111, <2 x double>* %115
%116 = or i64 %104, 4
%117 = getelementptr inbounds double, double* %2, i64 %116
%118 = bitcast double* %117 to <2 x double>*
%119 = load <2 x double>, <2 x double>* %118
%120 = getelementptr inbounds double, double* %117, i64 2
%121 = bitcast double* %120 to <2 x double>*
%122 = load <2 x double>, <2 x double>* %121
%123 = getelementptr inbounds double, double* %1, i64 %116
%124 = bitcast double* %123 to <2 x double>*
store <2 x double> %119, <2 x double>* %124
%125 = getelementptr inbounds double, double* %123, i64 2
%126 = bitcast double* %125 to <2 x double>*
store <2 x double> %122, <2 x double>* %126
%127 = or i64 %104, 8
%128 = getelementptr inbounds double, double* %2, i64 %127
%129 = bitcast double* %128 to <2 x double>*
%130 = load <2 x double>, <2 x double>* %129
%131 = getelementptr inbounds double, double* %128, i64 2
%132 = bitcast double* %131 to <2 x double>*
%133 = load <2 x double>, <2 x double>* %132
%134 = getelementptr inbounds double, double* %1, i64 %127
%135 = bitcast double* %134 to <2 x double>*
store <2 x double> %130, <2 x double>* %135
%136 = getelementptr inbounds double, double* %134, i64 2
%137 = bitcast double* %136 to <2 x double>*
store <2 x double> %133, <2 x double>* %137
%138 = or i64 %104, 12
%139 = getelementptr inbounds double, double* %2, i64 %138
%140 = bitcast double* %139 to <2 x double>*
%141 = load <2 x double>, <2 x double>* %140
%142 = getelementptr inbounds double, double* %139, i64 2
%143 = bitcast double* %142 to <2 x double>*
%144 = load <2 x double>, <2 x double>* %143
%145 = getelementptr inbounds double, double* %1, i64 %138
%146 = bitcast double* %145 to <2 x double>*
store <2 x double> %141, <2 x double>* %146
%147 = getelementptr inbounds double, double* %145, i64 2
%148 = bitcast double* %147 to <2 x double>*
store <2 x double> %144, <2 x double>* %148
%149 = add nuw i64 %104, 16
%150 = add nuw i64 %105, 4
%151 = icmp eq i64 %150, %102
br i1 %151, label %152, label %103
152: ; preds = %103, %94
%153 = phi i64 [ 0, %94 ], [ %149, %103 ]
%154 = icmp eq i64 %99, 0
br i1 %154, label %171, label %155
155: ; preds = %152, %155
%156 = phi i64 [ %168, %155 ], [ %153, %152 ]
%157 = phi i64 [ %169, %155 ], [ 0, %152 ]
%158 = getelementptr inbounds double, double* %2, i64 %156
%159 = bitcast double* %158 to <2 x double>*
%160 = load <2 x double>, <2 x double>* %159
%161 = getelementptr inbounds double, double* %158, i64 2
%162 = bitcast double* %161 to <2 x double>*
%163 = load <2 x double>, <2 x double>* %162
%164 = getelementptr inbounds double, double* %1, i64 %156
%165 = bitcast double* %164 to <2 x double>*
store <2 x double> %160, <2 x double>* %165
%166 = getelementptr inbounds double, double* %164, i64 2
%167 = bitcast double* %166 to <2 x double>*
store <2 x double> %163, <2 x double>* %167
%168 = add nuw i64 %156, 4
%169 = add i64 %157, 1
%170 = icmp eq i64 %169, %99
br i1 %170, label %171, label %155
171: ; preds = %155, %152
%172 = icmp eq i64 %95, %86
br i1 %172, label %210, label %173
173: ; preds = %88, %85, %171
%174 = phi i64 [ 0, %88 ], [ 0, %85 ], [ %95, %171 ]
%175 = xor i64 %174, -1
%176 = add nsw i64 %175, %86
%177 = and i64 %86, 3
%178 = icmp eq i64 %177, 0
br i1 %178, label %188, label %179
179: ; preds = %173, %179
%180 = phi i64 [ %185, %179 ], [ %174, %173 ]
%181 = phi i64 [ %186, %179 ], [ 0, %173 ]
%182 = getelementptr inbounds double, double* %2, i64 %180
%183 = load double, double* %182
%184 = getelementptr inbounds double, double* %1, i64 %180
store double %183, double* %184
%185 = add nuw nsw i64 %180, 1
%186 = add i64 %181, 1
%187 = icmp eq i64 %186, %177
br i1 %187, label %188, label %179
188: ; preds = %179, %173
%189 = phi i64 [ %174, %173 ], [ %185, %179 ]
%190 = icmp ult i64 %176, 3
br i1 %190, label %210, label %191
191: ; preds = %188, %191
%192 = phi i64 [ %208, %191 ], [ %189, %188 ]
%193 = getelementptr inbounds double, double* %2, i64 %192
%194 = load double, double* %193
%195 = getelementptr inbounds double, double* %1, i64 %192
store double %194, double* %195
%196 = add nuw nsw i64 %192, 1
%197 = getelementptr inbounds double, double* %2, i64 %196
%198 = load double, double* %197
%199 = getelementptr inbounds double, double* %1, i64 %196
store double %198, double* %199
%200 = add nuw nsw i64 %192, 2
%201 = getelementptr inbounds double, double* %2, i64 %200
%202 = load double, double* %201
%203 = getelementptr inbounds double, double* %1, i64 %200
store double %202, double* %203
%204 = add nuw nsw i64 %192, 3
%205 = getelementptr inbounds double, double* %2, i64 %204
%206 = load double, double* %205
%207 = getelementptr inbounds double, double* %1, i64 %204
store double %206, double* %207
%208 = add nuw nsw i64 %192, 4
%209 = icmp eq i64 %208, %86
br i1 %209, label %210, label %191
210: ; preds = %188, %191, %171, %5, %82
ret void
}