void inv_mdct(in, out, block_type) double in[18];
double out[36];
int block_type;
{
  int k, i, m, N, p;
  double tmp[12], sum;
  static double win[4][36];
  static int init = 0;
  static double COS[4 * 36];
  if (init == 0) {
    for (i = 0; i < 36; i++)
      win[0][i] = sin(3.14159265358979 / 36 * (i + 0.5));
    for (i = 0; i < 18; i++)
      win[1][i] = sin(3.14159265358979 / 36 * (i + 0.5));
    for (i = 18; i < 24; i++)
      win[1][i] = 1.0;
    for (i = 24; i < 30; i++)
      win[1][i] = sin(3.14159265358979 / 12 * (i + 0.5 - 18));
    for (i = 30; i < 36; i++)
      win[1][i] = 0.0;
    for (i = 0; i < 6; i++)
      win[3][i] = 0.0;
    for (i = 6; i < 12; i++)
      win[3][i] = sin(3.14159265358979 / 12 * (i + 0.5 - 6));
    for (i = 12; i < 18; i++)
      win[3][i] = 1.0;
    for (i = 18; i < 36; i++)
      win[3][i] = sin(3.14159265358979 / 36 * (i + 0.5));
    for (i = 0; i < 12; i++)
      win[2][i] = sin(3.14159265358979 / 12 * (i + 0.5));
    for (i = 12; i < 36; i++)
      win[2][i] = 0.0;
    for (i = 0; i < 4 * 36; i++)
      COS[i] = cos(3.14159265358979 / (2 * 36) * i);
    init++;
  }
  for (i = 0; i < 36; i++)
    out[i] = 0;
  if (block_type == 2) {
    N = 12;
    for (i = 0; i < 3; i++) {
      for (p = 0; p < N; p++) {
        sum = 0.0;
        for (m = 0; m < N / 2; m++)
          sum += in[i + 3 * m] * cos(3.14159265358979 / (2 * N) *
                                     (2 * p + 1 + N / 2) * (2 * m + 1));
        tmp[p] = sum * win[block_type][p];
      }
      for (p = 0; p < N; p++)
        out[6 * i + p + 6] += tmp[p];
    }
  } else {
    N = 36;
    for (p = 0; p < N; p++) {
      sum = 0.0;
      for (m = 0; m < N / 2; m++)
        sum += in[m] * COS[((2 * p + 1 + N / 2) * (2 * m + 1)) % (4 * 36)];
      out[p] = sum * win[block_type][p];
    }
  }
}


x86 assembly (clang, -O0):
<inv_mdct>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0x0,0x3383(%rip)
jne    14c4 <inv_mdct+0x3a4>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x24,-0x1c(%rbp)
jge    1194 <inv_mdct+0x74>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xeb7(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xeb3(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2ebf(%rip),%rax
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    114a <inv_mdct+0x2a>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x12,-0x1c(%rbp)
jge    11e9 <inv_mdct+0xc9>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xe66(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe62(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2e6e(%rip),%rax
movsd  %xmm0,0x120(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119b <inv_mdct+0x7b>
movl   $0x12,-0x1c(%rbp)
cmpl   $0x18,-0x1c(%rbp)
jge    1224 <inv_mdct+0x104>
movslq -0x1c(%rbp),%rcx
lea    0x2e3b(%rip),%rax
movsd  0xe1b(%rip),%xmm0
movsd  %xmm0,0x120(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11f0 <inv_mdct+0xd0>
movl   $0x18,-0x1c(%rbp)
cmpl   $0x1e,-0x1c(%rbp)
jge    1285 <inv_mdct+0x165>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xdd6(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xdea(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xdb6(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2dd2(%rip),%rax
movsd  %xmm0,0x120(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    122b <inv_mdct+0x10b>
movl   $0x1e,-0x1c(%rbp)
cmpl   $0x24,-0x1c(%rbp)
jge    12bb <inv_mdct+0x19b>
movslq -0x1c(%rbp),%rcx
lea    0x2d9f(%rip),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x120(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    128c <inv_mdct+0x16c>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x6,-0x1c(%rbp)
jge    12f1 <inv_mdct+0x1d1>
movslq -0x1c(%rbp),%rcx
lea    0x2d69(%rip),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x360(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12c2 <inv_mdct+0x1a2>
movl   $0x6,-0x1c(%rbp)
cmpl   $0xc,-0x1c(%rbp)
jge    1352 <inv_mdct+0x232>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xd09(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xd15(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xce9(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2d05(%rip),%rax
movsd  %xmm0,0x360(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12f8 <inv_mdct+0x1d8>
movl   $0xc,-0x1c(%rbp)
cmpl   $0x12,-0x1c(%rbp)
jge    138d <inv_mdct+0x26d>
movslq -0x1c(%rbp),%rcx
lea    0x2cd2(%rip),%rax
movsd  0xcb2(%rip),%xmm0
movsd  %xmm0,0x360(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1359 <inv_mdct+0x239>
movl   $0x12,-0x1c(%rbp)
cmpl   $0x24,-0x1c(%rbp)
jge    13e2 <inv_mdct+0x2c2>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xc6d(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xc69(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2c75(%rip),%rax
movsd  %xmm0,0x360(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1394 <inv_mdct+0x274>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xc,-0x1c(%rbp)
jge    1437 <inv_mdct+0x317>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xc18(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xc04(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2c20(%rip),%rax
movsd  %xmm0,0x240(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13e9 <inv_mdct+0x2c9>
movl   $0xc,-0x1c(%rbp)
cmpl   $0x24,-0x1c(%rbp)
jge    146d <inv_mdct+0x34d>
movslq -0x1c(%rbp),%rcx
lea    0x2bed(%rip),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x240(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    143e <inv_mdct+0x31e>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x90,-0x1c(%rbp)
jge    14b5 <inv_mdct+0x395>
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xb7a(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <cos@plt>
movslq -0x1c(%rbp),%rcx
lea    0x302e(%rip),%rax
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1474 <inv_mdct+0x354>
mov    0x3005(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ffc(%rip)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x24,-0x1c(%rbp)
jge    14f3 <inv_mdct+0x3d3>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    14cb <inv_mdct+0x3ab>
cmpl   $0x2,-0x14(%rbp)
jne    16a6 <inv_mdct+0x586>
movl   $0xc,-0x24(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    16a1 <inv_mdct+0x581>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1645 <inv_mdct+0x525>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x9c(%rbp),%eax
cmp    %ecx,%eax
jge    1604 <inv_mdct+0x4e4>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   $0x3,-0x20(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xa73(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xac(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    153a <inv_mdct+0x41a>
movsd  -0x98(%rbp),%xmm0
ff
movslq -0x14(%rbp),%rcx
lea    0x2a29(%rip),%rax
imul   $0x120,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movslq -0x28(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    151c <inv_mdct+0x3fc>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    168e <inv_mdct+0x56e>
movslq -0x28(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
imul   $0x6,-0x1c(%rbp),%ecx
add    -0x28(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    164c <inv_mdct+0x52c>
jmp    1693 <inv_mdct+0x573>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    150b <inv_mdct+0x3eb>
jmp    17b6 <inv_mdct+0x696>
movl   $0x24,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    17b1 <inv_mdct+0x691>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
cmp    %ecx,%eax
jge    1770 <inv_mdct+0x650>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb4(%rbp),%eax
add    %ecx,%eax
mov    -0x20(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    $0x90,%ecx
cltd
idiv   %ecx
movslq %edx,%rcx
lea    0x2d8b(%rip),%rax
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    16d2 <inv_mdct+0x5b2>
movsd  -0x98(%rbp),%xmm0
ff
movslq -0x14(%rbp),%rcx
lea    0x28bd(%rip),%rax
imul   $0x120,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    16b4 <inv_mdct+0x594>
jmp    17b6 <inv_mdct+0x696>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inv_mdct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %edx,%r15d
mov    %rdi,%r14
cmpl   $0x0,0x3382(%rip)
mov    %rsi,0x18(%rsp)
jne    14c1 <inv_mdct+0x391>
xor    %ebx,%ebx
lea    0x2eee(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  0xe81(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe7d(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x0(%rbp,%rbx,8)
lea    0x1(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0xe54(%rip),%xmm0
mulsd  0xe54(%rip),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x8(%rbp,%rbx,8)
lea    0x2(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0xe2f(%rip),%xmm0
mulsd  0xe2f(%rip),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x10(%rbp,%rbx,8)
add    $0x3,%rbx
cmp    $0x24,%rbx
jne    1170 <inv_mdct+0x40>
movaps 0xe5b(%rip),%xmm0
movaps %xmm0,0x2f74(%rip)
movaps 0xe5d(%rip),%xmm0
movaps %xmm0,0x2f76(%rip)
movaps 0xe5f(%rip),%xmm0
movaps %xmm0,0x2f78(%rip)
movaps 0xe61(%rip),%xmm0
movaps %xmm0,0x2f7a(%rip)
movaps 0xe63(%rip),%xmm0
movaps %xmm0,0x2f7c(%rip)
movaps 0xe65(%rip),%xmm0
movaps %xmm0,0x2f7e(%rip)
movaps 0xe67(%rip),%xmm0
movaps %xmm0,0x2f80(%rip)
movaps 0xe69(%rip),%xmm0
movaps %xmm0,0x2f82(%rip)
movapd 0xe6a(%rip),%xmm0
movapd %xmm0,0x2f82(%rip)
movaps 0xe6b(%rip),%xmm4
movaps %xmm4,0x2f84(%rip)
movaps %xmm4,0x2f8d(%rip)
movaps %xmm4,0x2f96(%rip)
movapd 0xe5e(%rip),%xmm1
movapd %xmm1,0x2f96(%rip)
movapd 0xe5e(%rip),%xmm2
movapd %xmm2,0x2f96(%rip)
movapd 0xe5e(%rip),%xmm3
movapd %xmm3,0x2f96(%rip)
xorpd  %xmm0,%xmm0
movapd %xmm0,0x2f9a(%rip)
movapd %xmm0,0x2fa2(%rip)
movapd %xmm0,0x2faa(%rip)
movapd %xmm0,0x30f2(%rip)
movapd %xmm0,0x30da(%rip)
movapd %xmm0,0x30c2(%rip)
movaps 0xe2b(%rip),%xmm5
movaps %xmm5,0x30e4(%rip)
movaps 0xe2d(%rip),%xmm6
movaps %xmm6,0x30e6(%rip)
movaps 0xe2f(%rip),%xmm7
movaps %xmm7,0x30e8(%rip)
movaps %xmm4,0x30f1(%rip)
movaps %xmm4,0x30fa(%rip)
movaps %xmm4,0x3103(%rip)
movaps 0xe1c(%rip),%xmm4
movaps %xmm4,0x3105(%rip)
movaps 0xe1e(%rip),%xmm4
movaps %xmm4,0x3107(%rip)
movaps 0xe20(%rip),%xmm4
movaps %xmm4,0x3109(%rip)
movaps 0xe22(%rip),%xmm4
movaps %xmm4,0x310b(%rip)
movaps 0xe24(%rip),%xmm4
movaps %xmm4,0x310d(%rip)
movaps 0xe26(%rip),%xmm4
movaps %xmm4,0x310f(%rip)
movaps 0xe28(%rip),%xmm4
movaps %xmm4,0x3111(%rip)
movaps 0xe2a(%rip),%xmm4
movaps %xmm4,0x3113(%rip)
movapd 0xe2b(%rip),%xmm4
movapd %xmm4,0x3113(%rip)
movaps %xmm5,0x2edc(%rip)
movaps %xmm6,0x2ee5(%rip)
movaps %xmm7,0x2eee(%rip)
movapd %xmm1,0x2ef6(%rip)
movapd %xmm2,0x2efe(%rip)
movapd %xmm3,0x2f06(%rip)
movapd %xmm0,0x2fbe(%rip)
movapd %xmm0,0x2fa6(%rip)
movapd %xmm0,0x2f8e(%rip)
movapd %xmm0,0x2f76(%rip)
movapd %xmm0,0x2f5e(%rip)
movapd %xmm0,0x2f46(%rip)
movapd %xmm0,0x2f2e(%rip)
movapd %xmm0,0x2f16(%rip)
movapd %xmm0,0x2efe(%rip)
movapd %xmm0,0x2ee6(%rip)
movapd %xmm0,0x2ece(%rip)
movapd %xmm0,0x2eb6(%rip)
xor    %ebx,%ebx
lea    0x309d(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  0xbb1(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x0(%rbp,%rbx,8)
lea    0x1(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xb90(%rip),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x8(%rbp,%rbx,8)
lea    0x2(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xb73(%rip),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x10(%rbp,%rbx,8)
add    $0x3,%rbx
cmp    $0x90,%rbx
jne    1450 <inv_mdct+0x320>
addl   $0x1,0x3014(%rip)
mov    0x18(%rsp),%rsi
mov    $0x120,%edx
mov    %rsi,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
cmp    $0x2,%r15d
jne    16e0 <inv_mdct+0x5b0>
xor    %ebp,%ebp
movsd  0xb34(%rip),%xmm4
lea    0x2b65(%rip),%r15
nopl   0x0(%rax,%rax,1)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x7(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%r14,%rbp,8),%xmm1
movsd  %xmm1,(%rsp)
call   1050 <cos@plt>
mulsd  (%rsp),%xmm0
addsd  0xb17(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%r14,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xacf(%rip),%xmm0
call   1050 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x30(%r14,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xaa7(%rip),%xmm0
call   1050 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x48(%r14,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xa7f(%rip),%xmm0
call   1050 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x60(%r14,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xa57(%rip),%xmm0
call   1050 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x78(%r14,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xa2f(%rip),%xmm0
call   1050 <cos@plt>
movsd  0x9fa(%rip),%xmm4
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
mulsd  0x240(%r15,%rbx,4),%xmm0
movsd  %xmm0,0x20(%rsp,%rbx,4)
add    $0x2,%rbx
cmp    $0x18,%rbx
jne    1500 <inv_mdct+0x3d0>
lea    0x0(,%rbp,2),%rax
add    %rbp,%rax
shl    $0x4,%rax
mov    0x18(%rsp),%rcx
movupd 0x30(%rax,%rcx,1),%xmm0
movupd 0x40(%rax,%rcx,1),%xmm1
movupd 0x50(%rax,%rcx,1),%xmm2
addpd  0x20(%rsp),%xmm0
movupd 0x60(%rax,%rcx,1),%xmm3
movupd %xmm0,0x30(%rax,%rcx,1)
addpd  0x30(%rsp),%xmm1
movupd %xmm1,0x40(%rax,%rcx,1)
addpd  0x40(%rsp),%xmm2
movupd %xmm2,0x50(%rax,%rcx,1)
addpd  0x50(%rsp),%xmm3
movupd %xmm3,0x60(%rax,%rcx,1)
movupd 0x70(%rax,%rcx,1),%xmm0
addpd  0x60(%rsp),%xmm0
movupd %xmm0,0x70(%rax,%rcx,1)
movupd 0x80(%rax,%rcx,1),%xmm0
addpd  0x70(%rsp),%xmm0
movupd %xmm0,0x80(%rax,%rcx,1)
add    $0x1,%rbp
cmp    $0x3,%rbp
jne    14f0 <inv_mdct+0x3c0>
jmp    17f4 <inv_mdct+0x6c4>
movslq %r15d,%rax
mov    %rax,0x8(%rsp)
lea    0x2fb9(%rip),%r9
mov    $0x260,%edi
mov    $0x39,%esi
mov    $0x4c,%ebp
lea    0x2e73(%rip),%r8
mov    $0x13,%r15d
xor    %r12d,%r12d
movabs $0xe38e38e38e38e38f,%r13
38 8e e3
nopl   0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm0
mov    $0x1,%ebx
mov    %r15,%rcx
mov    %r8,%r11
mov    %rsi,(%rsp)
mov    %r9,0x10(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %rsi,%rax
mul    %r13
and    $0xffffffffffffff80,%rdx
lea    (%rdx,%rdx,8),%r10
neg    %r10
mov    %rcx,%rax
mul    %r13
and    $0xffffffffffffff80,%rdx
lea    (%rdx,%rdx,8),%rax
neg    %rax
movsd  -0x8(%r14,%rbx,8),%xmm1
movsd  (%r14,%rbx,8),%xmm2
mulsd  (%r11,%rax,1),%xmm1
mulsd  (%r9,%r10,1),%xmm2
addsd  %xmm0,%xmm1
movapd %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x2,%rbx
add    %rdi,%r9
add    %rbp,%rsi
add    %rdi,%r11
add    %rbp,%rcx
cmp    $0x13,%rbx
jne    1740 <inv_mdct+0x610>
mov    0x8(%rsp),%rax
lea    (%rax,%rax,8),%rax
shl    $0x5,%rax
lea    0x289f(%rip),%rcx
add    %rcx,%rax
mulsd  (%rax,%r12,8),%xmm0
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%r12,8)
add    $0x1,%r12
mov    0x10(%rsp),%r9
add    $0x30,%r9
add    $0x40,%rdi
mov    (%rsp),%rsi
add    $0x6,%rsi
add    $0x8,%rbp
add    $0x10,%r8
add    $0x2,%r15
cmp    $0x24,%r12
jne    1720 <inv_mdct+0x5f0>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@inv_mdct.win = internal unnamed_addr global [4 x [36 x double]] zeroinitializer
@inv_mdct.init = internal unnamed_addr global i32 0
@inv_mdct.COS = internal unnamed_addr global [144 x double] zeroinitializer
define void @inv_mdct(double* nocapture %0, double* nocapture %1, i32 %2) {
%4 = bitcast double* %1 to i8*
%5 = alloca [12 x double]
%6 = bitcast [12 x double]* %5 to i8*
%7 = load i32, i32* @inv_mdct.init
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %58
9: ; preds = %3, %9
%10 = phi i64 [ %31, %9 ], [ 0, %3 ]
%11 = trunc i64 %10 to i32
%12 = sitofp i32 %11 to double
%13 = fadd double %12, 5.000000e-01
%14 = fmul double %13, 0x3FB657184AE74481
%15 = tail call double @sin(double %14)
%16 = getelementptr inbounds [4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 0, i64 %10
store double %15, double* %16
%17 = add nuw nsw i64 %10, 1
%18 = trunc i64 %17 to i32
%19 = sitofp i32 %18 to double
%20 = fadd double %19, 5.000000e-01
%21 = fmul double %20, 0x3FB657184AE74481
%22 = tail call double @sin(double %21)
%23 = getelementptr inbounds [4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 0, i64 %17
store double %22, double* %23
%24 = add nuw nsw i64 %10, 2
%25 = trunc i64 %24 to i32
%26 = sitofp i32 %25 to double
%27 = fadd double %26, 5.000000e-01
%28 = fmul double %27, 0x3FB657184AE74481
%29 = tail call double @sin(double %28)
%30 = getelementptr inbounds [4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 0, i64 %24
store double %29, double* %30
%31 = add nuw nsw i64 %10, 3
%32 = icmp eq i64 %31, 36
br i1 %32, label %33, label %9
33: ; preds = %9
store <2 x double> <double 0x3FA65547C4694E0B, double 0x3FC0B5150F6DA2CC>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 0) to <2 x double>*)
store <2 x double> <double 0x3FCBB44B13B62569, double 0x3FD33EC389A5A819>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 2) to <2 x double>*)
store <2 x double> <double 0x3FD87DE2A6AEA95C, double 0x3FDD8D4A0E345730>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 4) to <2 x double>*)
store <2 x double> <double 0x3FE1318EF2C01A56, double 0x3FE37AF93F9513E5>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 6) to <2 x double>*)
store <2 x double> <double 0x3FE59E6F5AE6A0A2, double 0x3FE797C6A435CE7F>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 8) to <2 x double>*)
store <2 x double> <double 0x3FE963268B57248D, double 0x3FEAFD100EAFC28B>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 10) to <2 x double>*)
store <2 x double> <double 0x3FEC62648AF6576D, double 0x3FED906BCF328D42>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 12) to <2 x double>*)
store <2 x double> <double 0x3FEE84D9692357DD, double 0x3FEF3DD11FB974B3>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 14) to <2 x double>*)
store <2 x double> <double 0x3FEFB9EA92EC689A, double 0x3FEFF833F9DA45F6>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 16) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 18) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 20) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 22) to <2 x double>*)
store <2 x double> <double 0x3FEFB9EA92EC689D, double 0x3FED906BCF328D4D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 24) to <2 x double>*)
store <2 x double> <double 0x3FE963268B57249E, double 0x3FE37AF93F9513FB>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 26) to <2 x double>*)
store <2 x double> <double 0x3FD87DE2A6AEA991, double 0x3FC0B5150F6DA33F>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 1, i64 28) to <2 x double>*)
store <2 x double> <double 0x3FC0B5150F6DA2CC, double 0x3FD87DE2A6AEA95D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 6) to <2 x double>*)
store <2 x double> <double 0x3FE37AF93F9513E5, double 0x3FE963268B57248D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 8) to <2 x double>*)
store <2 x double> <double 0x3FED906BCF328D42, double 0x3FEFB9EA92EC689A>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 10) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 12) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 14) to <2 x double>*)
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 16) to <2 x double>*)
store <2 x double> <double 0x3FEFF833F9DA45F7, double 0x3FEFB9EA92EC689D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 18) to <2 x double>*)
store <2 x double> <double 0x3FEF3DD11FB974BA, double 0x3FEE84D9692357E6>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 20) to <2 x double>*)
store <2 x double> <double 0x3FED906BCF328D4D, double 0x3FEC62648AF65779>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 22) to <2 x double>*)
store <2 x double> <double 0x3FEAFD100EAFC29A, double 0x3FE963268B57249E>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 24) to <2 x double>*)
store <2 x double> <double 0x3FE797C6A435CE92, double 0x3FE59E6F5AE6A0B7>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 26) to <2 x double>*)
store <2 x double> <double 0x3FE37AF93F9513FB, double 0x3FE1318EF2C01A6E>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 28) to <2 x double>*)
store <2 x double> <double 0x3FDD8D4A0E345763, double 0x3FD87DE2A6AEA991>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 30) to <2 x double>*)
store <2 x double> <double 0x3FD33EC389A5A84F, double 0x3FCBB44B13B625DA>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 32) to <2 x double>*)
store <2 x double> <double 0x3FC0B5150F6DA33F, double 0x3FA65547C4694FDB>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 3, i64 34) to <2 x double>*)
store <2 x double> <double 0x3FC0B5150F6DA2CC, double 0x3FD87DE2A6AEA95D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 0) to <2 x double>*)
store <2 x double> <double 0x3FE37AF93F9513E5, double 0x3FE963268B57248D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 2) to <2 x double>*)
store <2 x double> <double 0x3FED906BCF328D42, double 0x3FEFB9EA92EC689A>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 4) to <2 x double>*)
store <2 x double> <double 0x3FEFB9EA92EC689D, double 0x3FED906BCF328D4D>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 6) to <2 x double>*)
store <2 x double> <double 0x3FE963268B57249E, double 0x3FE37AF93F9513FB>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 8) to <2 x double>*)
store <2 x double> <double 0x3FD87DE2A6AEA991, double 0x3FC0B5150F6DA33F>, <2 x double>* bitcast (double* getelementptr inbounds ([4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 10) to <2 x double>*)
br label %34
34: ; preds = %34, %33
%35 = phi i64 [ 0, %33 ], [ %53, %34 ]
%36 = trunc i64 %35 to i32
%37 = sitofp i32 %36 to double
%38 = fmul double %37, 0x3FA657184AE74481
%39 = tail call double @cos(double %38)
%40 = getelementptr inbounds [144 x double], [144 x double]* @inv_mdct.COS, i64 0, i64 %35
store double %39, double* %40
%41 = add nuw nsw i64 %35, 1
%42 = trunc i64 %41 to i32
%43 = sitofp i32 %42 to double
%44 = fmul double %43, 0x3FA657184AE74481
%45 = tail call double @cos(double %44)
%46 = getelementptr inbounds [144 x double], [144 x double]* @inv_mdct.COS, i64 0, i64 %41
store double %45, double* %46
%47 = add nuw nsw i64 %35, 2
%48 = trunc i64 %47 to i32
%49 = sitofp i32 %48 to double
%50 = fmul double %49, 0x3FA657184AE74481
%51 = tail call double @cos(double %50)
%52 = getelementptr inbounds [144 x double], [144 x double]* @inv_mdct.COS, i64 0, i64 %47
store double %51, double* %52
%53 = add nuw nsw i64 %35, 3
%54 = icmp eq i64 %53, 144
br i1 %54, label %55, label %34
55: ; preds = %34
%56 = load i32, i32* @inv_mdct.init
%57 = add nsw i32 %56, 1
store i32 %57, i32* @inv_mdct.init
br label %58
58: ; preds = %55, %3
%59 = icmp eq i32 %2, 2
br i1 %59, label %60, label %72
60: ; preds = %58
%61 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 2
%62 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 4
%63 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 6
%64 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 8
%65 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 10
%66 = bitcast [12 x double]* %5 to <2 x double>*
%67 = bitcast double* %61 to <2 x double>*
%68 = bitcast double* %62 to <2 x double>*
%69 = bitcast double* %63 to <2 x double>*
%70 = bitcast double* %64 to <2 x double>*
%71 = bitcast double* %65 to <2 x double>*
br label %74
72: ; preds = %58
%73 = sext i32 %2 to i64
br label %169
74: ; preds = %60, %87
%75 = phi i64 [ 0, %60 ], [ %131, %87 ]
%76 = getelementptr inbounds double, double* %0, i64 %75
%77 = add nuw nsw i64 %75, 3
%78 = getelementptr inbounds double, double* %0, i64 %77
%79 = add nuw nsw i64 %75, 6
%80 = getelementptr inbounds double, double* %0, i64 %79
%81 = add nuw nsw i64 %75, 9
%82 = getelementptr inbounds double, double* %0, i64 %81
%83 = add nuw nsw i64 %75, 12
%84 = getelementptr inbounds double, double* %0, i64 %83
%85 = add nuw nsw i64 %75, 15
%86 = getelementptr inbounds double, double* %0, i64 %85
br label %133
87: ; preds = %133
%88 = mul nuw nsw i64 %75, 6
%89 = add nuw nsw i64 %88, 6
%90 = getelementptr inbounds double, double* %1, i64 %89
%91 = load <2 x double>, <2 x double>* %66
%92 = bitcast double* %90 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = fadd <2 x double> %91, %93
%95 = bitcast double* %90 to <2 x double>*
store <2 x double> %94, <2 x double>* %95
%96 = add nuw nsw i64 %88, 8
%97 = getelementptr inbounds double, double* %1, i64 %96
%98 = load <2 x double>, <2 x double>* %67
%99 = bitcast double* %97 to <2 x double>*
%100 = load <2 x double>, <2 x double>* %99
%101 = fadd <2 x double> %98, %100
%102 = bitcast double* %97 to <2 x double>*
store <2 x double> %101, <2 x double>* %102
%103 = add nuw nsw i64 %88, 10
%104 = getelementptr inbounds double, double* %1, i64 %103
%105 = load <2 x double>, <2 x double>* %68
%106 = bitcast double* %104 to <2 x double>*
%107 = load <2 x double>, <2 x double>* %106
%108 = fadd <2 x double> %105, %107
%109 = bitcast double* %104 to <2 x double>*
store <2 x double> %108, <2 x double>* %109
%110 = add nuw nsw i64 %88, 12
%111 = getelementptr inbounds double, double* %1, i64 %110
%112 = load <2 x double>, <2 x double>* %69
%113 = bitcast double* %111 to <2 x double>*
%114 = load <2 x double>, <2 x double>* %113
%115 = fadd <2 x double> %112, %114
%116 = bitcast double* %111 to <2 x double>*
store <2 x double> %115, <2 x double>* %116
%117 = add nuw nsw i64 %88, 14
%118 = getelementptr inbounds double, double* %1, i64 %117
%119 = load <2 x double>, <2 x double>* %70
%120 = bitcast double* %118 to <2 x double>*
%121 = load <2 x double>, <2 x double>* %120
%122 = fadd <2 x double> %119, %121
%123 = bitcast double* %118 to <2 x double>*
store <2 x double> %122, <2 x double>* %123
%124 = add nuw nsw i64 %88, 16
%125 = getelementptr inbounds double, double* %1, i64 %124
%126 = load <2 x double>, <2 x double>* %71
%127 = bitcast double* %125 to <2 x double>*
%128 = load <2 x double>, <2 x double>* %127
%129 = fadd <2 x double> %126, %128
%130 = bitcast double* %125 to <2 x double>*
store <2 x double> %129, <2 x double>* %130
%131 = add nuw nsw i64 %75, 1
%132 = icmp eq i64 %131, 3
br i1 %132, label %208, label %74
133: ; preds = %74, %133
%134 = phi i64 [ 0, %74 ], [ %167, %133 ]
%135 = trunc i64 %134 to i32
%136 = shl i32 %135, 1
%137 = add i32 %136, 7
%138 = sitofp i32 %137 to double
%139 = fmul double %138, 0x3FC0C152382D7361
%140 = load double, double* %76
%141 = tail call double @cos(double %139)
%142 = tail call double @llvm.fmuladd.f64(double %140, double %141, double 0.000000e+00)
%143 = load double, double* %78
%144 = fmul double %139, 3.000000e+00
%145 = tail call double @cos(double %144)
%146 = tail call double @llvm.fmuladd.f64(double %143, double %145, double %142)
%147 = load double, double* %80
%148 = fmul double %139, 5.000000e+00
%149 = tail call double @cos(double %148)
%150 = tail call double @llvm.fmuladd.f64(double %147, double %149, double %146)
%151 = load double, double* %82
%152 = fmul double %139, 7.000000e+00
%153 = tail call double @cos(double %152)
%154 = tail call double @llvm.fmuladd.f64(double %151, double %153, double %150)
%155 = load double, double* %84
%156 = fmul double %139, 9.000000e+00
%157 = tail call double @cos(double %156)
%158 = tail call double @llvm.fmuladd.f64(double %155, double %157, double %154)
%159 = load double, double* %86
%160 = fmul double %139, 1.100000e+01
%161 = tail call double @cos(double %160)
%162 = tail call double @llvm.fmuladd.f64(double %159, double %161, double %158)
%163 = getelementptr inbounds [4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 2, i64 %134
%164 = load double, double* %163
%165 = fmul double %162, %164
%166 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 %134
store double %165, double* %166
%167 = add nuw nsw i64 %134, 1
%168 = icmp eq i64 %167, 12
br i1 %168, label %87, label %133
169: ; preds = %72, %201
%170 = phi i64 [ 0, %72 ], [ %206, %201 ]
%171 = shl nuw nsw i64 %170, 1
%172 = add nuw nsw i64 %171, 19
br label %173
173: ; preds = %173, %169
%174 = phi i64 [ 0, %169 ], [ %199, %173 ]
%175 = phi double [ 0.000000e+00, %169 ], [ %198, %173 ]
%176 = getelementptr inbounds double, double* %0, i64 %174
%177 = load double, double* %176
%178 = shl nuw nsw i64 %174, 1
%179 = or i64 %178, 1
%180 = mul nuw nsw i64 %179, %172
%181 = trunc i64 %180 to i32
%182 = urem i32 %181, 144
%183 = zext i32 %182 to i64
%184 = getelementptr inbounds [144 x double], [144 x double]* @inv_mdct.COS, i64 0, i64 %183
%185 = load double, double* %184
%186 = tail call double @llvm.fmuladd.f64(double %177, double %185, double %175)
%187 = or i64 %174, 1
%188 = getelementptr inbounds double, double* %0, i64 %187
%189 = load double, double* %188
%190 = shl nuw nsw i64 %187, 1
%191 = or i64 %190, 1
%192 = mul nuw nsw i64 %191, %172
%193 = trunc i64 %192 to i32
%194 = urem i32 %193, 144
%195 = zext i32 %194 to i64
%196 = getelementptr inbounds [144 x double], [144 x double]* @inv_mdct.COS, i64 0, i64 %195
%197 = load double, double* %196
%198 = tail call double @llvm.fmuladd.f64(double %189, double %197, double %186)
%199 = add nuw nsw i64 %174, 2
%200 = icmp eq i64 %199, 18
br i1 %200, label %201, label %173
201: ; preds = %173
%202 = getelementptr inbounds [4 x [36 x double]], [4 x [36 x double]]* @inv_mdct.win, i64 0, i64 %73, i64 %170
%203 = load double, double* %202
%204 = fmul double %198, %203
%205 = getelementptr inbounds double, double* %1, i64 %170
store double %204, double* %205
%206 = add nuw nsw i64 %170, 1
%207 = icmp eq i64 %206, 36
br i1 %207, label %208, label %169
208: ; preds = %201, %87
ret void
}