#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ cos(int);
int /*<<< orphan*/ free(float *);
scalar_t__ opus_malloc(int);
scalar_t__ sin(int);
scalar_t__ sqrt(float);
void band_energy(float *_out, const int *_bands, int _nbands, const float *_in,
                 int _nchannels, size_t _nframes, int _window_sz, int _step) {
  float *window;
  float *x;
  float *c;
  float *s;
  size_t xi;
  int xj;
  window =
      (float *)opus_malloc((3 + _nchannels) * _window_sz * sizeof(*window));
  c = window + _window_sz;
  s = c + _window_sz;
  x = s + _window_sz;
  for (xj = 0; xj < _window_sz; xj++) {
    window[xj] =
        0.5F - 0.5F * ((float)cos((2 * (3.14159265F) / (_window_sz - 1)) * xj));
  }
  for (xj = 0; xj < _window_sz; xj++)
    c[xj] = ((float)cos((2 * (3.14159265F) / _window_sz) * xj));
  for (xj = 0; xj < _window_sz; xj++)
    s[xj] = ((float)sin((2 * (3.14159265F) / _window_sz) * xj));
  for (xi = 0; xi < _nframes; xi++) {
    int ci;
    int xk;
    int bi;
    for (ci = 0; ci < _nchannels; ci++) {
      for (xk = 0; xk < _window_sz; xk++) {
        x[ci * _window_sz + xk] =
            window[xk] * _in[(xi * _step + xk) * _nchannels + ci];
      }
    }
    for (bi = xj = 0; bi < _nbands; bi++) {
      float e2;
      e2 = 0;
      for (; xj < _bands[bi + 1]; xj++) {
        float p;
        p = 0;
        for (ci = 0; ci < _nchannels; ci++) {
          float re;
          float im;
          int ti;
          ti = 0;
          re = im = 0;
          for (xk = 0; xk < _window_sz; xk++) {
            re += c[ti] * x[ci * _window_sz + xk];
            im -= s[ti] * x[ci * _window_sz + xk];
            ti += xj;
            if (ti >= _window_sz)
              ti -= _window_sz;
          }
          p += ((float)sqrt(re * re + im * im));
        }
        p *= (1.0F / _nchannels);
        e2 += p * p;
      }
      _out[xi * _nbands + bi] = e2 / (_bands[bi + 1] - _bands[bi]) + 1;
    }
  }
  free(window);
}


x86 assembly (clang, -O0):
<band_energy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
imul   0x10(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <opus_malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq 0x10(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq 0x10(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movslq 0x10(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    123f <band_energy+0xef>
mov    0x10(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm1
movss  0xe13(%rip),%xmm0
divss  %xmm1,%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1050 <cos@plt>
cvtsi2ss %rax,%xmm0
movss  0xdf4(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xdec(%rip),%xmm1
addss  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    11d3 <band_energy+0x83>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    1295 <band_energy+0x145>
cvtsi2ssl 0x10(%rbp),%xmm1
movss  0xda5(%rip),%xmm0
divss  %xmm1,%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1050 <cos@plt>
cvtsi2ss %rax,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1246 <band_energy+0xf6>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12eb <band_energy+0x19b>
cvtsi2ssl 0x10(%rbp),%xmm1
movss  0xd4f(%rip),%xmm0
divss  %xmm1,%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1040 <sin@plt>
cvtsi2ss %rax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    129c <band_energy+0x14c>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x30(%rbp),%rax
jae    15b7 <band_energy+0x467>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1396 <band_energy+0x246>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    1383 <band_energy+0x233>
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x58(%rbp),%rcx
movslq 0x18(%rbp),%rdx
imul   %rdx,%rcx
movslq -0x64(%rbp),%rdx
add    %rdx,%rcx
movslq -0x24(%rbp),%rdx
imul   %rdx,%rcx
movslq -0x60(%rbp),%rdx
add    %rdx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x60(%rbp),%ecx
imul   0x10(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    131b <band_energy+0x1cb>
jmp    1388 <band_energy+0x238>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1308 <band_energy+0x1b8>
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15a1 <band_energy+0x451>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x5c(%rbp),%eax
mov    -0x10(%rbp),%rcx
mov    -0x68(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1543 <band_energy+0x3f3>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14fe <band_energy+0x3ae>
movl   $0x0,-0x7c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    14c0 <band_energy+0x370>
mov    -0x48(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x60(%rbp),%ecx
imul   0x10(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x74(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x50(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x60(%rbp),%ecx
imul   0x10(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x78(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x78(%rbp)
mov    -0x5c(%rbp),%eax
add    -0x7c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    0x10(%rbp),%eax
jl     14ad <band_energy+0x35d>
mov    0x10(%rbp),%ecx
mov    -0x7c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x7c(%rbp)
jmp    14b2 <band_energy+0x362>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    140a <band_energy+0x2ba>
movss  -0x74(%rbp),%xmm0
movss  -0x74(%rbp),%xmm2
movss  -0x78(%rbp),%xmm1
mulss  -0x78(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
cvtsi2ss %rax,%xmm0
addss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    13e0 <band_energy+0x290>
cvtsi2ssl -0x24(%rbp),%xmm1
movss  0xaf5(%rip),%xmm0
divss  %xmm1,%xmm0
mulss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
movss  -0x70(%rbp),%xmm2
movss  -0x6c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    13b8 <band_energy+0x268>
movss  -0x6c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x68(%rbp),%rdx
sub    (%rcx,%rdx,4),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movss  0xa8d(%rip),%xmm1
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x58(%rbp),%rcx
movslq -0x14(%rbp),%rdx
imul   %rdx,%rcx
movslq -0x68(%rbp),%rdx
add    %rdx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    13a4 <band_energy+0x254>
jmp    15a6 <band_energy+0x456>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    12f3 <band_energy+0x1a3>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<band_energy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %r9,0x58(%rsp)
mov    %rcx,0x70(%rsp)
mov    %edx,0x24(%rsp)
mov    %rsi,%r15
mov    %rdi,0xd0(%rsp)
movslq 0x120(%rsp),%r14
mov    0x128(%rsp),%eax
mov    %eax,0x40(%rsp)
mov    %r8,0x48(%rsp)
lea    0xc(,%r8,4),%edi
imul   %r14d,%edi
call   1070 <opus_malloc@plt>
lea    (%rax,%r14,4),%rdi
lea    (%rdi,%r14,4),%r12
mov    %r14d,%r13d
test   %r14,%r14
mov    %rax,0x30(%rsp)
mov    %rdi,0x10(%rsp)
mov    %r15,0x38(%rsp)
jle    145e <band_energy+0x30e>
mov    %rax,%rbp
lea    -0x1(%r14),%eax
cvtsi2ss %eax,%xmm0
movss  0xe27(%rip),%xmm1
divss  %xmm0,%xmm1
mov    %r13,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,0x18(%rsp)
je     1872 <band_energy+0x722>
mov    %r13d,%r15d
and    $0xfffffffe,%r15d
xor    %ebx,%ebx
movss  %xmm1,(%rsp)
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
mulss  (%rsp),%xmm0
cvttss2si %xmm0,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0xddf(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xdd7(%rip),%xmm1
addss  %xmm1,%xmm0
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  %xmm0,0x0(%rbp,%rbx,4)
mulss  (%rsp),%xmm1
cvttss2si %xmm1,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mulss  0xda1(%rip),%xmm0
addss  0xd9d(%rip),%xmm0
movss  %xmm0,0x4(%rbp,%rbx,4)
add    $0x2,%rbx
cmp    %r15,%rbx
jne    1200 <band_energy+0xb0>
mov    0x38(%rsp),%r15
mov    0x10(%rsp),%rdi
movss  (%rsp),%xmm1
test   $0x1,%r13b
je     12c6 <band_energy+0x176>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
mulss  %xmm0,%xmm1
cvttss2si %xmm1,%edi
call   1050 <cos@plt>
mov    0x10(%rsp),%rdi
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mulss  0xd4c(%rip),%xmm0
addss  0xd48(%rip),%xmm0
movss  %xmm0,0x0(%rbp,%rbx,4)
test   %r14d,%r14d
jle    145e <band_energy+0x30e>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  0xd21(%rip),%xmm1
divss  %xmm0,%xmm1
movaps %xmm1,%xmm0
cmpq   $0x0,0x18(%rsp)
movss  %xmm1,(%rsp)
je     1883 <band_energy+0x733>
mov    %r13d,%r15d
and    $0xfffffffe,%r15d
lea    0x4(%rbp,%r14,4),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
mulss  (%rsp),%xmm0
cvttss2si %xmm0,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  %xmm0,-0x4(%rbp,%rbx,4)
mulss  (%rsp),%xmm1
cvttss2si %xmm1,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,0x0(%rbp,%rbx,4)
add    $0x2,%rbx
cmp    %r15,%rbx
jne    1310 <band_energy+0x1c0>
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%rbp
mov    0x10(%rsp),%rdi
test   $0x1,%r13b
je     139e <band_energy+0x24e>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
mulss  (%rsp),%xmm0
cvttss2si %xmm0,%edi
call   1050 <cos@plt>
mov    0x10(%rsp),%rdi
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,(%rdi,%rbx,4)
test   %r14d,%r14d
jle    145e <band_energy+0x30e>
cmpq   $0x0,0x18(%rsp)
je     1894 <band_energy+0x744>
mov    %r13d,%r15d
and    $0xfffffffe,%r15d
lea    0x4(%rbp,%r14,8),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
mulss  (%rsp),%xmm0
cvttss2si %xmm0,%edi
call   1040 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  %xmm0,-0x4(%rbp,%rbx,4)
mulss  (%rsp),%xmm1
cvttss2si %xmm1,%edi
call   1040 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,0x0(%rbp,%rbx,4)
add    $0x2,%rbx
cmp    %r15,%rbx
jne    13d0 <band_energy+0x280>
mov    0x38(%rsp),%r15
mov    0x10(%rsp),%rdi
test   $0x1,%r13b
je     145e <band_energy+0x30e>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
movss  (%rsp),%xmm1
mulss  %xmm0,%xmm1
cvttss2si %xmm1,%edi
call   1040 <sin@plt>
mov    0x10(%rsp),%rdi
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,(%r12,%rbx,4)
cmpq   $0x0,0x58(%rsp)
je     1857 <band_energy+0x707>
lea    (%r12,%r14,4),%rax
mov    %rax,0x80(%rsp)
movslq 0x40(%rsp),%rcx
mov    0x48(%rsp),%rax
movslq %eax,%rdx
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0xb7a(%rip),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x54(%rsp)
movslq 0x24(%rsp),%rsi
mov    %eax,%eax
mov    %rax,0x40(%rsp)
mov    %rsi,0xa0(%rsp)
mov    %esi,%eax
mov    %rax,0xc8(%rsp)
mov    %r13d,%ebx
and    $0xfffffffe,%ebx
mov    0x30(%rsp),%rax
add    $0x4,%rax
mov    %rax,0xb8(%rsp)
mov    0x70(%rsp),%rax
lea    (%rax,%rdx,4),%rsi
mov    %rsi,0x68(%rsp)
mov    %rcx,0xa8(%rsp)
imul   %rdx,%rcx
shl    $0x2,%rcx
mov    %rcx,0xb0(%rsp)
mov    %rdx,0xc0(%rsp)
lea    (%rdx,%rdx,1),%rsi
lea    0x0(,%r14,4),%rcx
mov    %rcx,0x18(%rsp)
lea    (%rcx,%rcx,2),%rcx
mov    %rcx,0x98(%rsp)
movaps 0xaed(%rip),%xmm3
mov    %rax,0x60(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
mov    %rbx,0x78(%rsp)
mov    %rsi,0x90(%rsp)
jmp    156e <band_energy+0x41e>
xchg   %ax,%ax
mov    0x28(%rsp),%rcx
add    $0x1,%rcx
mov    0xb0(%rsp),%rax
add    %rax,0x68(%rsp)
add    %rax,0x60(%rsp)
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
cmp    0x58(%rsp),%rcx
je     1857 <band_energy+0x707>
cmpl   $0x0,0x48(%rsp)
jle    1680 <band_energy+0x530>
mov    0x28(%rsp),%rax
imul   0xa8(%rsp),%rax
mov    %rax,(%rsp)
mov    0x60(%rsp),%r11
mov    0x98(%rsp),%rdx
mov    0x68(%rsp),%r8
xor    %r10d,%r10d
jmp    15cc <band_energy+0x47c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r10
add    $0x4,%r8
add    0x18(%rsp),%rdx
add    $0x4,%r11
cmp    0x40(%rsp),%r10
je     1680 <band_energy+0x530>
test   %r14d,%r14d
jle    15b0 <band_energy+0x460>
cmp    $0x1,%r14d
jne    15e0 <band_energy+0x490>
xor    %ebp,%ebp
mov    %rbx,%rcx
jmp    1620 <band_energy+0x4d0>
xchg   %ax,%ax
mov    %rbx,%rcx
xor    %ebx,%ebx
mov    0xb8(%rsp),%rax
xor    %ebp,%ebp
nop
movss  -0x4(%rax),%xmm0
mulss  (%r11,%rbx,4),%xmm0
movss  %xmm0,-0x4(%rax,%rdx,1)
movss  (%rax),%xmm0
mulss  (%r8,%rbx,4),%xmm0
movss  %xmm0,(%rax,%rdx,1)
add    $0x2,%rbp
add    $0x8,%rax
add    %rsi,%rbx
cmp    %rbp,%rcx
jne    15f0 <band_energy+0x4a0>
test   $0x1,%r13b
mov    %rcx,%rbx
je     15b0 <band_energy+0x460>
mov    %r10,%r9
imul   %r14,%r9
mov    0x30(%rsp),%rax
movss  (%rax,%rbp,4),%xmm0
mov    (%rsp),%rax
lea    (%rax,%rbp,1),%rbx
imul   0xc0(%rsp),%rbx
add    %r10,%rbx
mov    0x70(%rsp),%rax
mulss  (%rax,%rbx,4),%xmm0
mov    0x78(%rsp),%rbx
add    %rbp,%r9
mov    0x80(%rsp),%rax
movss  %xmm0,(%rax,%r9,4)
mov    0x90(%rsp),%rsi
jmp    15b0 <band_energy+0x460>
nopl   0x0(%rax,%rax,1)
cmpl   $0x0,0x24(%rsp)
jle    1540 <band_energy+0x3f0>
mov    0x28(%rsp),%rax
imul   0xa0(%rsp),%rax
mov    %rax,0xd8(%rsp)
xor    %eax,%eax
xor    %ebp,%ebp
jmp    1703 <band_energy+0x5b3>
nopw   0x0(%rax,%rax,1)
mov    0xe0(%rsp),%rcx
sub    (%r15,%rcx,4),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0xc(%rsp),%xmm1
divss  %xmm0,%xmm1
addss  0x937(%rip),%xmm1
add    0xd8(%rsp),%rcx
mov    0xd0(%rsp),%rax
movss  %xmm1,(%rax,%rcx,4)
mov    0x88(%rsp),%rcx
mov    %rcx,%rax
cmp    0xc8(%rsp),%rcx
je     1540 <band_energy+0x3f0>
lea    0x1(%rax),%rcx
mov    %rcx,0x88(%rsp)
mov    %rax,0xe0(%rsp)
mov    0x4(%r15,%rax,4),%eax
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
cmp    %eax,%ebp
jge    16b0 <band_energy+0x560>
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
jmp    177b <band_energy+0x62b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x38(%rsp),%r15
mov    0x88(%rsp),%rax
mov    (%r15,%rax,4),%eax
mov    0x78(%rsp),%rbx
mulss  0x54(%rsp),%xmm1
mulss  %xmm1,%xmm1
movss  0xc(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
add    $0x1,%ebp
cmp    %eax,%ebp
jge    16b0 <band_energy+0x560>
xorps  %xmm1,%xmm1
cmpl   $0x0,0x48(%rsp)
jle    1756 <band_energy+0x606>
xorps  %xmm1,%xmm1
mov    0x80(%rsp),%rbx
xor    %r15d,%r15d
jmp    17f3 <band_energy+0x6a3>
cs nopw 0x0(%rax,%rax,1)
nop
xorps  %xmm0,%xmm0
movaps %xmm0,%xmm1
mulps  %xmm0,%xmm1
shufps $0x55,%xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  (%rsp),%xmm1
addss  %xmm0,%xmm1
add    $0x1,%r15
add    0x18(%rsp),%rbx
cmp    0x40(%rsp),%r15
mov    0x10(%rsp),%rdi
mov    0x90(%rsp),%rsi
movaps 0x823(%rip),%xmm3
je     1740 <band_energy+0x5f0>
test   %r14d,%r14d
movss  %xmm1,(%rsp)
jle    17a0 <band_energy+0x650>
xorps  %xmm2,%xmm2
xor    %eax,%eax
xor    %ecx,%ecx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movaps %xmm2,%xmm1
movslq %ecx,%rcx
movss  (%r12,%rcx,4),%xmm0
xorps  %xmm3,%xmm0
movss  (%rdi,%rcx,4),%xmm2
unpcklps %xmm0,%xmm2
movss  (%rbx,%rax,4),%xmm0
shufps $0x0,%xmm0,%xmm0
mulps  %xmm2,%xmm0
movaps %xmm0,%xmm2
add    %ebp,%ecx
cmp    %r14d,%ecx
mov    %r14d,%edx
cmovl  %esi,%edx
addps  %xmm1,%xmm2
sub    %edx,%ecx
add    $0x1,%rax
cmp    %rax,%r13
jne    1810 <band_energy+0x6c0>
addps  %xmm1,%xmm0
jmp    17a3 <band_energy+0x653>
mov    0x30(%rsp),%rdi
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
xor    %ebx,%ebx
test   $0x1,%r13b
jne    128f <band_energy+0x13f>
jmp    12c6 <band_energy+0x176>
xor    %ebx,%ebx
test   $0x1,%r13b
jne    1377 <band_energy+0x227>
jmp    139e <band_energy+0x24e>
xor    %ebx,%ebx
test   $0x1,%r13b
jne    1432 <band_energy+0x2e2>
jmp    145e <band_energy+0x30e>

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

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