void cftfsub(int n, double *a, double *w) {
  void cft1st(int n, double *a, double *w);
  void cftmdl(int n, int l, double *a, double *w);
  int j, j1, j2, j3, l;
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;
  l = 2;
  if (n > 8) {
    cft1st(n, a, w);
    l = 8;
    while ((l << 2) < n) {
      cftmdl(n, l, a, w);
      l <<= 2;
    }
  }
  if ((l << 2) == n) {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      j2 = j1 + l;
      j3 = j2 + l;
      x0r = a[j] + a[j1];
      x0i = a[j + 1] + a[j1 + 1];
      x1r = a[j] - a[j1];
      x1i = a[j + 1] - a[j1 + 1];
      x2r = a[j2] + a[j3];
      x2i = a[j2 + 1] + a[j3 + 1];
      x3r = a[j2] - a[j3];
      x3i = a[j2 + 1] - a[j3 + 1];
      a[j] = x0r + x2r;
      a[j + 1] = x0i + x2i;
      a[j2] = x0r - x2r;
      a[j2 + 1] = x0i - x2i;
      a[j1] = x1r - x3i;
      a[j1 + 1] = x1i + x3r;
      a[j3] = x1r + x3i;
      a[j3 + 1] = x1i - x3r;
    }
  } else {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      x0r = a[j] - a[j1];
      x0i = a[j + 1] - a[j1 + 1];
      a[j] += a[j1];
      a[j + 1] += a[j1 + 1];
      a[j1] = x0r;
      a[j1 + 1] = x0i;
    }
  }
}


x86 assembly (clang, -O0):
<cftfsub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x2,-0x2c(%rbp)
cmpl   $0x8,-0x4(%rbp)
jle    1190 <cftfsub+0x70>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <cft1st@plt>
movl   $0x8,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jge    118b <cftfsub+0x6b>
mov    -0x4(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <cftmdl@plt>
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    115b <cftfsub+0x3b>
jmp    1190 <cftfsub+0x70>
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jne    13cc <cftfsub+0x2ac>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13c7 <cftfsub+0x2a7>
mov    -0x1c(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
addsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a6 <cftfsub+0x86>
jmp    14b4 <cftfsub+0x394>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    14af <cftfsub+0x38f>
mov    -0x1c(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    13d3 <cftfsub+0x2b3>
jmp    14b4 <cftfsub+0x394>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftfsub>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r15d
mov    $0x2,%r12d
cmp    $0x9,%edi
jl     1181 <cftfsub+0x61>
mov    %rdx,%r14
mov    %r15d,%edi
mov    %rbx,%rsi
call   1030 <cft1st@plt>
mov    $0x8,%r12d
cmp    $0x21,%r15d
jb     1181 <cftfsub+0x61>
mov    $0x8,%esi
mov    $0x20,%eax
nopl   (%rax)
mov    %eax,%r12d
mov    %r15d,%edi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1040 <cftmdl@plt>
lea    0x0(,%r12,4),%eax
mov    %r12d,%esi
cmp    %r15d,%eax
jl     1160 <cftfsub+0x40>
lea    0x0(,%r12,4),%eax
cmp    %r15d,%eax
jne    12b2 <cftfsub+0x192>
test   %r12d,%r12d
jle    132d <cftfsub+0x20d>
movabs $0x200000000,%r8
mov    %r12d,%r9d
add    %r12d,%r12d
or     $0x1,%r12
mov    %r9,%rax
shl    $0x20,%rax
lea    (%rbx,%r9,8),%r10
lea    (%rax,%rax,2),%rcx
lea    (%r9,%r9,2),%rdx
lea    (%rbx,%rdx,8),%r11
mov    %r9,%r14
shl    $0x4,%r14
add    %rbx,%r14
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r10,%rsi,8),%xmm2
movupd (%rbx,%rsi,8),%xmm0
mov    %rax,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm3
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
unpcklpd %xmm3,%xmm2
addpd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
subsd  %xmm3,%xmm0
movsd  (%r14,%rsi,8),%xmm3
movsd  (%r11,%rsi,8),%xmm4
lea    (%r12,%rsi,1),%edi
movslq %edi,%rbp
movsd  (%rbx,%rbp,8),%xmm5
mov    %rcx,%rdi
sar    $0x1d,%rdi
or     $0x8,%rdi
movsd  (%rbx,%rdi,1),%xmm6
movapd %xmm3,%xmm7
unpcklpd %xmm5,%xmm7
subsd  %xmm4,%xmm3
unpcklpd %xmm6,%xmm4
addpd  %xmm7,%xmm4
subsd  %xmm6,%xmm5
movapd %xmm2,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm6,(%rbx,%rsi,8)
subpd  %xmm4,%xmm2
movlpd %xmm2,(%r14,%rsi,8)
movhpd %xmm2,(%rbx,%rbp,8)
movapd %xmm1,%xmm2
subsd  %xmm5,%xmm2
movsd  %xmm2,(%r10,%rsi,8)
movapd %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rbx,%rdx,1)
addsd  %xmm1,%xmm5
movsd  %xmm5,(%r11,%rsi,8)
subsd  %xmm3,%xmm0
movsd  %xmm0,(%rbx,%rdi,1)
add    $0x2,%rsi
add    %r8,%rax
add    %r8,%rcx
cmp    %r9,%rsi
jb     11e0 <cftfsub+0xc0>
jmp    132d <cftfsub+0x20d>
test   %r12d,%r12d
jle    132d <cftfsub+0x20d>
movabs $0x200000000,%rax
mov    %r12d,%ebp
mov    %rbp,%rcx
shl    $0x20,%rcx
lea    (%rbx,%rbp,8),%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rdi,8),%xmm0
movupd (%rbx,%rdi,8),%xmm1
movapd %xmm1,%xmm2
subsd  %xmm0,%xmm2
mov    %rcx,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm3
unpcklpd %xmm3,%xmm0
addpd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm3,%xmm1
movupd %xmm0,(%rbx,%rdi,8)
movsd  %xmm2,(%rsi,%rdi,8)
movsd  %xmm1,(%rbx,%rdx,1)
add    $0x2,%rdi
add    %rax,%rcx
cmp    %rbp,%rdi
jb     12e0 <cftfsub+0x1c0>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @cftfsub(i32 %0, double* %1, double* %2) {
%4 = icmp sgt i32 %0, 8
br i1 %4, label %5, label %12
5: ; preds = %3
tail call void @cft1st(i32 %0, double* %1, double* %2)
%6 = icmp ugt i32 %0, 32
br i1 %6, label %7, label %12
7: ; preds = %5, %7
%8 = phi i32 [ %10, %7 ], [ 32, %5 ]
%9 = phi i32 [ %8, %7 ], [ 8, %5 ]
tail call void @cftmdl(i32 %0, i32 %9, double* %1, double* %2)
%10 = shl i32 %8, 2
%11 = icmp slt i32 %10, %0
br i1 %11, label %7, label %12
12: ; preds = %7, %5, %3
%13 = phi i32 [ 2, %3 ], [ 8, %5 ], [ %8, %7 ]
%14 = shl i32 %13, 2
%15 = icmp eq i32 %14, %0
%16 = icmp sgt i32 %13, 0
br i1 %15, label %20, label %17
17: ; preds = %12
br i1 %16, label %18, label %103
18: ; preds = %17
%19 = zext i32 %13 to i64
br label %80
20: ; preds = %12
br i1 %16, label %21, label %103
21: ; preds = %20
%22 = zext i32 %13 to i64
%23 = shl i32 %13, 1
br label %24
24: ; preds = %21, %24
%25 = phi i64 [ 0, %21 ], [ %78, %24 ]
%26 = trunc i64 %25 to i32
%27 = add nuw nsw i64 %25, %22
%28 = add nuw nsw i64 %27, %22
%29 = add i32 %23, %26
%30 = add nuw nsw i64 %28, %22
%31 = getelementptr inbounds double, double* %1, i64 %25
%32 = getelementptr inbounds double, double* %1, i64 %27
%33 = load double, double* %32
%34 = bitcast double* %31 to <2 x double>*
%35 = load <2 x double>, <2 x double>* %34
%36 = shl i64 %27, 32
%37 = ashr exact i64 %36, 32
%38 = or i64 %37, 1
%39 = getelementptr inbounds double, double* %1, i64 %38
%40 = load double, double* %39
%41 = insertelement <2 x double> poison, double %33, i64 0
%42 = insertelement <2 x double> %41, double %40, i64 1
%43 = fadd <2 x double> %35, %42
%44 = extractelement <2 x double> %35, i64 0
%45 = fsub double %44, %33
%46 = extractelement <2 x double> %35, i64 1
%47 = fsub double %46, %40
%48 = getelementptr inbounds double, double* %1, i64 %28
%49 = load double, double* %48
%50 = getelementptr inbounds double, double* %1, i64 %30
%51 = load double, double* %50
%52 = or i32 %29, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %1, i64 %53
%55 = load double, double* %54
%56 = shl i64 %30, 32
%57 = ashr exact i64 %56, 32
%58 = or i64 %57, 1
%59 = getelementptr inbounds double, double* %1, i64 %58
%60 = load double, double* %59
%61 = insertelement <2 x double> poison, double %49, i64 0
%62 = insertelement <2 x double> %61, double %55, i64 1
%63 = insertelement <2 x double> poison, double %51, i64 0
%64 = insertelement <2 x double> %63, double %60, i64 1
%65 = fadd <2 x double> %62, %64
%66 = fsub double %49, %51
%67 = fsub double %55, %60
%68 = fadd <2 x double> %43, %65
%69 = bitcast double* %31 to <2 x double>*
store <2 x double> %68, <2 x double>* %69
%70 = fsub <2 x double> %43, %65
%71 = extractelement <2 x double> %70, i64 0
store double %71, double* %48
%72 = fsub <2 x double> %43, %65
%73 = extractelement <2 x double> %72, i64 1
store double %73, double* %54
%74 = fsub double %45, %67
store double %74, double* %32
%75 = fadd double %47, %66
store double %75, double* %39
%76 = fadd double %45, %67
store double %76, double* %50
%77 = fsub double %47, %66
store double %77, double* %59
%78 = add nuw nsw i64 %25, 2
%79 = icmp ult i64 %78, %22
br i1 %79, label %24, label %103
80: ; preds = %18, %80
%81 = phi i64 [ 0, %18 ], [ %101, %80 ]
%82 = add nuw nsw i64 %81, %19
%83 = getelementptr inbounds double, double* %1, i64 %81
%84 = getelementptr inbounds double, double* %1, i64 %82
%85 = load double, double* %84
%86 = bitcast double* %83 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = extractelement <2 x double> %87, i64 0
%89 = fsub double %88, %85
%90 = shl i64 %82, 32
%91 = ashr exact i64 %90, 32
%92 = or i64 %91, 1
%93 = getelementptr inbounds double, double* %1, i64 %92
%94 = load double, double* %93
%95 = extractelement <2 x double> %87, i64 1
%96 = fsub double %95, %94
%97 = insertelement <2 x double> poison, double %85, i64 0
%98 = insertelement <2 x double> %97, double %94, i64 1
%99 = fadd <2 x double> %87, %98
%100 = bitcast double* %83 to <2 x double>*
store <2 x double> %99, <2 x double>* %100
store double %89, double* %84
store double %96, double* %93
%101 = add nuw nsw i64 %81, 2
%102 = icmp ult i64 %101, %19
br i1 %102, label %80, label %103
103: ; preds = %80, %24, %17, %20
ret void
}