void lsx_dfct(int n, double *a, double *t, int *ip, double *w) {
  int j, k, l, m, mh, nw, nc;
  double xr, xi, yr, yi;
  if (n > 262144)
    return;
  nw = ip[0];
  if (n > (nw << 3)) {
    nw = n >> 3;
    makewt(nw, ip, w);
  }
  nc = ip[1];
  if (n > (nc << 1)) {
    nc = n >> 1;
    makect(nc, ip, w + nw);
  }
  m = n >> 1;
  yi = a[m];
  xi = a[0] + a[n];
  a[0] -= a[n];
  t[0] = xi - yi;
  t[m] = xi + yi;
  if (n > 2) {
    mh = m >> 1;
    for (j = 1; j < mh; j++) {
      k = m - j;
      xr = a[j] - a[n - j];
      xi = a[j] + a[n - j];
      yr = a[k] - a[n - k];
      yi = a[k] + a[n - k];
      a[j] = xr;
      a[k] = yr;
      t[j] = xi - yi;
      t[k] = xi + yi;
    }
    t[mh] = a[mh] + a[n - mh];
    a[mh] -= a[n - mh];
    dctsub(m, a, nc, w + nw);
    if (m > 4) {
      bitrv2(m, ip + 2, a);
      cftfsub(m, a, w);
      rftfsub(m, a, nc, w + nw);
    } else if (m == 4) {
      cftfsub(m, a, w);
    }
    a[n - 1] = a[0] - a[1];
    a[1] = a[0] + a[1];
    for (j = m - 2; j >= 2; j -= 2) {
      a[2 * j + 1] = a[j] + a[j + 1];
      a[2 * j - 1] = a[j] - a[j + 1];
    }
    l = 2;
    m = mh;
    while (m >= 2) {
      dctsub(m, t, nc, w + nw);
      if (m > 4) {
        bitrv2(m, ip + 2, t);
        cftfsub(m, t, w);
        rftfsub(m, t, nc, w + nw);
      } else if (m == 4) {
        cftfsub(m, t, w);
      }
      a[n - l] = t[0] - t[1];
      a[l] = t[0] + t[1];
      k = 0;
      for (j = 2; j < m; j += 2) {
        k += l << 2;
        a[k - l] = t[j] - t[j + 1];
        a[k + l] = t[j] + t[j + 1];
      }
      l <<= 1;
      mh = m >> 1;
      for (j = 0; j < mh; j++) {
        k = m - j;
        t[j] = t[m + k] - t[m + j];
        t[k] = t[m + k] + t[m + j];
      }
      t[mh] = t[m + mh];
      m = mh;
    }
    a[l] = t[0];
    a[n] = t[2] - t[1];
    a[0] = t[2] + t[1];
  } else {
    a[1] = a[0];
    a[2] = t[0];
    a[0] = t[1];
  }
}


x86 assembly (clang, -O0):
<lsx_dfct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpl   $0x40000,-0x4(%rbp)
jle    118d <lsx_dfct+0x2d>
jmp    1823 <lsx_dfct+0x6c3>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x40(%rbp),%ecx
shl    $0x3,%ecx
cmp    %ecx,%eax
jle    11c2 <lsx_dfct+0x62>
mov    -0x4(%rbp),%eax
sar    $0x3,%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1040 <makewt@plt>
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x44(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jle    1203 <lsx_dfct+0xa3>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    $0x0,%al
call   1070 <makect@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
cmpl   $0x2,-0x4(%rbp)
jle    17f0 <lsx_dfct+0x690>
mov    -0x38(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    139d <lsx_dfct+0x23d>
mov    -0x38(%rbp),%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x30(%rbp),%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x30(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1298 <lsx_dfct+0x138>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    $0x0,%al
call   1030 <dctsub@plt>
cmpl   $0x4,-0x38(%rbp)
jle    1468 <lsx_dfct+0x308>
mov    -0x38(%rbp),%edi
mov    -0x20(%rbp),%rsi
add    $0x8,%rsi
mov    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1060 <bitrv2@plt>
mov    -0x38(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <cftfsub@plt>
mov    -0x38(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    $0x0,%al
call   1050 <rftfsub@plt>
jmp    1489 <lsx_dfct+0x329>
cmpl   $0x4,-0x38(%rbp)
jne    1484 <lsx_dfct+0x324>
mov    -0x38(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <cftfsub@plt>
jmp    1489 <lsx_dfct+0x329>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
addsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jl     154f <lsx_dfct+0x3ef>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    14cf <lsx_dfct+0x36f>
movl   $0x2,-0x34(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jl     179d <lsx_dfct+0x63d>
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    $0x0,%al
call   1030 <dctsub@plt>
cmpl   $0x4,-0x38(%rbp)
jle    15dd <lsx_dfct+0x47d>
mov    -0x38(%rbp),%edi
mov    -0x20(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1060 <bitrv2@plt>
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <cftfsub@plt>
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x28(%rbp),%rcx
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    $0x0,%al
call   1050 <rftfsub@plt>
jmp    15fe <lsx_dfct+0x49e>
cmpl   $0x4,-0x38(%rbp)
jne    15f9 <lsx_dfct+0x499>
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <cftfsub@plt>
jmp    15fe <lsx_dfct+0x49e>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
addsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x30(%rbp)
movl   $0x2,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    16d5 <lsx_dfct+0x575>
mov    -0x34(%rbp),%eax
shl    $0x2,%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    164d <lsx_dfct+0x4ed>
mov    -0x34(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1773 <lsx_dfct+0x613>
mov    -0x38(%rbp),%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    16ee <lsx_dfct+0x58e>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    155c <lsx_dfct+0x3fc>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
addsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1823 <lsx_dfct+0x6c3>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lsx_dfct>:
cmp    $0x40000,%edi
jg     185c <lsx_dfct+0x6fc>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,%r12
mov    %rcx,%rbp
mov    %rdx,%rbx
mov    %rsi,%r14
mov    (%rcx),%r13d
lea    0x0(,%r13,8),%eax
cmp    %edi,%eax
mov    %rdi,0x8(%rsp)
jge    11b6 <lsx_dfct+0x56>
mov    %edi,%r13d
sar    $0x3,%r13d
mov    %r13d,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <makewt@plt>
mov    0x8(%rsp),%rdi
mov    0x4(%rbp),%eax
mov    %rax,0x10(%rsp)
add    %eax,%eax
mov    %edi,%r15d
sar    %r15d
cmp    %edi,%eax
jge    11eb <lsx_dfct+0x8b>
movslq %r13d,%rax
lea    (%r12,%rax,8),%rdx
mov    %r15d,%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <makect@plt>
mov    0x8(%rsp),%rdi
mov    %r15d,%eax
mov    %rax,0x10(%rsp)
movslq %r15d,%rax
movsd  (%r14,%rax,8),%xmm0
movsd  (%r14),%xmm1
movslq %edi,%rcx
movsd  (%r14,%rcx,8),%xmm2
movapd %xmm1,%xmm3
addsd  %xmm2,%xmm3
subsd  %xmm2,%xmm1
movsd  %xmm1,(%r14)
movapd %xmm3,%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx)
addsd  %xmm0,%xmm3
movsd  %xmm3,(%rbx,%rax,8)
cmp    $0x3,%edi
jl     1392 <lsx_dfct+0x232>
mov    %rcx,0x28(%rsp)
mov    %rbp,0x20(%rsp)
mov    %r12,0x30(%rsp)
mov    %edi,%r12d
shr    $0x2,%r12d
cmp    $0x8,%edi
jb     12f6 <lsx_dfct+0x196>
cmp    $0x3,%r12d
mov    $0x2,%ebp
cmovae %r12d,%ebp
mov    0x28(%rsp),%rcx
lea    (%r14,%rcx,8),%r10
mov    $0x1,%ecx
mov    $0x1,%edx
sub    %rax,%rdx
lea    (%r14,%rax,8),%rsi
add    $0xfffffffffffffff8,%rsi
lea    (%rbx,%rax,8),%r8
add    $0xfffffffffffffff8,%r8
lea    -0x8(,%rbp,8),%r9
ff
xor    %eax,%eax
nopl   (%rax)
movsd  (%r14,%rcx,8),%xmm0
movsd  -0x8(%r10,%rax,1),%xmm1
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
addsd  %xmm1,%xmm0
movsd  (%rsi,%rax,1),%xmm1
movsd  (%r10,%rdx,8),%xmm3
movapd %xmm1,%xmm4
subsd  %xmm3,%xmm4
addsd  %xmm3,%xmm1
movsd  %xmm2,(%r14,%rcx,8)
movsd  %xmm4,(%rsi,%rax,1)
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rcx,8)
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r8,%rax,1)
add    $0x1,%rcx
add    $0xfffffffffffffff8,%rax
add    $0x1,%rdx
mov    %r9,%rbp
add    %rax,%rbp
jne    1290 <lsx_dfct+0x130>
mov    %r12d,%eax
movsd  (%r14,%rax,8),%xmm0
mov    %edi,%ecx
sub    %r12d,%ecx
movslq %ecx,%rcx
addsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  (%r14,%rax,8),%xmm0
subsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rax,8)
movslq %r13d,%rax
mov    0x30(%rsp),%r13
lea    0x0(%r13,%rax,8),%rbp
mov    %r15d,%edi
mov    %r14,%rsi
mov    0x10(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <dctsub@plt>
mov    0x8(%rsp),%rdi
cmp    $0xa,%edi
mov    %rbp,0x40(%rsp)
jl     13b1 <lsx_dfct+0x251>
mov    0x20(%rsp),%rax
lea    0x8(%rax),%rsi
mov    %r15d,%edi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <bitrv2@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <cftfsub@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    0x10(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1050 <rftfsub@plt>
jmp    13c9 <lsx_dfct+0x269>
movsd  (%r14),%xmm0
movsd  %xmm0,0x8(%r14)
movsd  (%rbx),%xmm0
movsd  %xmm0,0x10(%r14)
movsd  0x8(%rbx),%xmm0
jmp    1849 <lsx_dfct+0x6e9>
cmp    $0x4,%r15d
jne    13ce <lsx_dfct+0x26e>
mov    $0x4,%edi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <cftfsub@plt>
mov    0x8(%rsp),%rdi
movsd  (%r14),%xmm0
subsd  0x8(%r14),%xmm0
lea    -0x1(%rdi),%eax
movsd  %xmm0,(%r14,%rax,8)
movsd  (%r14),%xmm0
addsd  0x8(%r14),%xmm0
movsd  %xmm0,0x8(%r14)
cmp    $0x8,%edi
jl     1448 <lsx_dfct+0x2e8>
mov    %r15d,%eax
add    $0x2,%eax
lea    (%r15,%r15,1),%ecx
add    $0xfffffffb,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x4(%rax),%edx
movsd  (%r14,%rdx,8),%xmm0
lea    -0x3(%rax),%edx
movsd  (%r14,%rdx,8),%xmm1
addsd  %xmm0,%xmm1
lea    0x2(%rcx),%esi
movsd  %xmm1,(%r14,%rsi,8)
subsd  (%r14,%rdx,8),%xmm0
mov    %ecx,%edx
movsd  %xmm0,(%r14,%rdx,8)
add    $0xfffffffe,%eax
add    $0xfffffffc,%ecx
cmp    $0x5,%eax
jg     1410 <lsx_dfct+0x2b0>
mov    $0x2,%eax
cmp    $0x8,%edi
jb     1820 <lsx_dfct+0x6c0>
addq   $0x8,0x20(%rsp)
lea    0x8(%rbx),%rax
mov    %rax,0x38(%rsp)
movl   $0x2,0x4(%rsp)
jmp    1490 <lsx_dfct+0x330>
nop
lea    (%r12,%r15,1),%eax
movsd  (%rbx,%rax,8),%xmm0
mov    %r12d,%eax
movsd  %xmm0,(%rbx,%rax,8)
cmp    $0x3,%r15d
mov    0x30(%rsp),%r13
jbe    181b <lsx_dfct+0x6bb>
mov    %r12d,%r15d
mov    %r12d,%edi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbp
mov    %ebp,%edx
mov    0x40(%rsp),%r12
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <dctsub@plt>
cmp    $0x5,%r15d
jb     1500 <lsx_dfct+0x3a0>
mov    %r15d,%edi
mov    0x20(%rsp),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <bitrv2@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <cftfsub@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1050 <rftfsub@plt>
mov    0x8(%rsp),%rax
mov    0x4(%rsp),%r12d
jmp    1527 <lsx_dfct+0x3c7>
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x4,%r15d
mov    0x8(%rsp),%rax
mov    0x4(%rsp),%r12d
jne    1527 <lsx_dfct+0x3c7>
mov    $0x4,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <cftfsub@plt>
mov    0x8(%rsp),%rax
movsd  (%rbx),%xmm0
subsd  0x8(%rbx),%xmm0
sub    %r12d,%eax
cltq
movsd  %xmm0,(%r14,%rax,8)
movsd  (%rbx),%xmm0
addsd  0x8(%rbx),%xmm0
movslq %r12d,%rax
movsd  %xmm0,(%r14,%rax,8)
mov    %r15d,%ecx
cmp    $0x3,%r15d
jb     15ac <lsx_dfct+0x44c>
lea    0x0(,%rax,4),%edx
movslq %edx,%rbp
lea    (%r14,%rax,8),%rdx
shl    $0x3,%rax
mov    %r14,%rsi
sub    %rax,%rsi
mov    $0x2,%edi
mov    %rbp,%rax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%rdi,8),%xmm0
subsd  0x8(%rbx,%rdi,8),%xmm0
movsd  %xmm0,(%rsi,%rax,8)
movsd  (%rbx,%rdi,8),%xmm0
addsd  0x8(%rbx,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rax,8)
add    $0x2,%rdi
add    %rbp,%rax
cmp    %rcx,%rdi
jb     1580 <lsx_dfct+0x420>
add    %r12d,%r12d
mov    %r12d,0x4(%rsp)
mov    %r15d,%r12d
shr    %r12d
cmp    $0x1,%r15d
jbe    180a <lsx_dfct+0x6aa>
cmp    $0x2,%r12d
mov    $0x1,%esi
cmovae %r12d,%esi
cmp    $0x2,%esi
jae    16a0 <lsx_dfct+0x540>
xor    %eax,%eax
mov    %rax,%rdx
test   $0x1,%sil
je     1617 <lsx_dfct+0x4b7>
mov    %rcx,%rdx
sub    %rax,%rdx
lea    (%rdx,%rcx,1),%rdi
movsd  (%rbx,%rdi,8),%xmm0
lea    (%rax,%rcx,1),%rbp
movsd  (%rbx,%rbp,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rax,8)
addsd  (%rbx,%rdi,8),%xmm1
movsd  %xmm1,(%rbx,%rdx,8)
mov    %rax,%rdx
or     $0x1,%rdx
not    %rax
add    %rsi,%rax
je     1470 <lsx_dfct+0x310>
lea    (%rdx,%rcx,1),%rax
add    $0x1,%rax
mov    %rcx,%rdi
sub    %rdx,%rdi
shl    $0x4,%rcx
lea    0x0(,%rdx,8),%rbp
sub    %rbp,%rcx
movsd  (%rbx,%rcx,1),%xmm0
movsd  -0x8(%rbx,%rax,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rdx,8)
addsd  (%rbx,%rcx,1),%xmm1
movsd  %xmm1,(%rbx,%rdi,8)
movsd  -0x8(%rbx,%rcx,1),%xmm0
movsd  (%rbx,%rax,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rbx,%rdx,8)
addsd  -0x8(%rbx,%rcx,1),%xmm1
movsd  %xmm1,-0x8(%rbx,%rdi,8)
add    $0x2,%rdx
add    $0x2,%rax
add    $0xfffffffffffffffe,%rdi
add    $0xfffffffffffffff0,%rcx
cmp    %rdx,%rsi
jne    1640 <lsx_dfct+0x4e0>
jmp    1470 <lsx_dfct+0x310>
nopl   0x0(%rax)
lea    -0x1(%rsi),%rax
mov    $0x8,%edx
mul    %rdx
lea    (%rbx,%rcx,8),%r8
seto   %dl
mov    %r8,%rdi
sub    %rax,%rdi
cmp    %r8,%rdi
ja     15da <lsx_dfct+0x47a>
test   %dl,%dl
jne    15da <lsx_dfct+0x47a>
mov    %rcx,%rbp
shl    $0x4,%rbp
lea    (%rbx,%rbp,1),%r10
mov    %r10,%rdi
sub    %rax,%rdi
cmp    %r10,%rdi
ja     15da <lsx_dfct+0x47a>
mov    $0x0,%eax
test   %dl,%dl
jne    15dc <lsx_dfct+0x47c>
mov    0x38(%rsp),%rdx
cmp    %rbx,%rdx
seta   (%rsp)
lea    (%rbx,%rsi,8),%rdi
lea    (%rcx,%rsi,1),%rax
lea    (%rbx,%rax,8),%r11
mov    %r11,0x18(%rsp)
mov    %rcx,%rax
sub    %rsi,%rax
lea    (%rdx,%rax,8),%r9
lea    (%rdx,%rcx,8),%r13
lea    (%rcx,%rcx,1),%rax
sub    %rsi,%rax
add    %rdx,%rbp
cmp    %rbx,%r11
seta   0x3(%rsp)
lea    (%rdx,%rax,8),%rdx
cmp    %rdi,%r8
setb   0x2(%rsp)
cmp    %rbx,%r13
seta   %al
cmp    %rdi,%r9
setb   0x1(%rsp)
cmp    %rbx,%rbp
seta   %r11b
cmp    %rdi,%rdx
setb   %dil
cmp    0x18(%rsp),%r9
setb   0x18(%rsp)
cmp    %rbp,%r9
setb   %r9b
cmp    %r13,%rdx
setb   %bpl
mov    0x2(%rsp),%dl
test   %dl,0x3(%rsp)
jne    15da <lsx_dfct+0x47a>
and    0x1(%rsp),%al
jne    15da <lsx_dfct+0x47a>
and    %dil,%r11b
jne    15da <lsx_dfct+0x47a>
mov    0x18(%rsp),%al
and    %al,(%rsp)
jne    15da <lsx_dfct+0x47a>
mov    $0x0,%eax
and    %bpl,%r9b
jne    15dc <lsx_dfct+0x47c>
mov    %esi,%eax
and    $0x1ffffffe,%eax
mov    $0xfffffffffffffff8,%rbp
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movupd (%r10,%rbp,1),%xmm0
shufpd $0x1,%xmm0,%xmm0
movupd (%r8,%rdx,8),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,(%rbx,%rdx,8)
movupd (%r10,%rbp,1),%xmm0
shufpd $0x1,%xmm1,%xmm1
addpd  %xmm0,%xmm1
movupd %xmm1,(%r8,%rbp,1)
add    $0x2,%rdx
add    $0xfffffffffffffff0,%rbp
cmp    %rdx,%rax
jne    17c0 <lsx_dfct+0x660>
cmp    %rsi,%rax
je     1470 <lsx_dfct+0x310>
jmp    15dc <lsx_dfct+0x47c>
add    %r12d,%r15d
movsd  (%rbx,%r15,8),%xmm0
mov    %r12d,%eax
movsd  %xmm0,(%rbx,%rax,8)
movslq 0x4(%rsp),%rax
movsd  (%rbx),%xmm0
movsd  %xmm0,(%r14,%rax,8)
movsd  0x10(%rbx),%xmm0
subsd  0x8(%rbx),%xmm0
mov    0x28(%rsp),%rax
movsd  %xmm0,(%r14,%rax,8)
movsd  0x10(%rbx),%xmm0
addsd  0x8(%rbx),%xmm0
movsd  %xmm0,(%r14)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @lsx_dfct(i32 %0, double* %1, double* %2, i32* %3, double* %4) {
%6 = alloca i32
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
store i32 %0, i32* %6
store double* %1, double** %7
store double* %2, double** %8
store i32* %3, i32** %9
store double* %4, double** %10
%22 = load i32, i32* %6
%23 = icmp sgt i32 %22, 262144
br i1 %23, label %24, label %25
24: ; preds = %5
br label %550
25: ; preds = %5
%26 = load i32*, i32** %9
%27 = getelementptr inbounds i32, i32* %26, i64 0
%28 = load i32, i32* %27
store i32 %28, i32* %16
%29 = load i32, i32* %6
%30 = load i32, i32* %16
%31 = shl i32 %30, 3
%32 = icmp sgt i32 %29, %31
br i1 %32, label %33, label %40
33: ; preds = %25
%34 = load i32, i32* %6
%35 = ashr i32 %34, 3
store i32 %35, i32* %16
%36 = load i32, i32* %16
%37 = load i32*, i32** %9
%38 = load double*, double** %10
%39 = call i32 (i32, i32*, double*, ...) bitcast (i32 (...)* @makewt to i32 (i32, i32*, double*, ...)*)(i32 %36, i32* %37, double* %38)
br label %40
40: ; preds = %33, %25
%41 = load i32*, i32** %9
%42 = getelementptr inbounds i32, i32* %41, i64 1
%43 = load i32, i32* %42
store i32 %43, i32* %17
%44 = load i32, i32* %6
%45 = load i32, i32* %17
%46 = shl i32 %45, 1
%47 = icmp sgt i32 %44, %46
br i1 %47, label %48, label %58
48: ; preds = %40
%49 = load i32, i32* %6
%50 = ashr i32 %49, 1
store i32 %50, i32* %17
%51 = load i32, i32* %17
%52 = load i32*, i32** %9
%53 = load double*, double** %10
%54 = load i32, i32* %16
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
%57 = call i32 (i32, i32*, double*, ...) bitcast (i32 (...)* @makect to i32 (i32, i32*, double*, ...)*)(i32 %51, i32* %52, double* %56)
br label %58
58: ; preds = %48, %40
%59 = load i32, i32* %6
%60 = ashr i32 %59, 1
store i32 %60, i32* %14
%61 = load double*, double** %7
%62 = load i32, i32* %14
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
store double %65, double* %21
%66 = load double*, double** %7
%67 = getelementptr inbounds double, double* %66, i64 0
%68 = load double, double* %67
%69 = load double*, double** %7
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
%73 = load double, double* %72
%74 = fadd double %68, %73
store double %74, double* %19
%75 = load double*, double** %7
%76 = load i32, i32* %6
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
%79 = load double, double* %78
%80 = load double*, double** %7
%81 = getelementptr inbounds double, double* %80, i64 0
%82 = load double, double* %81
%83 = fsub double %82, %79
store double %83, double* %81
%84 = load double, double* %19
%85 = load double, double* %21
%86 = fsub double %84, %85
%87 = load double*, double** %8
%88 = getelementptr inbounds double, double* %87, i64 0
store double %86, double* %88
%89 = load double, double* %19
%90 = load double, double* %21
%91 = fadd double %89, %90
%92 = load double*, double** %8
%93 = load i32, i32* %14
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
store double %91, double* %95
%96 = load i32, i32* %6
%97 = icmp sgt i32 %96, 2
br i1 %97, label %98, label %534
98: ; preds = %58
%99 = load i32, i32* %14
%100 = ashr i32 %99, 1
store i32 %100, i32* %15
store i32 1, i32* %11
br label %101
101: ; preds = %185, %98
%102 = load i32, i32* %11
%103 = load i32, i32* %15
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %188
105: ; preds = %101
%106 = load i32, i32* %14
%107 = load i32, i32* %11
%108 = sub nsw i32 %106, %107
store i32 %108, i32* %12
%109 = load double*, double** %7
%110 = load i32, i32* %11
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = load double*, double** %7
%115 = load i32, i32* %6
%116 = load i32, i32* %11
%117 = sub nsw i32 %115, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %114, i64 %118
%120 = load double, double* %119
%121 = fsub double %113, %120
store double %121, double* %18
%122 = load double*, double** %7
%123 = load i32, i32* %11
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, double* %122, i64 %124
%126 = load double, double* %125
%127 = load double*, double** %7
%128 = load i32, i32* %6
%129 = load i32, i32* %11
%130 = sub nsw i32 %128, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %127, i64 %131
%133 = load double, double* %132
%134 = fadd double %126, %133
store double %134, double* %19
%135 = load double*, double** %7
%136 = load i32, i32* %12
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = load double*, double** %7
%141 = load i32, i32* %6
%142 = load i32, i32* %12
%143 = sub nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %140, i64 %144
%146 = load double, double* %145
%147 = fsub double %139, %146
store double %147, double* %20
%148 = load double*, double** %7
%149 = load i32, i32* %12
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds double, double* %148, i64 %150
%152 = load double, double* %151
%153 = load double*, double** %7
%154 = load i32, i32* %6
%155 = load i32, i32* %12
%156 = sub nsw i32 %154, %155
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %153, i64 %157
%159 = load double, double* %158
%160 = fadd double %152, %159
store double %160, double* %21
%161 = load double, double* %18
%162 = load double*, double** %7
%163 = load i32, i32* %11
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %162, i64 %164
store double %161, double* %165
%166 = load double, double* %20
%167 = load double*, double** %7
%168 = load i32, i32* %12
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, double* %167, i64 %169
store double %166, double* %170
%171 = load double, double* %19
%172 = load double, double* %21
%173 = fsub double %171, %172
%174 = load double*, double** %8
%175 = load i32, i32* %11
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, double* %174, i64 %176
store double %173, double* %177
%178 = load double, double* %19
%179 = load double, double* %21
%180 = fadd double %178, %179
%181 = load double*, double** %8
%182 = load i32, i32* %12
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %181, i64 %183
store double %180, double* %184
br label %185
185: ; preds = %105
%186 = load i32, i32* %11
%187 = add nsw i32 %186, 1
store i32 %187, i32* %11
br label %101
188: ; preds = %101
%189 = load double*, double** %7
%190 = load i32, i32* %15
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds double, double* %189, i64 %191
%193 = load double, double* %192
%194 = load double*, double** %7
%195 = load i32, i32* %6
%196 = load i32, i32* %15
%197 = sub nsw i32 %195, %196
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, double* %194, i64 %198
%200 = load double, double* %199
%201 = fadd double %193, %200
%202 = load double*, double** %8
%203 = load i32, i32* %15
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, double* %202, i64 %204
store double %201, double* %205
%206 = load double*, double** %7
%207 = load i32, i32* %6
%208 = load i32, i32* %15
%209 = sub nsw i32 %207, %208
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, double* %206, i64 %210
%212 = load double, double* %211
%213 = load double*, double** %7
%214 = load i32, i32* %15
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, double* %213, i64 %215
%217 = load double, double* %216
%218 = fsub double %217, %212
store double %218, double* %216
%219 = load i32, i32* %14
%220 = load double*, double** %7
%221 = load i32, i32* %17
%222 = load double*, double** %10
%223 = load i32, i32* %16
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds double, double* %222, i64 %224
%226 = call i32 (i32, double*, i32, double*, ...) bitcast (i32 (...)* @dctsub to i32 (i32, double*, i32, double*, ...)*)(i32 %219, double* %220, i32 %221, double* %225)
%227 = load i32, i32* %14
%228 = icmp sgt i32 %227, 4
br i1 %228, label %229, label %247
229: ; preds = %188
%230 = load i32, i32* %14
%231 = load i32*, i32** %9
%232 = getelementptr inbounds i32, i32* %231, i64 2
%233 = load double*, double** %7
%234 = call i32 (i32, i32*, double*, ...) bitcast (i32 (...)* @bitrv2 to i32 (i32, i32*, double*, ...)*)(i32 %230, i32* %232, double* %233)
%235 = load i32, i32* %14
%236 = load double*, double** %7
%237 = load double*, double** %10
%238 = call i32 (i32, double*, double*, ...) bitcast (i32 (...)* @cftfsub to i32 (i32, double*, double*, ...)*)(i32 %235, double* %236, double* %237)
%239 = load i32, i32* %14
%240 = load double*, double** %7
%241 = load i32, i32* %17
%242 = load double*, double** %10
%243 = load i32, i32* %16
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %242, i64 %244
%246 = call i32 (i32, double*, i32, double*, ...) bitcast (i32 (...)* @rftfsub to i32 (i32, double*, i32, double*, ...)*)(i32 %239, double* %240, i32 %241, double* %245)
br label %256
247: ; preds = %188
%248 = load i32, i32* %14
%249 = icmp eq i32 %248, 4
br i1 %249, label %250, label %255
250: ; preds = %247
%251 = load i32, i32* %14
%252 = load double*, double** %7
%253 = load double*, double** %10
%254 = call i32 (i32, double*, double*, ...) bitcast (i32 (...)* @cftfsub to i32 (i32, double*, double*, ...)*)(i32 %251, double* %252, double* %253)
br label %255
255: ; preds = %250, %247
br label %256
256: ; preds = %255, %229
%257 = load double*, double** %7
%258 = getelementptr inbounds double, double* %257, i64 0
%259 = load double, double* %258
%260 = load double*, double** %7
%261 = getelementptr inbounds double, double* %260, i64 1
%262 = load double, double* %261
%263 = fsub double %259, %262
%264 = load double*, double** %7
%265 = load i32, i32* %6
%266 = sub nsw i32 %265, 1
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds double, double* %264, i64 %267
store double %263, double* %268
%269 = load double*, double** %7
%270 = getelementptr inbounds double, double* %269, i64 0
%271 = load double, double* %270
%272 = load double*, double** %7
%273 = getelementptr inbounds double, double* %272, i64 1
%274 = load double, double* %273
%275 = fadd double %271, %274
%276 = load double*, double** %7
%277 = getelementptr inbounds double, double* %276, i64 1
store double %275, double* %277
%278 = load i32, i32* %14
%279 = sub nsw i32 %278, 2
store i32 %279, i32* %11
br label %280
280: ; preds = %320, %256
%281 = load i32, i32* %11
%282 = icmp sge i32 %281, 2
br i1 %282, label %283, label %323
283: ; preds = %280
%284 = load double*, double** %7
%285 = load i32, i32* %11
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, double* %284, i64 %286
%288 = load double, double* %287
%289 = load double*, double** %7
%290 = load i32, i32* %11
%291 = add nsw i32 %290, 1
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double, double* %289, i64 %292
%294 = load double, double* %293
%295 = fadd double %288, %294
%296 = load double*, double** %7
%297 = load i32, i32* %11
%298 = mul nsw i32 2, %297
%299 = add nsw i32 %298, 1
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds double, double* %296, i64 %300
store double %295, double* %301
%302 = load double*, double** %7
%303 = load i32, i32* %11
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds double, double* %302, i64 %304
%306 = load double, double* %305
%307 = load double*, double** %7
%308 = load i32, i32* %11
%309 = add nsw i32 %308, 1
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds double, double* %307, i64 %310
%312 = load double, double* %311
%313 = fsub double %306, %312
%314 = load double*, double** %7
%315 = load i32, i32* %11
%316 = mul nsw i32 2, %315
%317 = sub nsw i32 %316, 1
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds double, double* %314, i64 %318
store double %313, double* %319
br label %320
320: ; preds = %283
%321 = load i32, i32* %11
%322 = sub nsw i32 %321, 2
store i32 %322, i32* %11
br label %280
323: ; preds = %280
store i32 2, i32* %13
%324 = load i32, i32* %15
store i32 %324, i32* %14
br label %325
325: ; preds = %493, %323
%326 = load i32, i32* %14
%327 = icmp sge i32 %326, 2
br i1 %327, label %328, label %506
328: ; preds = %325
%329 = load i32, i32* %14
%330 = load double*, double** %8
%331 = load i32, i32* %17
%332 = load double*, double** %10
%333 = load i32, i32* %16
%334 = sext i32 %333 to i64
%335 = getelementptr inbounds double, double* %332, i64 %334
%336 = call i32 (i32, double*, i32, double*, ...) bitcast (i32 (...)* @dctsub to i32 (i32, double*, i32, double*, ...)*)(i32 %329, double* %330, i32 %331, double* %335)
%337 = load i32, i32* %14
%338 = icmp sgt i32 %337, 4
br i1 %338, label %339, label %357
339: ; preds = %328
%340 = load i32, i32* %14
%341 = load i32*, i32** %9
%342 = getelementptr inbounds i32, i32* %341, i64 2
%343 = load double*, double** %8
%344 = call i32 (i32, i32*, double*, ...) bitcast (i32 (...)* @bitrv2 to i32 (i32, i32*, double*, ...)*)(i32 %340, i32* %342, double* %343)
%345 = load i32, i32* %14
%346 = load double*, double** %8
%347 = load double*, double** %10
%348 = call i32 (i32, double*, double*, ...) bitcast (i32 (...)* @cftfsub to i32 (i32, double*, double*, ...)*)(i32 %345, double* %346, double* %347)
%349 = load i32, i32* %14
%350 = load double*, double** %8
%351 = load i32, i32* %17
%352 = load double*, double** %10
%353 = load i32, i32* %16
%354 = sext i32 %353 to i64
%355 = getelementptr inbounds double, double* %352, i64 %354
%356 = call i32 (i32, double*, i32, double*, ...) bitcast (i32 (...)* @rftfsub to i32 (i32, double*, i32, double*, ...)*)(i32 %349, double* %350, i32 %351, double* %355)
br label %366
357: ; preds = %328
%358 = load i32, i32* %14
%359 = icmp eq i32 %358, 4
br i1 %359, label %360, label %365
360: ; preds = %357
%361 = load i32, i32* %14
%362 = load double*, double** %8
%363 = load double*, double** %10
%364 = call i32 (i32, double*, double*, ...) bitcast (i32 (...)* @cftfsub to i32 (i32, double*, double*, ...)*)(i32 %361, double* %362, double* %363)
br label %365
365: ; preds = %360, %357
br label %366
366: ; preds = %365, %339
%367 = load double*, double** %8
%368 = getelementptr inbounds double, double* %367, i64 0
%369 = load double, double* %368
%370 = load double*, double** %8
%371 = getelementptr inbounds double, double* %370, i64 1
%372 = load double, double* %371
%373 = fsub double %369, %372
%374 = load double*, double** %7
%375 = load i32, i32* %6
%376 = load i32, i32* %13
%377 = sub nsw i32 %375, %376
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds double, double* %374, i64 %378
store double %373, double* %379
%380 = load double*, double** %8
%381 = getelementptr inbounds double, double* %380, i64 0
%382 = load double, double* %381
%383 = load double*, double** %8
%384 = getelementptr inbounds double, double* %383, i64 1
%385 = load double, double* %384
%386 = fadd double %382, %385
%387 = load double*, double** %7
%388 = load i32, i32* %13
%389 = sext i32 %388 to i64
%390 = getelementptr inbounds double, double* %387, i64 %389
store double %386, double* %390
store i32 0, i32* %12
store i32 2, i32* %11
br label %391
391: ; preds = %436, %366
%392 = load i32, i32* %11
%393 = load i32, i32* %14
%394 = icmp slt i32 %392, %393
br i1 %394, label %395, label %439
395: ; preds = %391
%396 = load i32, i32* %13
%397 = shl i32 %396, 2
%398 = load i32, i32* %12
%399 = add nsw i32 %398, %397
store i32 %399, i32* %12
%400 = load double*, double** %8
%401 = load i32, i32* %11
%402 = sext i32 %401 to i64
%403 = getelementptr inbounds double, double* %400, i64 %402
%404 = load double, double* %403
%405 = load double*, double** %8
%406 = load i32, i32* %11
%407 = add nsw i32 %406, 1
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds double, double* %405, i64 %408
%410 = load double, double* %409
%411 = fsub double %404, %410
%412 = load double*, double** %7
%413 = load i32, i32* %12
%414 = load i32, i32* %13
%415 = sub nsw i32 %413, %414
%416 = sext i32 %415 to i64
%417 = getelementptr inbounds double, double* %412, i64 %416
store double %411, double* %417
%418 = load double*, double** %8
%419 = load i32, i32* %11
%420 = sext i32 %419 to i64
%421 = getelementptr inbounds double, double* %418, i64 %420
%422 = load double, double* %421
%423 = load double*, double** %8
%424 = load i32, i32* %11
%425 = add nsw i32 %424, 1
%426 = sext i32 %425 to i64
%427 = getelementptr inbounds double, double* %423, i64 %426
%428 = load double, double* %427
%429 = fadd double %422, %428
%430 = load double*, double** %7
%431 = load i32, i32* %12
%432 = load i32, i32* %13
%433 = add nsw i32 %431, %432
%434 = sext i32 %433 to i64
%435 = getelementptr inbounds double, double* %430, i64 %434
store double %429, double* %435
br label %436
436: ; preds = %395
%437 = load i32, i32* %11
%438 = add nsw i32 %437, 2
store i32 %438, i32* %11
br label %391
439: ; preds = %391
%440 = load i32, i32* %13
%441 = shl i32 %440, 1
store i32 %441, i32* %13
%442 = load i32, i32* %14
%443 = ashr i32 %442, 1
store i32 %443, i32* %15
store i32 0, i32* %11
br label %444
444: ; preds = %490, %439
%445 = load i32, i32* %11
%446 = load i32, i32* %15
%447 = icmp slt i32 %445, %446
br i1 %447, label %448, label %493
448: ; preds = %444
%449 = load i32, i32* %14
%450 = load i32, i32* %11
%451 = sub nsw i32 %449, %450
store i32 %451, i32* %12
%452 = load double*, double** %8
%453 = load i32, i32* %14
%454 = load i32, i32* %12
%455 = add nsw i32 %453, %454
%456 = sext i32 %455 to i64
%457 = getelementptr inbounds double, double* %452, i64 %456
%458 = load double, double* %457
%459 = load double*, double** %8
%460 = load i32, i32* %14
%461 = load i32, i32* %11
%462 = add nsw i32 %460, %461
%463 = sext i32 %462 to i64
%464 = getelementptr inbounds double, double* %459, i64 %463
%465 = load double, double* %464
%466 = fsub double %458, %465
%467 = load double*, double** %8
%468 = load i32, i32* %11
%469 = sext i32 %468 to i64
%470 = getelementptr inbounds double, double* %467, i64 %469
store double %466, double* %470
%471 = load double*, double** %8
%472 = load i32, i32* %14
%473 = load i32, i32* %12
%474 = add nsw i32 %472, %473
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds double, double* %471, i64 %475
%477 = load double, double* %476
%478 = load double*, double** %8
%479 = load i32, i32* %14
%480 = load i32, i32* %11
%481 = add nsw i32 %479, %480
%482 = sext i32 %481 to i64
%483 = getelementptr inbounds double, double* %478, i64 %482
%484 = load double, double* %483
%485 = fadd double %477, %484
%486 = load double*, double** %8
%487 = load i32, i32* %12
%488 = sext i32 %487 to i64
%489 = getelementptr inbounds double, double* %486, i64 %488
store double %485, double* %489
br label %490
490: ; preds = %448
%491 = load i32, i32* %11
%492 = add nsw i32 %491, 1
store i32 %492, i32* %11
br label %444
493: ; preds = %444
%494 = load double*, double** %8
%495 = load i32, i32* %14
%496 = load i32, i32* %15
%497 = add nsw i32 %495, %496
%498 = sext i32 %497 to i64
%499 = getelementptr inbounds double, double* %494, i64 %498
%500 = load double, double* %499
%501 = load double*, double** %8
%502 = load i32, i32* %15
%503 = sext i32 %502 to i64
%504 = getelementptr inbounds double, double* %501, i64 %503
store double %500, double* %504
%505 = load i32, i32* %15
store i32 %505, i32* %14
br label %325
506: ; preds = %325
%507 = load double*, double** %8
%508 = getelementptr inbounds double, double* %507, i64 0
%509 = load double, double* %508
%510 = load double*, double** %7
%511 = load i32, i32* %13
%512 = sext i32 %511 to i64
%513 = getelementptr inbounds double, double* %510, i64 %512
store double %509, double* %513
%514 = load double*, double** %8
%515 = getelementptr inbounds double, double* %514, i64 2
%516 = load double, double* %515
%517 = load double*, double** %8
%518 = getelementptr inbounds double, double* %517, i64 1
%519 = load double, double* %518
%520 = fsub double %516, %519
%521 = load double*, double** %7
%522 = load i32, i32* %6
%523 = sext i32 %522 to i64
%524 = getelementptr inbounds double, double* %521, i64 %523
store double %520, double* %524
%525 = load double*, double** %8
%526 = getelementptr inbounds double, double* %525, i64 2
%527 = load double, double* %526
%528 = load double*, double** %8
%529 = getelementptr inbounds double, double* %528, i64 1
%530 = load double, double* %529
%531 = fadd double %527, %530
%532 = load double*, double** %7
%533 = getelementptr inbounds double, double* %532, i64 0
store double %531, double* %533
br label %550
534: ; preds = %58
%535 = load double*, double** %7
%536 = getelementptr inbounds double, double* %535, i64 0
%537 = load double, double* %536
%538 = load double*, double** %7
%539 = getelementptr inbounds double, double* %538, i64 1
store double %537, double* %539
%540 = load double*, double** %8
%541 = getelementptr inbounds double, double* %540, i64 0
%542 = load double, double* %541
%543 = load double*, double** %7
%544 = getelementptr inbounds double, double* %543, i64 2
store double %542, double* %544
%545 = load double*, double** %8
%546 = getelementptr inbounds double, double* %545, i64 1
%547 = load double, double* %546
%548 = load double*, double** %7
%549 = getelementptr inbounds double, double* %548, i64 0
store double %547, double* %549
br label %550
550: ; preds = %24, %534, %506
ret void
}

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