void cftbsub(int n, double *a) {
  void cft1st(int n, double *a);
  void cftmdl(int n, int l, double *a);
  int j, j1, j2, j3, j4, j5, j6, j7, l;
  double wn4r, x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i, y0r, y0i, y1r, y1i, y2r,
      y2i, y3r, y3i, y4r, y4i, y5r, y5i, y6r, y6i, y7r, y7i;
  l = 2;
  if (n > 16) {
    cft1st(n, a);
    l = 16;
    while ((l << 3) < n) {
      cftmdl(n, l, a);
      l <<= 3;
    }
  }
  if ((l << 2) < n) {
    wn4r = 0.707106781186547524400844362104849039284835937688;
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      j2 = j1 + l;
      j3 = j2 + l;
      j4 = j3 + l;
      j5 = j4 + l;
      j6 = j5 + l;
      j7 = j6 + 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];
      y0r = x0r + x2r;
      y0i = x0i - x2i;
      y2r = x0r - x2r;
      y2i = x0i + x2i;
      y1r = x1r - x3i;
      y1i = x1i - x3r;
      y3r = x1r + x3i;
      y3i = x1i + x3r;
      x0r = a[j4] + a[j5];
      x0i = a[j4 + 1] + a[j5 + 1];
      x1r = a[j4] - a[j5];
      x1i = a[j4 + 1] - a[j5 + 1];
      x2r = a[j6] + a[j7];
      x2i = a[j6 + 1] + a[j7 + 1];
      x3r = a[j6] - a[j7];
      x3i = a[j6 + 1] - a[j7 + 1];
      y4r = x0r + x2r;
      y4i = x0i + x2i;
      y6r = x0r - x2r;
      y6i = x0i - x2i;
      x0r = x1r - x3i;
      x0i = x1i + x3r;
      x2r = x1r + x3i;
      x2i = x1i - x3r;
      y5r = wn4r * (x0r - x0i);
      y5i = wn4r * (x0r + x0i);
      y7r = wn4r * (x2r - x2i);
      y7i = wn4r * (x2r + x2i);
      a[j1] = y1r + y5r;
      a[j1 + 1] = y1i - y5i;
      a[j5] = y1r - y5r;
      a[j5 + 1] = y1i + y5i;
      a[j3] = y3r - y7i;
      a[j3 + 1] = y3i - y7r;
      a[j7] = y3r + y7i;
      a[j7 + 1] = y3i + y7r;
      a[j] = y0r + y4r;
      a[j + 1] = y0i - y4i;
      a[j4] = y0r - y4r;
      a[j4 + 1] = y0i + y4i;
      a[j2] = y2r - y6i;
      a[j2 + 1] = y2i - y6r;
      a[j6] = y2r + y6i;
      a[j6 + 1] = y2i + y6r;
    }
  } else 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[j + 1] - a[j1 + 1];
      a[j1] = x0r;
      a[j1 + 1] = x0i;
    }
  }
}


x86 assembly (clang, -O0):
<cftbsub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x2,-0x34(%rbp)
cmpl   $0x10,-0x4(%rbp)
jle    1187 <cftbsub+0x67>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <cft1st@plt>
movl   $0x10,-0x34(%rbp)
mov    -0x34(%rbp),%eax
shl    $0x3,%eax
cmp    -0x4(%rbp),%eax
jge    1182 <cftbsub+0x62>
mov    -0x4(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1040 <cftmdl@plt>
mov    -0x34(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x34(%rbp)
jmp    1156 <cftbsub+0x36>
jmp    1187 <cftbsub+0x67>
mov    -0x34(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jge    17ee <cftbsub+0x6ce>
movsd  0xe62(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    17e9 <cftbsub+0x6c9>
mov    -0x14(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%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,-0x68(%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,-0x70(%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,-0x78(%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,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
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,-0x48(%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,-0x50(%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,-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
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x60(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x58(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x50(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
subsd  -0x70(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
addsd  -0x70(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
addsd  -0xd8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
subsd  -0xe0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x98(%rbp),%xmm0
ff
subsd  -0xd8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
addsd  -0xe0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
subsd  -0x100(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
subsd  -0xf8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
addsd  -0x100(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
addsd  -0xf8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x88(%rbp),%xmm0
ff
addsd  -0xc8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0xd0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0xc8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x90(%rbp),%xmm0
ff
addsd  -0xd0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
subsd  -0xf0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb0(%rbp),%xmm0
ff
subsd  -0xe8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
addsd  -0xf0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb0(%rbp),%xmm0
ff
addsd  -0xe8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    11aa <cftbsub+0x8a>
jmp    1b80 <cftbsub+0xa60>
mov    -0x34(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jne    1a58 <cftbsub+0x938>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1a53 <cftbsub+0x933>
mov    -0x14(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%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,-0x68(%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,-0x70(%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,-0x78(%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,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
subsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    1804 <cftbsub+0x6e4>
jmp    1b7b <cftbsub+0xa5b>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1b76 <cftbsub+0xa56>
mov    -0x14(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    1a5f <cftbsub+0x93f>
jmp    1b7b <cftbsub+0xa5b>
jmp    1b80 <cftbsub+0xa60>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftbsub>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0x2,%r14d
cmp    $0x11,%edi
jl     117c <cftbsub+0x5c>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <cft1st@plt>
mov    $0x10,%r14d
cmp    $0x81,%ebp
jb     117c <cftbsub+0x5c>
mov    $0x10,%esi
mov    $0x80,%eax
mov    %eax,%r14d
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <cftmdl@plt>
lea    0x0(,%r14,8),%eax
mov    %r14d,%esi
cmp    %ebp,%eax
jl     1160 <cftbsub+0x40>
lea    0x0(,%r14,4),%eax
cmp    %ebp,%eax
jge    14f4 <cftbsub+0x3d4>
test   %r14d,%r14d
jle    16dd <cftbsub+0x5bd>
mov    %r14d,%r12d
add    %r14d,%r14d
or     $0x1,%r14
mov    %r14,0x28(%rsp)
mov    %r12,%r8
shl    $0x20,%r8
lea    (%rbx,%r12,8),%rax
mov    %rax,0x38(%rsp)
mov    %r12,%rax
shl    $0x4,%rax
add    %rbx,%rax
mov    %rax,(%rsp)
lea    (%r8,%r8,2),%r10
lea    (%r12,%r12,2),%rax
lea    (%rbx,%rax,8),%rcx
mov    %rcx,0x30(%rsp)
mov    %r12,%r11
shl    $0x22,%r11
imul   $0x38,%r12,%rcx
add    %rbx,%rcx
add    $0x8,%rcx
mov    %rcx,0x18(%rsp)
shl    $0x4,%rax
add    %rbx,%rax
add    $0x8,%rax
mov    %rax,0x10(%rsp)
lea    (%r12,%r12,4),%rax
lea    (%rbx,%rax,8),%rax
add    $0x8,%rax
mov    %rax,0x8(%rsp)
mov    %r12,0x40(%rsp)
shl    $0x5,%r12
add    %rbx,%r12
mov    %r12,0x20(%rsp)
xor    %esi,%esi
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%r14
mov    0x20(%rsp),%r13
mov    0x8(%rsp),%r9
mov    0x10(%rsp),%rdi
mov    0x18(%rsp),%rcx
nopl   0x0(%rax)
movsd  (%r15,%rsi,8),%xmm3
movsd  (%rbx,%rsi,8),%xmm0
movsd  0x8(%rbx,%rsi,8),%xmm4
movapd %xmm0,%xmm7
addsd  %xmm3,%xmm7
movapd %xmm4,%xmm2
xorpd  0xd9b(%rip),%xmm2
mov    %r8,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm1
subsd  %xmm1,%xmm2
subsd  %xmm3,%xmm0
subsd  %xmm4,%xmm1
mov    (%rsp),%rax
movsd  (%rax,%rsi,8),%xmm10
movsd  (%r14,%rsi,8),%xmm3
movapd %xmm10,%xmm5
addsd  %xmm3,%xmm5
mov    0x28(%rsp),%rax
add    %esi,%eax
movslq %eax,%r12
movsd  (%rbx,%r12,8),%xmm13
mov    %r10,%rbp
sar    $0x1d,%rbp
or     $0x8,%rbp
movsd  (%rbx,%rbp,1),%xmm6
movapd %xmm13,%xmm11
addsd  %xmm6,%xmm11
subsd  %xmm3,%xmm10
subsd  %xmm6,%xmm13
movapd %xmm7,%xmm14
addsd  %xmm5,%xmm14
movapd %xmm2,%xmm3
subsd  %xmm11,%xmm3
movapd %xmm3,0x50(%rsp)
subsd  %xmm5,%xmm7
movsd  %xmm7,0x48(%rsp)
addsd  %xmm2,%xmm11
movapd %xmm0,%xmm7
subsd  %xmm13,%xmm7
movapd %xmm1,%xmm12
subsd  %xmm10,%xmm12
addsd  %xmm0,%xmm13
addsd  %xmm1,%xmm10
movsd  0x0(%r13,%rsi,8),%xmm6
movsd  -0x8(%r9,%rsi,8),%xmm3
movsd  (%r9,%rsi,8),%xmm8
movapd %xmm6,%xmm2
addsd  %xmm3,%xmm2
mov    %r11,%rax
sar    $0x1d,%rax
or     $0x8,%rax
movsd  (%rbx,%rax,1),%xmm1
movapd %xmm1,%xmm5
addsd  %xmm8,%xmm5
subsd  %xmm3,%xmm6
subsd  %xmm8,%xmm1
movsd  -0x8(%rdi,%rsi,8),%xmm0
movsd  (%rdi,%rsi,8),%xmm15
movsd  -0x8(%rcx,%rsi,8),%xmm3
movapd %xmm0,%xmm9
addsd  %xmm3,%xmm9
subsd  %xmm3,%xmm0
movsd  (%rcx,%rsi,8),%xmm3
movapd %xmm15,%xmm8
addsd  %xmm3,%xmm8
subsd  %xmm3,%xmm15
movapd %xmm2,%xmm3
addsd  %xmm9,%xmm3
subsd  %xmm9,%xmm2
movapd %xmm6,%xmm9
subsd  %xmm15,%xmm9
addsd  %xmm6,%xmm15
movapd %xmm1,%xmm6
addsd  %xmm0,%xmm6
subsd  %xmm0,%xmm1
movapd %xmm9,%xmm0
subsd  %xmm6,%xmm0
addsd  %xmm9,%xmm6
movapd %xmm15,%xmm9
subsd  %xmm1,%xmm9
addsd  %xmm15,%xmm1
movsd  0xc3c(%rip),%xmm15
mulsd  %xmm15,%xmm0
movapd %xmm7,%xmm4
addsd  %xmm0,%xmm4
movsd  %xmm4,(%r15,%rsi,8)
mulsd  %xmm15,%xmm6
movapd %xmm12,%xmm4
subsd  %xmm6,%xmm4
movsd  %xmm4,(%rbx,%rdx,1)
subsd  %xmm0,%xmm7
movsd  %xmm7,-0x8(%r9,%rsi,8)
addsd  %xmm12,%xmm6
mulsd  %xmm15,%xmm9
mulsd  %xmm15,%xmm1
movsd  %xmm6,(%r9,%rsi,8)
movapd %xmm13,%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%r14,%rsi,8)
movapd %xmm10,%xmm0
subsd  %xmm9,%xmm0
movsd  %xmm0,(%rbx,%rbp,1)
addsd  %xmm13,%xmm1
movsd  %xmm1,-0x8(%rcx,%rsi,8)
addsd  %xmm10,%xmm9
movapd %xmm5,%xmm0
addsd  %xmm8,%xmm0
movsd  %xmm9,(%rcx,%rsi,8)
movapd %xmm14,%xmm1
addsd  %xmm3,%xmm1
movsd  %xmm1,(%rbx,%rsi,8)
movapd 0x50(%rsp),%xmm4
movapd %xmm4,%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx,%rsi,8)
subsd  %xmm3,%xmm14
movsd  %xmm14,0x0(%r13,%rsi,8)
addsd  %xmm4,%xmm0
movsd  %xmm0,(%rbx,%rax,1)
subsd  %xmm8,%xmm5
movsd  0x48(%rsp),%xmm1
movapd %xmm1,%xmm0
subsd  %xmm5,%xmm0
mov    (%rsp),%rax
movsd  %xmm0,(%rax,%rsi,8)
movapd %xmm11,%xmm0
subsd  %xmm2,%xmm0
movsd  %xmm0,(%rbx,%r12,8)
addsd  %xmm1,%xmm5
movsd  %xmm5,-0x8(%rdi,%rsi,8)
addsd  %xmm11,%xmm2
movsd  %xmm2,(%rdi,%rsi,8)
add    $0x2,%rsi
movabs $0x200000000,%rax
add    %rax,%r8
add    %rax,%r10
add    %rax,%r11
cmp    0x40(%rsp),%rsi
jb     1240 <cftbsub+0x120>
jmp    16dd <cftbsub+0x5bd>
jne    1649 <cftbsub+0x529>
test   %r14d,%r14d
jle    16dd <cftbsub+0x5bd>
movabs $0x200000000,%r8
mov    %r14d,%r9d
add    %r14d,%r14d
or     $0x1,%r14
mov    %r9,%rsi
shl    $0x20,%rsi
lea    (%rbx,%r9,8),%r10
mov    %r9,%r15
shl    $0x4,%r15
add    %rbx,%r15
lea    (%rsi,%rsi,2),%rax
lea    (%r9,%r9,2),%rcx
lea    (%rbx,%rcx,8),%r11
xor    %ecx,%ecx
movapd 0xabd(%rip),%xmm8
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r10,%rcx,8),%xmm5
movsd  (%rbx,%rcx,8),%xmm10
movsd  0x8(%rbx,%rcx,8),%xmm6
movapd %xmm10,%xmm4
addsd  %xmm5,%xmm4
movapd %xmm6,%xmm3
xorpd  %xmm8,%xmm3
mov    %rsi,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm2
subsd  %xmm2,%xmm3
subsd  %xmm5,%xmm10
subsd  %xmm6,%xmm2
movsd  (%r15,%rcx,8),%xmm5
movsd  (%r11,%rcx,8),%xmm9
movapd %xmm5,%xmm7
addsd  %xmm9,%xmm7
lea    (%r14,%rcx,1),%ebp
movslq %ebp,%rdi
movsd  (%rbx,%rdi,8),%xmm1
mov    %rax,%rbp
sar    $0x1d,%rbp
or     $0x8,%rbp
movsd  (%rbx,%rbp,1),%xmm6
movapd %xmm1,%xmm0
addsd  %xmm6,%xmm0
subsd  %xmm9,%xmm5
subsd  %xmm6,%xmm1
movapd %xmm4,%xmm6
addsd  %xmm7,%xmm6
movsd  %xmm6,(%rbx,%rcx,8)
movapd %xmm3,%xmm6
subsd  %xmm0,%xmm6
movsd  %xmm6,0x8(%rbx,%rcx,8)
subsd  %xmm7,%xmm4
movsd  %xmm4,(%r15,%rcx,8)
addsd  %xmm3,%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
movapd %xmm10,%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%r10,%rcx,8)
movapd %xmm2,%xmm0
subsd  %xmm5,%xmm0
movsd  %xmm0,(%rbx,%rdx,1)
addsd  %xmm10,%xmm1
movsd  %xmm1,(%r11,%rcx,8)
addsd  %xmm2,%xmm5
movsd  %xmm5,(%rbx,%rbp,1)
add    $0x2,%rcx
add    %r8,%rsi
add    %r8,%rax
cmp    %r9,%rcx
jb     1550 <cftbsub+0x430>
jmp    16dd <cftbsub+0x5bd>
test   %r14d,%r14d
jle    16dd <cftbsub+0x5bd>
movabs $0x200000000,%rax
mov    %r14d,%ebp
mov    %rbp,%rcx
shl    $0x20,%rcx
lea    (%rbx,%rbp,8),%rsi
xor    %edi,%edi
movapd 0x98c(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rsi,%rdi,8),%xmm1
movsd  (%rbx,%rdi,8),%xmm2
movsd  0x8(%rbx,%rdi,8),%xmm3
movapd %xmm2,%xmm4
subsd  %xmm1,%xmm4
mov    %rcx,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm5
movapd %xmm5,%xmm6
subsd  %xmm3,%xmm6
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rdi,8)
xorpd  %xmm0,%xmm3
subsd  %xmm5,%xmm3
movsd  %xmm3,0x8(%rbx,%rdi,8)
movsd  %xmm4,(%rsi,%rdi,8)
movsd  %xmm6,(%rbx,%rdx,1)
add    $0x2,%rdi
add    %rax,%rcx
cmp    %rbp,%rdi
jb     1680 <cftbsub+0x560>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @cftbsub(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
store i32 %0, i32* %3
store double* %1, double** %4
store i32 2, i32* %13
%39 = load i32, i32* %3
%40 = icmp sgt i32 %39, 16
br i1 %40, label %41, label %56
41: ; preds = %2
%42 = load i32, i32* %3
%43 = load double*, double** %4
store i32 16, i32* %13
br label %44
44: ; preds = %49, %41
%45 = load i32, i32* %13
%46 = shl i32 %45, 3
%47 = load i32, i32* %3
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %55
49: ; preds = %44
%50 = load i32, i32* %3
%51 = load i32, i32* %13
%52 = load double*, double** %4
%53 = load i32, i32* %13
%54 = shl i32 %53, 3
store i32 %54, i32* %13
br label %44
55: ; preds = %44
br label %56
56: ; preds = %55, %2
%57 = load i32, i32* %13
%58 = shl i32 %57, 2
%59 = load i32, i32* %3
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %474
61: ; preds = %56
store double 0x3FE6A09E667F3BCD, double* %14
store i32 0, i32* %5
br label %62
62: ; preds = %470, %61
%63 = load i32, i32* %5
%64 = load i32, i32* %13
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %473
66: ; preds = %62
%67 = load i32, i32* %5
%68 = load i32, i32* %13
%69 = add nsw i32 %67, %68
store i32 %69, i32* %6
%70 = load i32, i32* %6
%71 = load i32, i32* %13
%72 = add nsw i32 %70, %71
store i32 %72, i32* %7
%73 = load i32, i32* %7
%74 = load i32, i32* %13
%75 = add nsw i32 %73, %74
store i32 %75, i32* %8
%76 = load i32, i32* %8
%77 = load i32, i32* %13
%78 = add nsw i32 %76, %77
store i32 %78, i32* %9
%79 = load i32, i32* %9
%80 = load i32, i32* %13
%81 = add nsw i32 %79, %80
store i32 %81, i32* %10
%82 = load i32, i32* %10
%83 = load i32, i32* %13
%84 = add nsw i32 %82, %83
store i32 %84, i32* %11
%85 = load i32, i32* %11
%86 = load i32, i32* %13
%87 = add nsw i32 %85, %86
store i32 %87, i32* %12
%88 = load double*, double** %4
%89 = load i32, i32* %5
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %88, i64 %90
%92 = load double, double* %91
%93 = load double*, double** %4
%94 = load i32, i32* %6
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %93, i64 %95
%97 = load double, double* %96
%98 = fadd double %92, %97
store double %98, double* %15
%99 = load double*, double** %4
%100 = load i32, i32* %5
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %99, i64 %102
%104 = load double, double* %103
%105 = fneg double %104
%106 = load double*, double** %4
%107 = load i32, i32* %6
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %106, i64 %109
%111 = load double, double* %110
%112 = fsub double %105, %111
store double %112, double* %16
%113 = load double*, double** %4
%114 = load i32, i32* %5
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
%117 = load double, double* %116
%118 = load double*, double** %4
%119 = load i32, i32* %6
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = fsub double %117, %122
store double %123, double* %17
%124 = load double*, double** %4
%125 = load i32, i32* %5
%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 = fneg double %129
%131 = load double*, double** %4
%132 = load i32, i32* %6
%133 = add nsw i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %131, i64 %134
%136 = load double, double* %135
%137 = fadd double %130, %136
store double %137, double* %18
%138 = load double*, double** %4
%139 = load i32, i32* %7
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = load double, double* %141
%143 = load double*, double** %4
%144 = load i32, i32* %8
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, double* %143, i64 %145
%147 = load double, double* %146
%148 = fadd double %142, %147
store double %148, double* %19
%149 = load double*, double** %4
%150 = load i32, i32* %7
%151 = add nsw i32 %150, 1
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, double* %149, i64 %152
%154 = load double, double* %153
%155 = load double*, double** %4
%156 = load i32, i32* %8
%157 = add nsw i32 %156, 1
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %155, i64 %158
%160 = load double, double* %159
%161 = fadd double %154, %160
store double %161, double* %20
%162 = load double*, double** %4
%163 = load i32, i32* %7
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %162, i64 %164
%166 = load double, double* %165
%167 = load double*, double** %4
%168 = load i32, i32* %8
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, double* %167, i64 %169
%171 = load double, double* %170
%172 = fsub double %166, %171
store double %172, double* %21
%173 = load double*, double** %4
%174 = load i32, i32* %7
%175 = add nsw i32 %174, 1
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, double* %173, i64 %176
%178 = load double, double* %177
%179 = load double*, double** %4
%180 = load i32, i32* %8
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %179, i64 %182
%184 = load double, double* %183
%185 = fsub double %178, %184
store double %185, double* %22
%186 = load double, double* %15
%187 = load double, double* %19
%188 = fadd double %186, %187
store double %188, double* %23
%189 = load double, double* %16
%190 = load double, double* %20
%191 = fsub double %189, %190
store double %191, double* %24
%192 = load double, double* %15
%193 = load double, double* %19
%194 = fsub double %192, %193
store double %194, double* %27
%195 = load double, double* %16
%196 = load double, double* %20
%197 = fadd double %195, %196
store double %197, double* %28
%198 = load double, double* %17
%199 = load double, double* %22
%200 = fsub double %198, %199
store double %200, double* %25
%201 = load double, double* %18
%202 = load double, double* %21
%203 = fsub double %201, %202
store double %203, double* %26
%204 = load double, double* %17
%205 = load double, double* %22
%206 = fadd double %204, %205
store double %206, double* %29
%207 = load double, double* %18
%208 = load double, double* %21
%209 = fadd double %207, %208
store double %209, double* %30
%210 = load double*, double** %4
%211 = load i32, i32* %9
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, double* %210, i64 %212
%214 = load double, double* %213
%215 = load double*, double** %4
%216 = load i32, i32* %10
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, double* %215, i64 %217
%219 = load double, double* %218
%220 = fadd double %214, %219
store double %220, double* %15
%221 = load double*, double** %4
%222 = load i32, i32* %9
%223 = add nsw i32 %222, 1
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds double, double* %221, i64 %224
%226 = load double, double* %225
%227 = load double*, double** %4
%228 = load i32, i32* %10
%229 = add nsw i32 %228, 1
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, double* %227, i64 %230
%232 = load double, double* %231
%233 = fadd double %226, %232
store double %233, double* %16
%234 = load double*, double** %4
%235 = load i32, i32* %9
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double, double* %234, i64 %236
%238 = load double, double* %237
%239 = load double*, double** %4
%240 = load i32, i32* %10
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double, double* %239, i64 %241
%243 = load double, double* %242
%244 = fsub double %238, %243
store double %244, double* %17
%245 = load double*, double** %4
%246 = load i32, i32* %9
%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 = load double*, double** %4
%252 = load i32, i32* %10
%253 = add nsw i32 %252, 1
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds double, double* %251, i64 %254
%256 = load double, double* %255
%257 = fsub double %250, %256
store double %257, double* %18
%258 = load double*, double** %4
%259 = load i32, i32* %11
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, double* %258, i64 %260
%262 = load double, double* %261
%263 = load double*, double** %4
%264 = load i32, i32* %12
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, double* %263, i64 %265
%267 = load double, double* %266
%268 = fadd double %262, %267
store double %268, double* %19
%269 = load double*, double** %4
%270 = load i32, i32* %11
%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 = load double*, double** %4
%276 = load i32, i32* %12
%277 = add nsw i32 %276, 1
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds double, double* %275, i64 %278
%280 = load double, double* %279
%281 = fadd double %274, %280
store double %281, double* %20
%282 = load double*, double** %4
%283 = load i32, i32* %11
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %282, i64 %284
%286 = load double, double* %285
%287 = load double*, double** %4
%288 = load i32, i32* %12
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds double, double* %287, i64 %289
%291 = load double, double* %290
%292 = fsub double %286, %291
store double %292, double* %21
%293 = load double*, double** %4
%294 = load i32, i32* %11
%295 = add nsw i32 %294, 1
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds double, double* %293, i64 %296
%298 = load double, double* %297
%299 = load double*, double** %4
%300 = load i32, i32* %12
%301 = add nsw i32 %300, 1
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds double, double* %299, i64 %302
%304 = load double, double* %303
%305 = fsub double %298, %304
store double %305, double* %22
%306 = load double, double* %15
%307 = load double, double* %19
%308 = fadd double %306, %307
store double %308, double* %31
%309 = load double, double* %16
%310 = load double, double* %20
%311 = fadd double %309, %310
store double %311, double* %32
%312 = load double, double* %15
%313 = load double, double* %19
%314 = fsub double %312, %313
store double %314, double* %35
%315 = load double, double* %16
%316 = load double, double* %20
%317 = fsub double %315, %316
store double %317, double* %36
%318 = load double, double* %17
%319 = load double, double* %22
%320 = fsub double %318, %319
store double %320, double* %15
%321 = load double, double* %18
%322 = load double, double* %21
%323 = fadd double %321, %322
store double %323, double* %16
%324 = load double, double* %17
%325 = load double, double* %22
%326 = fadd double %324, %325
store double %326, double* %19
%327 = load double, double* %18
%328 = load double, double* %21
%329 = fsub double %327, %328
store double %329, double* %20
%330 = load double, double* %14
%331 = load double, double* %15
%332 = load double, double* %16
%333 = fsub double %331, %332
%334 = fmul double %330, %333
store double %334, double* %33
%335 = load double, double* %14
%336 = load double, double* %15
%337 = load double, double* %16
%338 = fadd double %336, %337
%339 = fmul double %335, %338
store double %339, double* %34
%340 = load double, double* %14
%341 = load double, double* %19
%342 = load double, double* %20
%343 = fsub double %341, %342
%344 = fmul double %340, %343
store double %344, double* %37
%345 = load double, double* %14
%346 = load double, double* %19
%347 = load double, double* %20
%348 = fadd double %346, %347
%349 = fmul double %345, %348
store double %349, double* %38
%350 = load double, double* %25
%351 = load double, double* %33
%352 = fadd double %350, %351
%353 = load double*, double** %4
%354 = load i32, i32* %6
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds double, double* %353, i64 %355
store double %352, double* %356
%357 = load double, double* %26
%358 = load double, double* %34
%359 = fsub double %357, %358
%360 = load double*, double** %4
%361 = load i32, i32* %6
%362 = add nsw i32 %361, 1
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds double, double* %360, i64 %363
store double %359, double* %364
%365 = load double, double* %25
%366 = load double, double* %33
%367 = fsub double %365, %366
%368 = load double*, double** %4
%369 = load i32, i32* %10
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds double, double* %368, i64 %370
store double %367, double* %371
%372 = load double, double* %26
%373 = load double, double* %34
%374 = fadd double %372, %373
%375 = load double*, double** %4
%376 = load i32, i32* %10
%377 = add nsw i32 %376, 1
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds double, double* %375, i64 %378
store double %374, double* %379
%380 = load double, double* %29
%381 = load double, double* %38
%382 = fsub double %380, %381
%383 = load double*, double** %4
%384 = load i32, i32* %8
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds double, double* %383, i64 %385
store double %382, double* %386
%387 = load double, double* %30
%388 = load double, double* %37
%389 = fsub double %387, %388
%390 = load double*, double** %4
%391 = load i32, i32* %8
%392 = add nsw i32 %391, 1
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double, double* %390, i64 %393
store double %389, double* %394
%395 = load double, double* %29
%396 = load double, double* %38
%397 = fadd double %395, %396
%398 = load double*, double** %4
%399 = load i32, i32* %12
%400 = sext i32 %399 to i64
%401 = getelementptr inbounds double, double* %398, i64 %400
store double %397, double* %401
%402 = load double, double* %30
%403 = load double, double* %37
%404 = fadd double %402, %403
%405 = load double*, double** %4
%406 = load i32, i32* %12
%407 = add nsw i32 %406, 1
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds double, double* %405, i64 %408
store double %404, double* %409
%410 = load double, double* %23
%411 = load double, double* %31
%412 = fadd double %410, %411
%413 = load double*, double** %4
%414 = load i32, i32* %5
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds double, double* %413, i64 %415
store double %412, double* %416
%417 = load double, double* %24
%418 = load double, double* %32
%419 = fsub double %417, %418
%420 = load double*, double** %4
%421 = load i32, i32* %5
%422 = add nsw i32 %421, 1
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds double, double* %420, i64 %423
store double %419, double* %424
%425 = load double, double* %23
%426 = load double, double* %31
%427 = fsub double %425, %426
%428 = load double*, double** %4
%429 = load i32, i32* %9
%430 = sext i32 %429 to i64
%431 = getelementptr inbounds double, double* %428, i64 %430
store double %427, double* %431
%432 = load double, double* %24
%433 = load double, double* %32
%434 = fadd double %432, %433
%435 = load double*, double** %4
%436 = load i32, i32* %9
%437 = add nsw i32 %436, 1
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds double, double* %435, i64 %438
store double %434, double* %439
%440 = load double, double* %27
%441 = load double, double* %36
%442 = fsub double %440, %441
%443 = load double*, double** %4
%444 = load i32, i32* %7
%445 = sext i32 %444 to i64
%446 = getelementptr inbounds double, double* %443, i64 %445
store double %442, double* %446
%447 = load double, double* %28
%448 = load double, double* %35
%449 = fsub double %447, %448
%450 = load double*, double** %4
%451 = load i32, i32* %7
%452 = add nsw i32 %451, 1
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds double, double* %450, i64 %453
store double %449, double* %454
%455 = load double, double* %27
%456 = load double, double* %36
%457 = fadd double %455, %456
%458 = load double*, double** %4
%459 = load i32, i32* %11
%460 = sext i32 %459 to i64
%461 = getelementptr inbounds double, double* %458, i64 %460
store double %457, double* %461
%462 = load double, double* %28
%463 = load double, double* %35
%464 = fadd double %462, %463
%465 = load double*, double** %4
%466 = load i32, i32* %11
%467 = add nsw i32 %466, 1
%468 = sext i32 %467 to i64
%469 = getelementptr inbounds double, double* %465, i64 %468
store double %464, double* %469
br label %470
470: ; preds = %66
%471 = load i32, i32* %5
%472 = add nsw i32 %471, 2
store i32 %472, i32* %5
br label %62
473: ; preds = %62
br label %736
474: ; preds = %56
%475 = load i32, i32* %13
%476 = shl i32 %475, 2
%477 = load i32, i32* %3
%478 = icmp eq i32 %476, %477
br i1 %478, label %479, label %656
479: ; preds = %474
store i32 0, i32* %5
br label %480
480: ; preds = %652, %479
%481 = load i32, i32* %5
%482 = load i32, i32* %13
%483 = icmp slt i32 %481, %482
br i1 %483, label %484, label %655
484: ; preds = %480
%485 = load i32, i32* %5
%486 = load i32, i32* %13
%487 = add nsw i32 %485, %486
store i32 %487, i32* %6
%488 = load i32, i32* %6
%489 = load i32, i32* %13
%490 = add nsw i32 %488, %489
store i32 %490, i32* %7
%491 = load i32, i32* %7
%492 = load i32, i32* %13
%493 = add nsw i32 %491, %492
store i32 %493, i32* %8
%494 = load double*, double** %4
%495 = load i32, i32* %5
%496 = sext i32 %495 to i64
%497 = getelementptr inbounds double, double* %494, i64 %496
%498 = load double, double* %497
%499 = load double*, double** %4
%500 = load i32, i32* %6
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds double, double* %499, i64 %501
%503 = load double, double* %502
%504 = fadd double %498, %503
store double %504, double* %15
%505 = load double*, double** %4
%506 = load i32, i32* %5
%507 = add nsw i32 %506, 1
%508 = sext i32 %507 to i64
%509 = getelementptr inbounds double, double* %505, i64 %508
%510 = load double, double* %509
%511 = fneg double %510
%512 = load double*, double** %4
%513 = load i32, i32* %6
%514 = add nsw i32 %513, 1
%515 = sext i32 %514 to i64
%516 = getelementptr inbounds double, double* %512, i64 %515
%517 = load double, double* %516
%518 = fsub double %511, %517
store double %518, double* %16
%519 = load double*, double** %4
%520 = load i32, i32* %5
%521 = sext i32 %520 to i64
%522 = getelementptr inbounds double, double* %519, i64 %521
%523 = load double, double* %522
%524 = load double*, double** %4
%525 = load i32, i32* %6
%526 = sext i32 %525 to i64
%527 = getelementptr inbounds double, double* %524, i64 %526
%528 = load double, double* %527
%529 = fsub double %523, %528
store double %529, double* %17
%530 = load double*, double** %4
%531 = load i32, i32* %5
%532 = add nsw i32 %531, 1
%533 = sext i32 %532 to i64
%534 = getelementptr inbounds double, double* %530, i64 %533
%535 = load double, double* %534
%536 = fneg double %535
%537 = load double*, double** %4
%538 = load i32, i32* %6
%539 = add nsw i32 %538, 1
%540 = sext i32 %539 to i64
%541 = getelementptr inbounds double, double* %537, i64 %540
%542 = load double, double* %541
%543 = fadd double %536, %542
store double %543, double* %18
%544 = load double*, double** %4
%545 = load i32, i32* %7
%546 = sext i32 %545 to i64
%547 = getelementptr inbounds double, double* %544, i64 %546
%548 = load double, double* %547
%549 = load double*, double** %4
%550 = load i32, i32* %8
%551 = sext i32 %550 to i64
%552 = getelementptr inbounds double, double* %549, i64 %551
%553 = load double, double* %552
%554 = fadd double %548, %553
store double %554, double* %19
%555 = load double*, double** %4
%556 = load i32, i32* %7
%557 = add nsw i32 %556, 1
%558 = sext i32 %557 to i64
%559 = getelementptr inbounds double, double* %555, i64 %558
%560 = load double, double* %559
%561 = load double*, double** %4
%562 = load i32, i32* %8
%563 = add nsw i32 %562, 1
%564 = sext i32 %563 to i64
%565 = getelementptr inbounds double, double* %561, i64 %564
%566 = load double, double* %565
%567 = fadd double %560, %566
store double %567, double* %20
%568 = load double*, double** %4
%569 = load i32, i32* %7
%570 = sext i32 %569 to i64
%571 = getelementptr inbounds double, double* %568, i64 %570
%572 = load double, double* %571
%573 = load double*, double** %4
%574 = load i32, i32* %8
%575 = sext i32 %574 to i64
%576 = getelementptr inbounds double, double* %573, i64 %575
%577 = load double, double* %576
%578 = fsub double %572, %577
store double %578, double* %21
%579 = load double*, double** %4
%580 = load i32, i32* %7
%581 = add nsw i32 %580, 1
%582 = sext i32 %581 to i64
%583 = getelementptr inbounds double, double* %579, i64 %582
%584 = load double, double* %583
%585 = load double*, double** %4
%586 = load i32, i32* %8
%587 = add nsw i32 %586, 1
%588 = sext i32 %587 to i64
%589 = getelementptr inbounds double, double* %585, i64 %588
%590 = load double, double* %589
%591 = fsub double %584, %590
store double %591, double* %22
%592 = load double, double* %15
%593 = load double, double* %19
%594 = fadd double %592, %593
%595 = load double*, double** %4
%596 = load i32, i32* %5
%597 = sext i32 %596 to i64
%598 = getelementptr inbounds double, double* %595, i64 %597
store double %594, double* %598
%599 = load double, double* %16
%600 = load double, double* %20
%601 = fsub double %599, %600
%602 = load double*, double** %4
%603 = load i32, i32* %5
%604 = add nsw i32 %603, 1
%605 = sext i32 %604 to i64
%606 = getelementptr inbounds double, double* %602, i64 %605
store double %601, double* %606
%607 = load double, double* %15
%608 = load double, double* %19
%609 = fsub double %607, %608
%610 = load double*, double** %4
%611 = load i32, i32* %7
%612 = sext i32 %611 to i64
%613 = getelementptr inbounds double, double* %610, i64 %612
store double %609, double* %613
%614 = load double, double* %16
%615 = load double, double* %20
%616 = fadd double %614, %615
%617 = load double*, double** %4
%618 = load i32, i32* %7
%619 = add nsw i32 %618, 1
%620 = sext i32 %619 to i64
%621 = getelementptr inbounds double, double* %617, i64 %620
store double %616, double* %621
%622 = load double, double* %17
%623 = load double, double* %22
%624 = fsub double %622, %623
%625 = load double*, double** %4
%626 = load i32, i32* %6
%627 = sext i32 %626 to i64
%628 = getelementptr inbounds double, double* %625, i64 %627
store double %624, double* %628
%629 = load double, double* %18
%630 = load double, double* %21
%631 = fsub double %629, %630
%632 = load double*, double** %4
%633 = load i32, i32* %6
%634 = add nsw i32 %633, 1
%635 = sext i32 %634 to i64
%636 = getelementptr inbounds double, double* %632, i64 %635
store double %631, double* %636
%637 = load double, double* %17
%638 = load double, double* %22
%639 = fadd double %637, %638
%640 = load double*, double** %4
%641 = load i32, i32* %8
%642 = sext i32 %641 to i64
%643 = getelementptr inbounds double, double* %640, i64 %642
store double %639, double* %643
%644 = load double, double* %18
%645 = load double, double* %21
%646 = fadd double %644, %645
%647 = load double*, double** %4
%648 = load i32, i32* %8
%649 = add nsw i32 %648, 1
%650 = sext i32 %649 to i64
%651 = getelementptr inbounds double, double* %647, i64 %650
store double %646, double* %651
br label %652
652: ; preds = %484
%653 = load i32, i32* %5
%654 = add nsw i32 %653, 2
store i32 %654, i32* %5
br label %480
655: ; preds = %480
br label %735
656: ; preds = %474
store i32 0, i32* %5
br label %657
657: ; preds = %731, %656
%658 = load i32, i32* %5
%659 = load i32, i32* %13
%660 = icmp slt i32 %658, %659
br i1 %660, label %661, label %734
661: ; preds = %657
%662 = load i32, i32* %5
%663 = load i32, i32* %13
%664 = add nsw i32 %662, %663
store i32 %664, i32* %6
%665 = load double*, double** %4
%666 = load i32, i32* %5
%667 = sext i32 %666 to i64
%668 = getelementptr inbounds double, double* %665, i64 %667
%669 = load double, double* %668
%670 = load double*, double** %4
%671 = load i32, i32* %6
%672 = sext i32 %671 to i64
%673 = getelementptr inbounds double, double* %670, i64 %672
%674 = load double, double* %673
%675 = fsub double %669, %674
store double %675, double* %15
%676 = load double*, double** %4
%677 = load i32, i32* %5
%678 = add nsw i32 %677, 1
%679 = sext i32 %678 to i64
%680 = getelementptr inbounds double, double* %676, i64 %679
%681 = load double, double* %680
%682 = fneg double %681
%683 = load double*, double** %4
%684 = load i32, i32* %6
%685 = add nsw i32 %684, 1
%686 = sext i32 %685 to i64
%687 = getelementptr inbounds double, double* %683, i64 %686
%688 = load double, double* %687
%689 = fadd double %682, %688
store double %689, double* %16
%690 = load double*, double** %4
%691 = load i32, i32* %6
%692 = sext i32 %691 to i64
%693 = getelementptr inbounds double, double* %690, i64 %692
%694 = load double, double* %693
%695 = load double*, double** %4
%696 = load i32, i32* %5
%697 = sext i32 %696 to i64
%698 = getelementptr inbounds double, double* %695, i64 %697
%699 = load double, double* %698
%700 = fadd double %699, %694
store double %700, double* %698
%701 = load double*, double** %4
%702 = load i32, i32* %5
%703 = add nsw i32 %702, 1
%704 = sext i32 %703 to i64
%705 = getelementptr inbounds double, double* %701, i64 %704
%706 = load double, double* %705
%707 = fneg double %706
%708 = load double*, double** %4
%709 = load i32, i32* %6
%710 = add nsw i32 %709, 1
%711 = sext i32 %710 to i64
%712 = getelementptr inbounds double, double* %708, i64 %711
%713 = load double, double* %712
%714 = fsub double %707, %713
%715 = load double*, double** %4
%716 = load i32, i32* %5
%717 = add nsw i32 %716, 1
%718 = sext i32 %717 to i64
%719 = getelementptr inbounds double, double* %715, i64 %718
store double %714, double* %719
%720 = load double, double* %15
%721 = load double*, double** %4
%722 = load i32, i32* %6
%723 = sext i32 %722 to i64
%724 = getelementptr inbounds double, double* %721, i64 %723
store double %720, double* %724
%725 = load double, double* %16
%726 = load double*, double** %4
%727 = load i32, i32* %6
%728 = add nsw i32 %727, 1
%729 = sext i32 %728 to i64
%730 = getelementptr inbounds double, double* %726, i64 %729
store double %725, double* %730
br label %731
731: ; preds = %661
%732 = load i32, i32* %5
%733 = add nsw i32 %732, 2
store i32 %733, i32* %5
br label %657
734: ; preds = %657
br label %735
735: ; preds = %734, %655
br label %736
736: ; preds = %735, %473
ret void
}

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