void psycho_0(double SMR[2][32], int nch, unsigned int scalar[2][3][32],
              float sfreq) {
  int ch, sb, gr;
  int minscaleindex[2][32];
  static float ath_min[32];
  int i;
  static int init = 0;
  if (!init) {
    float freqperline = sfreq / 1024.0;
    for (sb = 0; sb < 32; sb++) {
      ath_min[sb] = 1000;
    }
    for (i = 0; i < 512; i++) {
      float thisfreq = i * freqperline;
      float ath_val = ATH_dB(thisfreq, 0);
      if (ath_val < ath_min[i >> 4])
        ath_min[i >> 4] = ath_val;
    }
    init++;
  }
  for (ch = 0; ch < nch; ch++)
    for (sb = 0; sb < 32; sb++)
      minscaleindex[ch][sb] = scalar[ch][0][sb];
  for (ch = 0; ch < nch; ch++)
    for (gr = 1; gr < 3; gr++)
      for (sb = 0; sb < 32; sb++)
        if (minscaleindex[ch][sb] > scalar[ch][gr][sb])
          minscaleindex[ch][sb] = scalar[ch][gr][sb];
  for (ch = 0; ch < nch; ch++)
    for (sb = 0; sb < 32; sb++)
      SMR[ch][sb] = 2.0 * (30.0 - minscaleindex[ch][sb]) - ath_min[sb];
}


x86 assembly (clang, -O0):
<psycho_0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
cmpl   $0x0,0x2f8e(%rip)
jne    1254 <psycho_0+0x144>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb7(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x138(%rbp)
ff
movl   $0x0,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
jge    1190 <psycho_0+0x80>
movslq -0x24(%rbp),%rcx
lea    0x2ecb(%rip),%rax
movss  0xe93(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1160 <psycho_0+0x50>
movl   $0x0,-0x134(%rbp)
cmpl   $0x200,-0x134(%rbp)
jge    1245 <psycho_0+0x135>
cvtsi2ssl -0x134(%rbp),%xmm0
ff
mulss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x13c(%rbp)
ff
movss  -0x13c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <ATH_dB@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x140(%rbp)
ff
movss  -0x140(%rbp),%xmm1
ff
mov    -0x134(%rbp),%eax
sar    $0x4,%eax
movslq %eax,%rcx
lea    0x2e42(%rip),%rax
movss  (%rax,%rcx,4),%xmm0
ucomiss %xmm1,%xmm0
jbe    122c <psycho_0+0x11c>
movss  -0x140(%rbp),%xmm0
ff
mov    -0x134(%rbp),%eax
sar    $0x4,%eax
movslq %eax,%rcx
lea    0x2e19(%rip),%rax
movss  %xmm0,(%rax,%rcx,4)
jmp    1231 <psycho_0+0x121>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    119a <psycho_0+0x8a>
mov    0x2e75(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e6c(%rip)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12cb <psycho_0+0x1bb>
movl   $0x0,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
jge    12b8 <psycho_0+0x1a8>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
imul   $0x180,%rcx,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x20(%rbp),%rcx
lea    -0x130(%rbp),%rax
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    126e <psycho_0+0x15e>
jmp    12bd <psycho_0+0x1ad>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    125b <psycho_0+0x14b>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13b9 <psycho_0+0x2a9>
movl   $0x1,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    13a6 <psycho_0+0x296>
movl   $0x0,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
jge    1393 <psycho_0+0x283>
movslq -0x20(%rbp),%rcx
lea    -0x130(%rbp),%rax
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x18(%rbp),%rcx
movslq -0x20(%rbp),%rdx
imul   $0x180,%rdx,%rdx
add    %rdx,%rcx
movslq -0x28(%rbp),%rdx
shl    $0x7,%rdx
add    %rdx,%rcx
movslq -0x24(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jbe    1380 <psycho_0+0x270>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
imul   $0x180,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x20(%rbp),%rcx
lea    -0x130(%rbp),%rax
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1385 <psycho_0+0x275>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12f6 <psycho_0+0x1e6>
jmp    1398 <psycho_0+0x288>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12e5 <psycho_0+0x1d5>
jmp    13ab <psycho_0+0x29b>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12d2 <psycho_0+0x1c2>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1470 <psycho_0+0x360>
movl   $0x0,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
jge    145d <psycho_0+0x34d>
movslq -0x20(%rbp),%rcx
lea    -0x130(%rbp),%rax
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0xc08(%rip),%xmm0
subsd  %xmm1,%xmm0
movslq -0x24(%rbp),%rcx
lea    0x2c31(%rip),%rax
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x8,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13d3 <psycho_0+0x2c3>
jmp    1462 <psycho_0+0x352>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13c0 <psycho_0+0x2b0>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psycho_0>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x110,%rsp
mov    %rdx,%r15
mov    %esi,%r14d
mov    %rdi,%rbx
cmpl   $0x0,0x2f91(%rip)
je     113f <psycho_0+0x2f>
test   %r14d,%r14d
jg     11fb <psycho_0+0xeb>
jmp    175d <psycho_0+0x64d>
movaps 0xeba(%rip),%xmm1
movaps %xmm1,0x2ef3(%rip)
movaps %xmm1,0x2efc(%rip)
movaps %xmm1,0x2f05(%rip)
movaps %xmm1,0x2f0e(%rip)
movaps %xmm1,0x2f17(%rip)
movaps %xmm1,0x2f20(%rip)
movaps %xmm1,0x2f29(%rip)
movaps %xmm1,0x2f32(%rip)
mulss  0xeaa(%rip),%xmm0
xor    %ebp,%ebp
lea    0x2eb1(%rip),%r12
movss  %xmm0,0xc(%rsp)
jmp    11b1 <psycho_0+0xa1>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebp
cmp    $0x200,%ebp
movss  0xc(%rsp),%xmm0
je     11eb <psycho_0+0xdb>
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <ATH_dB@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mov    %ebp,%eax
shr    $0x4,%eax
movss  (%r12,%rax,4),%xmm1
ucomiss %xmm0,%xmm1
jbe    11a0 <psycho_0+0x90>
movss  %xmm0,(%r12,%rax,4)
jmp    11a0 <psycho_0+0x90>
addl   $0x1,0x2ece(%rip)
test   %r14d,%r14d
jle    175d <psycho_0+0x64d>
mov    %r14d,%eax
cmp    $0x1,%r14d
jne    120b <psycho_0+0xfb>
xor    %ecx,%ecx
jmp    12d5 <psycho_0+0x1c5>
mov    %eax,%edx
and    $0xfffffffe,%edx
lea    0x90(%rsp),%rsi
xor    %ecx,%ecx
mov    %r15,%rdi
nopl   (%rax)
movups 0x70(%rdi),%xmm0
movups %xmm0,-0x10(%rsi)
movups 0x60(%rdi),%xmm0
movups %xmm0,-0x20(%rsi)
movups 0x50(%rdi),%xmm0
movups %xmm0,-0x30(%rsi)
movups 0x40(%rdi),%xmm0
movups %xmm0,-0x40(%rsi)
movups (%rdi),%xmm0
movups 0x10(%rdi),%xmm1
movups 0x20(%rdi),%xmm2
movups 0x30(%rdi),%xmm3
movups %xmm3,-0x50(%rsi)
movups %xmm2,-0x60(%rsi)
movups %xmm1,-0x70(%rsi)
movups %xmm0,-0x80(%rsi)
movups 0x180(%rdi),%xmm0
movups 0x190(%rdi),%xmm1
movdqu 0x1a0(%rdi),%xmm2
movdqu 0x1b0(%rdi),%xmm3
movups %xmm0,(%rsi)
movups %xmm1,0x10(%rsi)
movdqu %xmm2,0x20(%rsi)
movdqu %xmm3,0x30(%rsi)
movups 0x1c0(%rdi),%xmm0
movups %xmm0,0x40(%rsi)
movups 0x1d0(%rdi),%xmm0
movups %xmm0,0x50(%rsi)
movups 0x1e0(%rdi),%xmm0
movups %xmm0,0x60(%rsi)
movups 0x1f0(%rdi),%xmm0
movups %xmm0,0x70(%rsi)
add    $0x2,%rcx
add    $0x100,%rsi
add    $0x300,%rdi
cmp    %rcx,%rdx
jne    1220 <psycho_0+0x110>
test   $0x1,%al
je     1346 <psycho_0+0x236>
mov    %rcx,%rdx
shl    $0x7,%rdx
lea    (%rcx,%rcx,2),%rcx
shl    $0x7,%rcx
movups 0x70(%r15,%rcx,1),%xmm0
movups %xmm0,0x80(%rsp,%rdx,1)
movups 0x60(%r15,%rcx,1),%xmm0
movups %xmm0,0x70(%rsp,%rdx,1)
movups 0x50(%r15,%rcx,1),%xmm0
movups %xmm0,0x60(%rsp,%rdx,1)
movups 0x40(%r15,%rcx,1),%xmm0
movups %xmm0,0x50(%rsp,%rdx,1)
movups (%r15,%rcx,1),%xmm0
movups 0x10(%r15,%rcx,1),%xmm1
movdqu 0x20(%r15,%rcx,1),%xmm2
movdqu 0x30(%r15,%rcx,1),%xmm3
movdqu %xmm3,0x40(%rsp,%rdx,1)
movdqu %xmm2,0x30(%rsp,%rdx,1)
movups %xmm1,0x20(%rsp,%rdx,1)
movups %xmm0,0x10(%rsp,%rdx,1)
test   %r14d,%r14d
jle    175d <psycho_0+0x64d>
add    $0x170,%r15
mov    %rax,%rcx
shl    $0x7,%rcx
xor    %edx,%edx
movdqa 0xca9(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movdqu -0xf0(%r15),%xmm3
ff ff
movdqa 0x10(%rsp,%rdx,1),%xmm4
movdqa 0x20(%rsp,%rdx,1),%xmm5
movdqa 0x30(%rsp,%rdx,1),%xmm2
movdqa 0x40(%rsp,%rdx,1),%xmm1
movdqa %xmm4,%xmm6
pxor   %xmm0,%xmm6
movdqa %xmm3,%xmm7
pxor   %xmm0,%xmm7
pcmpgtd %xmm6,%xmm7
pand   %xmm7,%xmm4
pandn  %xmm3,%xmm7
por    %xmm4,%xmm7
movdqa %xmm7,0x10(%rsp,%rdx,1)
movdqu -0xe0(%r15),%xmm3
ff ff
movdqa %xmm5,%xmm4
pxor   %xmm0,%xmm4
movdqa %xmm3,%xmm6
pxor   %xmm0,%xmm6
pcmpgtd %xmm4,%xmm6
pand   %xmm6,%xmm5
pandn  %xmm3,%xmm6
por    %xmm5,%xmm6
movdqa %xmm6,0x20(%rsp,%rdx,1)
movdqu -0xd0(%r15),%xmm3
ff ff
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
movdqa %xmm3,%xmm5
pxor   %xmm0,%xmm5
pcmpgtd %xmm4,%xmm5
pand   %xmm5,%xmm2
pandn  %xmm3,%xmm5
por    %xmm2,%xmm5
movdqa %xmm5,0x30(%rsp,%rdx,1)
movdqu -0xc0(%r15),%xmm2
ff ff
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x40(%rsp,%rdx,1)
movdqa 0x50(%rsp,%rdx,1),%xmm1
movdqu -0xb0(%r15),%xmm2
ff ff
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x50(%rsp,%rdx,1)
movdqa 0x60(%rsp,%rdx,1),%xmm1
movdqu -0xa0(%r15),%xmm2
ff ff
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x60(%rsp,%rdx,1)
movdqa 0x70(%rsp,%rdx,1),%xmm1
movdqu -0x90(%r15),%xmm2
ff ff
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x70(%rsp,%rdx,1)
movdqa 0x80(%rsp,%rdx,1),%xmm1
movdqu -0x80(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x80(%rsp,%rdx,1)
movdqa 0x10(%rsp,%rdx,1),%xmm1
movdqu -0x70(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x10(%rsp,%rdx,1)
movdqa 0x20(%rsp,%rdx,1),%xmm1
movdqu -0x60(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x20(%rsp,%rdx,1)
movdqa 0x30(%rsp,%rdx,1),%xmm1
movdqu -0x50(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x30(%rsp,%rdx,1)
movdqa 0x40(%rsp,%rdx,1),%xmm1
movdqu -0x40(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x40(%rsp,%rdx,1)
movdqa 0x50(%rsp,%rdx,1),%xmm1
movdqu -0x30(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x50(%rsp,%rdx,1)
movdqa 0x60(%rsp,%rdx,1),%xmm1
movdqu -0x20(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x60(%rsp,%rdx,1)
movdqa 0x70(%rsp,%rdx,1),%xmm1
movdqu -0x10(%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x70(%rsp,%rdx,1)
movdqa 0x80(%rsp,%rdx,1),%xmm1
movdqu (%r15),%xmm2
movdqa %xmm1,%xmm3
pxor   %xmm0,%xmm3
movdqa %xmm2,%xmm4
pxor   %xmm0,%xmm4
pcmpgtd %xmm3,%xmm4
pand   %xmm4,%xmm1
pandn  %xmm2,%xmm4
por    %xmm1,%xmm4
movdqa %xmm4,0x80(%rsp,%rdx,1)
add    $0x180,%r15
sub    $0xffffffffffffff80,%rdx
cmp    %rdx,%rcx
jne    1370 <psycho_0+0x260>
test   %r14d,%r14d
jle    175d <psycho_0+0x64d>
lea    0x18(%rsp),%rcx
add    $0x10,%rbx
xor    %edx,%edx
movapd 0x940(%rip),%xmm0
lea    0x2959(%rip),%rsi
nopw   0x0(%rax,%rax,1)
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cvtdq2pd -0x8(%rcx,%rdi,4),%xmm1
movapd %xmm0,%xmm2
subpd  %xmm1,%xmm2
cvtps2pd (%rsi,%rdi,4),%xmm1
addpd  %xmm2,%xmm2
subpd  %xmm1,%xmm2
movupd %xmm2,-0x10(%rbx,%rdi,8)
cvtdq2pd (%rcx,%rdi,4),%xmm1
movapd %xmm0,%xmm2
subpd  %xmm1,%xmm2
cvtps2pd 0x8(%rsi,%rdi,4),%xmm1
addpd  %xmm2,%xmm2
subpd  %xmm1,%xmm2
movupd %xmm2,(%rbx,%rdi,8)
add    $0x4,%rdi
cmp    $0x20,%rdi
jne    1700 <psycho_0+0x5f0>
add    $0x1,%rdx
sub    $0xffffffffffffff80,%rcx
add    $0x100,%rbx
cmp    %rax,%rdx
jne    16f0 <psycho_0+0x5e0>
add    $0x110,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@psycho_0.ath_min = internal global [32 x float] zeroinitializer
@psycho_0.init = internal global i32 0
define void @psycho_0([32 x double]* %0, i32 %1, [3 x [32 x i32]]* %2, float %3) {
%5 = alloca [32 x double]*
%6 = alloca i32
%7 = alloca [3 x [32 x i32]]*
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [2 x [32 x i32]]
%13 = alloca i32
%14 = alloca float
%15 = alloca float
%16 = alloca float
store [32 x double]* %0, [32 x double]** %5
store i32 %1, i32* %6
store [3 x [32 x i32]]* %2, [3 x [32 x i32]]** %7
store float %3, float* %8
%17 = load i32, i32* @psycho_0.init
%18 = icmp ne i32 %17, 0
br i1 %18, label %67, label %19
19: ; preds = %4
%20 = load float, float* %8
%21 = fpext float %20 to double
%22 = fdiv double %21, 1.024000e+03
%23 = fptrunc double %22 to float
store float %23, float* %14
store i32 0, i32* %10
br label %24
24: ; preds = %31, %19
%25 = load i32, i32* %10
%26 = icmp slt i32 %25, 32
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %29
store float 1.000000e+03, float* %30
br label %31
31: ; preds = %27
%32 = load i32, i32* %10
%33 = add nsw i32 %32, 1
store i32 %33, i32* %10
br label %24
34: ; preds = %24
store i32 0, i32* %13
br label %35
35: ; preds = %61, %34
%36 = load i32, i32* %13
%37 = icmp slt i32 %36, 512
br i1 %37, label %38, label %64
38: ; preds = %35
%39 = load i32, i32* %13
%40 = sitofp i32 %39 to float
%41 = load float, float* %14
%42 = fmul float %40, %41
store float %42, float* %15
%43 = load float, float* %15
%44 = fpext float %43 to double
%45 = call i32 (double, i32, ...) bitcast (i32 (...)* @ATH_dB to i32 (double, i32, ...)*)(double %44, i32 0)
%46 = sitofp i32 %45 to float
store float %46, float* %16
%47 = load float, float* %16
%48 = load i32, i32* %13
%49 = ashr i32 %48, 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %50
%52 = load float, float* %51
%53 = fcmp olt float %47, %52
br i1 %53, label %54, label %60
54: ; preds = %38
%55 = load float, float* %16
%56 = load i32, i32* %13
%57 = ashr i32 %56, 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %58
store float %55, float* %59
br label %60
60: ; preds = %54, %38
br label %61
61: ; preds = %60
%62 = load i32, i32* %13
%63 = add nsw i32 %62, 1
store i32 %63, i32* %13
br label %35
64: ; preds = %35
%65 = load i32, i32* @psycho_0.init
%66 = add nsw i32 %65, 1
store i32 %66, i32* @psycho_0.init
br label %67
67: ; preds = %64, %4
store i32 0, i32* %9
br label %68
68: ; preds = %96, %67
%69 = load i32, i32* %9
%70 = load i32, i32* %6
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %99
72: ; preds = %68
store i32 0, i32* %10
br label %73
73: ; preds = %92, %72
%74 = load i32, i32* %10
%75 = icmp slt i32 %74, 32
br i1 %75, label %76, label %95
76: ; preds = %73
%77 = load [3 x [32 x i32]]*, [3 x [32 x i32]]** %7
%78 = load i32, i32* %9
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %77, i64 %79
%81 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %80, i64 0, i64 0
%82 = load i32, i32* %10
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [32 x i32], [32 x i32]* %81, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = load i32, i32* %9
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %12, i64 0, i64 %87
%89 = load i32, i32* %10
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [32 x i32], [32 x i32]* %88, i64 0, i64 %90
store i32 %85, i32* %91
br label %92
92: ; preds = %76
%93 = load i32, i32* %10
%94 = add nsw i32 %93, 1
store i32 %94, i32* %10
br label %73
95: ; preds = %73
br label %96
96: ; preds = %95
%97 = load i32, i32* %9
%98 = add nsw i32 %97, 1
store i32 %98, i32* %9
br label %68
99: ; preds = %68
store i32 0, i32* %9
br label %100
100: ; preds = %159, %99
%101 = load i32, i32* %9
%102 = load i32, i32* %6
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %162
104: ; preds = %100
store i32 1, i32* %11
br label %105
105: ; preds = %155, %104
%106 = load i32, i32* %11
%107 = icmp slt i32 %106, 3
br i1 %107, label %108, label %158
108: ; preds = %105
store i32 0, i32* %10
br label %109
109: ; preds = %151, %108
%110 = load i32, i32* %10
%111 = icmp slt i32 %110, 32
br i1 %111, label %112, label %154
112: ; preds = %109
%113 = load i32, i32* %9
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %12, i64 0, i64 %114
%116 = load i32, i32* %10
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [32 x i32], [32 x i32]* %115, i64 0, i64 %117
%119 = load i32, i32* %118
%120 = load [3 x [32 x i32]]*, [3 x [32 x i32]]** %7
%121 = load i32, i32* %9
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %120, i64 %122
%124 = load i32, i32* %11
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %123, i64 0, i64 %125
%127 = load i32, i32* %10
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [32 x i32], [32 x i32]* %126, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = icmp ugt i32 %119, %130
br i1 %131, label %132, label %150
132: ; preds = %112
%133 = load [3 x [32 x i32]]*, [3 x [32 x i32]]** %7
%134 = load i32, i32* %9
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %133, i64 %135
%137 = load i32, i32* %11
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %136, i64 0, i64 %138
%140 = load i32, i32* %10
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [32 x i32], [32 x i32]* %139, i64 0, i64 %141
%143 = load i32, i32* %142
%144 = load i32, i32* %9
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %12, i64 0, i64 %145
%147 = load i32, i32* %10
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [32 x i32], [32 x i32]* %146, i64 0, i64 %148
store i32 %143, i32* %149
br label %150
150: ; preds = %132, %112
br label %151
151: ; preds = %150
%152 = load i32, i32* %10
%153 = add nsw i32 %152, 1
store i32 %153, i32* %10
br label %109
154: ; preds = %109
br label %155
155: ; preds = %154
%156 = load i32, i32* %11
%157 = add nsw i32 %156, 1
store i32 %157, i32* %11
br label %105
158: ; preds = %105
br label %159
159: ; preds = %158
%160 = load i32, i32* %9
%161 = add nsw i32 %160, 1
store i32 %161, i32* %9
br label %100
162: ; preds = %100
store i32 0, i32* %9
br label %163
163: ; preds = %199, %162
%164 = load i32, i32* %9
%165 = load i32, i32* %6
%166 = icmp slt i32 %164, %165
br i1 %166, label %167, label %202
167: ; preds = %163
store i32 0, i32* %10
br label %168
168: ; preds = %195, %167
%169 = load i32, i32* %10
%170 = icmp slt i32 %169, 32
br i1 %170, label %171, label %198
171: ; preds = %168
%172 = load i32, i32* %9
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %12, i64 0, i64 %173
%175 = load i32, i32* %10
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [32 x i32], [32 x i32]* %174, i64 0, i64 %176
%178 = load i32, i32* %177
%179 = sitofp i32 %178 to double
%180 = fsub double 3.000000e+01, %179
%181 = load i32, i32* %10
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %182
%184 = load float, float* %183
%185 = fpext float %184 to double
%186 = fneg double %185
%187 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %180, double %186)
%188 = load [32 x double]*, [32 x double]** %5
%189 = load i32, i32* %9
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [32 x double], [32 x double]* %188, i64 %190
%192 = load i32, i32* %10
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [32 x double], [32 x double]* %191, i64 0, i64 %193
store double %187, double* %194
br label %195
195: ; preds = %171
%196 = load i32, i32* %10
%197 = add nsw i32 %196, 1
store i32 %197, i32* %10
br label %168
198: ; preds = %168
br label %199
199: ; preds = %198
%200 = load i32, i32* %9
%201 = add nsw i32 %200, 1
store i32 %201, i32* %9
br label %163
202: ; preds = %163
ret void
}

LLVM IR (-O2):
@psycho_0.ath_min = internal unnamed_addr global [32 x float] zeroinitializer
@psycho_0.init = internal unnamed_addr global i32 0
define void @psycho_0([32 x double]* nocapture writeonly %0, i32 %1, [3 x [32 x i32]]* nocapture %2, float %3) {
%5 = alloca [2 x [32 x i32]]
%6 = bitcast [2 x [32 x i32]]* %5 to i8*
%7 = load i32, i32* @psycho_0.init
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %30
9: ; preds = %4
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast ([32 x float]* @psycho_0.ath_min to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 4) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 8) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 12) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 16) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 20) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 24) to <4 x float>*)
store <4 x float> <float 1.000000e+03, float 1.000000e+03, float 1.000000e+03, float 1.000000e+03>, <4 x float>* bitcast (float* getelementptr inbounds ([32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 28) to <4 x float>*)
%10 = fmul float %3, 0x3F50000000000000
br label %11
11: ; preds = %9, %24
%12 = phi i32 [ %25, %24 ], [ 0, %9 ]
%13 = sitofp i32 %12 to float
%14 = fmul float %10, %13
%15 = fpext float %14 to double
%16 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @ATH_dB to i32 (double, i32, ...)*)(double %15, i32 0)
%17 = sitofp i32 %16 to float
%18 = lshr i32 %12, 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %19
%21 = load float, float* %20
%22 = fcmp ogt float %21, %17
br i1 %22, label %23, label %24
23: ; preds = %11
store float %17, float* %20
br label %24
24: ; preds = %23, %11
%25 = add nuw nsw i32 %12, 1
%26 = icmp eq i32 %25, 512
br i1 %26, label %27, label %11
27: ; preds = %24
%28 = load i32, i32* @psycho_0.init
%29 = add nsw i32 %28, 1
store i32 %29, i32* @psycho_0.init
br label %30
30: ; preds = %27, %4
%31 = icmp sgt i32 %1, 0
br i1 %31, label %32, label %251
32: ; preds = %30
%33 = zext i32 %1 to i64
%34 = and i64 %33, 1
%35 = icmp eq i32 %1, 1
br i1 %35, label %53, label %36
36: ; preds = %32
%37 = and i64 %33, 4294967294
br label %38
38: ; preds = %38, %36
%39 = phi i64 [ 0, %36 ], [ %50, %38 ]
%40 = phi i64 [ 0, %36 ], [ %51, %38 ]
%41 = getelementptr [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %39, i64 0
%42 = bitcast i32* %41 to i8*
%43 = getelementptr [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %39, i64 0, i64 0
%44 = bitcast i32* %43 to i8*
%45 = or i64 %39, 1
%46 = getelementptr [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %45, i64 0
%47 = bitcast i32* %46 to i8*
%48 = getelementptr [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %45, i64 0, i64 0
%49 = bitcast i32* %48 to i8*
%50 = add nuw nsw i64 %39, 2
%51 = add i64 %40, 2
%52 = icmp eq i64 %51, %37
br i1 %52, label %53, label %38
53: ; preds = %38, %32
%54 = phi i64 [ 0, %32 ], [ %50, %38 ]
%55 = icmp eq i64 %34, 0
br i1 %55, label %61, label %56
56: ; preds = %53
%57 = getelementptr [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %54, i64 0
%58 = bitcast i32* %57 to i8*
%59 = getelementptr [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %54, i64 0, i64 0
%60 = bitcast i32* %59 to i8*
br label %61
61: ; preds = %53, %56
br i1 %31, label %62, label %251
62: ; preds = %61
%63 = zext i32 %1 to i64
br label %64
64: ; preds = %64, %62
%65 = phi i64 [ 0, %62 ], [ %210, %64 ]
%66 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 0
%67 = bitcast i32* %66 to <4 x i32>*
%68 = load <4 x i32>, <4 x i32>* %67
%69 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 0
%70 = bitcast i32* %69 to <4 x i32>*
%71 = load <4 x i32>, <4 x i32>* %70
%72 = icmp ugt <4 x i32> %68, %71
%73 = select <4 x i1> %72, <4 x i32> %71, <4 x i32> %68
%74 = bitcast i32* %66 to <4 x i32>*
store <4 x i32> %73, <4 x i32>* %74
%75 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 4
%76 = bitcast i32* %75 to <4 x i32>*
%77 = load <4 x i32>, <4 x i32>* %76
%78 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 4
%79 = bitcast i32* %78 to <4 x i32>*
%80 = load <4 x i32>, <4 x i32>* %79
%81 = icmp ugt <4 x i32> %77, %80
%82 = select <4 x i1> %81, <4 x i32> %80, <4 x i32> %77
%83 = bitcast i32* %75 to <4 x i32>*
store <4 x i32> %82, <4 x i32>* %83
%84 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 8
%85 = bitcast i32* %84 to <4 x i32>*
%86 = load <4 x i32>, <4 x i32>* %85
%87 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 8
%88 = bitcast i32* %87 to <4 x i32>*
%89 = load <4 x i32>, <4 x i32>* %88
%90 = icmp ugt <4 x i32> %86, %89
%91 = select <4 x i1> %90, <4 x i32> %89, <4 x i32> %86
%92 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> %91, <4 x i32>* %92
%93 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 12
%94 = bitcast i32* %93 to <4 x i32>*
%95 = load <4 x i32>, <4 x i32>* %94
%96 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 12
%97 = bitcast i32* %96 to <4 x i32>*
%98 = load <4 x i32>, <4 x i32>* %97
%99 = icmp ugt <4 x i32> %95, %98
%100 = select <4 x i1> %99, <4 x i32> %98, <4 x i32> %95
%101 = bitcast i32* %93 to <4 x i32>*
store <4 x i32> %100, <4 x i32>* %101
%102 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 16
%103 = bitcast i32* %102 to <4 x i32>*
%104 = load <4 x i32>, <4 x i32>* %103
%105 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 16
%106 = bitcast i32* %105 to <4 x i32>*
%107 = load <4 x i32>, <4 x i32>* %106
%108 = icmp ugt <4 x i32> %104, %107
%109 = select <4 x i1> %108, <4 x i32> %107, <4 x i32> %104
%110 = bitcast i32* %102 to <4 x i32>*
store <4 x i32> %109, <4 x i32>* %110
%111 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 20
%112 = bitcast i32* %111 to <4 x i32>*
%113 = load <4 x i32>, <4 x i32>* %112
%114 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 20
%115 = bitcast i32* %114 to <4 x i32>*
%116 = load <4 x i32>, <4 x i32>* %115
%117 = icmp ugt <4 x i32> %113, %116
%118 = select <4 x i1> %117, <4 x i32> %116, <4 x i32> %113
%119 = bitcast i32* %111 to <4 x i32>*
store <4 x i32> %118, <4 x i32>* %119
%120 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 24
%121 = bitcast i32* %120 to <4 x i32>*
%122 = load <4 x i32>, <4 x i32>* %121
%123 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 24
%124 = bitcast i32* %123 to <4 x i32>*
%125 = load <4 x i32>, <4 x i32>* %124
%126 = icmp ugt <4 x i32> %122, %125
%127 = select <4 x i1> %126, <4 x i32> %125, <4 x i32> %122
%128 = bitcast i32* %120 to <4 x i32>*
store <4 x i32> %127, <4 x i32>* %128
%129 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 28
%130 = bitcast i32* %129 to <4 x i32>*
%131 = load <4 x i32>, <4 x i32>* %130
%132 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 1, i64 28
%133 = bitcast i32* %132 to <4 x i32>*
%134 = load <4 x i32>, <4 x i32>* %133
%135 = icmp ugt <4 x i32> %131, %134
%136 = select <4 x i1> %135, <4 x i32> %134, <4 x i32> %131
%137 = bitcast i32* %129 to <4 x i32>*
store <4 x i32> %136, <4 x i32>* %137
%138 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 0
%139 = bitcast i32* %138 to <4 x i32>*
%140 = load <4 x i32>, <4 x i32>* %139
%141 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 0
%142 = bitcast i32* %141 to <4 x i32>*
%143 = load <4 x i32>, <4 x i32>* %142
%144 = icmp ugt <4 x i32> %140, %143
%145 = select <4 x i1> %144, <4 x i32> %143, <4 x i32> %140
%146 = bitcast i32* %138 to <4 x i32>*
store <4 x i32> %145, <4 x i32>* %146
%147 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 4
%148 = bitcast i32* %147 to <4 x i32>*
%149 = load <4 x i32>, <4 x i32>* %148
%150 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 4
%151 = bitcast i32* %150 to <4 x i32>*
%152 = load <4 x i32>, <4 x i32>* %151
%153 = icmp ugt <4 x i32> %149, %152
%154 = select <4 x i1> %153, <4 x i32> %152, <4 x i32> %149
%155 = bitcast i32* %147 to <4 x i32>*
store <4 x i32> %154, <4 x i32>* %155
%156 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 8
%157 = bitcast i32* %156 to <4 x i32>*
%158 = load <4 x i32>, <4 x i32>* %157
%159 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 8
%160 = bitcast i32* %159 to <4 x i32>*
%161 = load <4 x i32>, <4 x i32>* %160
%162 = icmp ugt <4 x i32> %158, %161
%163 = select <4 x i1> %162, <4 x i32> %161, <4 x i32> %158
%164 = bitcast i32* %156 to <4 x i32>*
store <4 x i32> %163, <4 x i32>* %164
%165 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 12
%166 = bitcast i32* %165 to <4 x i32>*
%167 = load <4 x i32>, <4 x i32>* %166
%168 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 12
%169 = bitcast i32* %168 to <4 x i32>*
%170 = load <4 x i32>, <4 x i32>* %169
%171 = icmp ugt <4 x i32> %167, %170
%172 = select <4 x i1> %171, <4 x i32> %170, <4 x i32> %167
%173 = bitcast i32* %165 to <4 x i32>*
store <4 x i32> %172, <4 x i32>* %173
%174 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 16
%175 = bitcast i32* %174 to <4 x i32>*
%176 = load <4 x i32>, <4 x i32>* %175
%177 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 16
%178 = bitcast i32* %177 to <4 x i32>*
%179 = load <4 x i32>, <4 x i32>* %178
%180 = icmp ugt <4 x i32> %176, %179
%181 = select <4 x i1> %180, <4 x i32> %179, <4 x i32> %176
%182 = bitcast i32* %174 to <4 x i32>*
store <4 x i32> %181, <4 x i32>* %182
%183 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 20
%184 = bitcast i32* %183 to <4 x i32>*
%185 = load <4 x i32>, <4 x i32>* %184
%186 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 20
%187 = bitcast i32* %186 to <4 x i32>*
%188 = load <4 x i32>, <4 x i32>* %187
%189 = icmp ugt <4 x i32> %185, %188
%190 = select <4 x i1> %189, <4 x i32> %188, <4 x i32> %185
%191 = bitcast i32* %183 to <4 x i32>*
store <4 x i32> %190, <4 x i32>* %191
%192 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 24
%193 = bitcast i32* %192 to <4 x i32>*
%194 = load <4 x i32>, <4 x i32>* %193
%195 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 24
%196 = bitcast i32* %195 to <4 x i32>*
%197 = load <4 x i32>, <4 x i32>* %196
%198 = icmp ugt <4 x i32> %194, %197
%199 = select <4 x i1> %198, <4 x i32> %197, <4 x i32> %194
%200 = bitcast i32* %192 to <4 x i32>*
store <4 x i32> %199, <4 x i32>* %200
%201 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %65, i64 28
%202 = bitcast i32* %201 to <4 x i32>*
%203 = load <4 x i32>, <4 x i32>* %202
%204 = getelementptr inbounds [3 x [32 x i32]], [3 x [32 x i32]]* %2, i64 %65, i64 2, i64 28
%205 = bitcast i32* %204 to <4 x i32>*
%206 = load <4 x i32>, <4 x i32>* %205
%207 = icmp ugt <4 x i32> %203, %206
%208 = select <4 x i1> %207, <4 x i32> %206, <4 x i32> %203
%209 = bitcast i32* %201 to <4 x i32>*
store <4 x i32> %208, <4 x i32>* %209
%210 = add nuw nsw i64 %65, 1
%211 = icmp eq i64 %210, %63
br i1 %211, label %212, label %64
212: ; preds = %64
br i1 %31, label %213, label %251
213: ; preds = %212
%214 = zext i32 %1 to i64
br label %215
215: ; preds = %248, %213
%216 = phi i64 [ 0, %213 ], [ %249, %248 ]
br label %217
217: ; preds = %217, %215
%218 = phi i64 [ 0, %215 ], [ %246, %217 ]
%219 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %216, i64 %218
%220 = bitcast i32* %219 to <2 x i32>*
%221 = load <2 x i32>, <2 x i32>* %220
%222 = sitofp <2 x i32> %221 to <2 x double>
%223 = fsub <2 x double> <double 3.000000e+01, double 3.000000e+01>, %222
%224 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %218
%225 = bitcast float* %224 to <2 x float>*
%226 = load <2 x float>, <2 x float>* %225
%227 = fpext <2 x float> %226 to <2 x double>
%228 = fneg <2 x double> %227
%229 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %223, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %228)
%230 = getelementptr inbounds [32 x double], [32 x double]* %0, i64 %216, i64 %218
%231 = bitcast double* %230 to <2 x double>*
store <2 x double> %229, <2 x double>* %231
%232 = or i64 %218, 2
%233 = getelementptr inbounds [2 x [32 x i32]], [2 x [32 x i32]]* %5, i64 0, i64 %216, i64 %232
%234 = bitcast i32* %233 to <2 x i32>*
%235 = load <2 x i32>, <2 x i32>* %234
%236 = sitofp <2 x i32> %235 to <2 x double>
%237 = fsub <2 x double> <double 3.000000e+01, double 3.000000e+01>, %236
%238 = getelementptr inbounds [32 x float], [32 x float]* @psycho_0.ath_min, i64 0, i64 %232
%239 = bitcast float* %238 to <2 x float>*
%240 = load <2 x float>, <2 x float>* %239
%241 = fpext <2 x float> %240 to <2 x double>
%242 = fneg <2 x double> %241
%243 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %237, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %242)
%244 = getelementptr inbounds [32 x double], [32 x double]* %0, i64 %216, i64 %232
%245 = bitcast double* %244 to <2 x double>*
store <2 x double> %243, <2 x double>* %245
%246 = add nuw nsw i64 %218, 4
%247 = icmp eq i64 %246, 32
br i1 %247, label %248, label %217
248: ; preds = %217
%249 = add nuw nsw i64 %216, 1
%250 = icmp eq i64 %249, %214
br i1 %250, label %251, label %215
251: ; preds = %248, %30, %61, %212
ret void
}