#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__ ceilf(float);
int interpSP4_b32(unsigned char *sl, int w, int h, float x, float y, float o,
                  unsigned char *v, int is_atop) {
  int i, j, m, n, b;
  float pp, p[4], wx[4], wy[4], xx;
  m = (int)ceilf(x) - 2;
  if (m < 0)
    m = 0;
  if ((m + 5) > w)
    m = w - 4;
  n = (int)ceilf(y) - 2;
  if (n < 0)
    n = 0;
  if ((n + 5) > h)
    n = h - 4;
  xx = y - n;
  wy[0] = ((-0.333333 * (xx - 1.0) + 0.8) * (xx - 1.0) - 0.466667) * (xx - 1.0);
  xx = xx - 1.0;
  wy[1] = ((xx - 1.8) * xx - 0.2) * xx + 1.0;
  xx = 1.0 - xx;
  wy[2] = ((xx - 1.8) * xx - 0.2) * xx + 1.0;
  xx = xx + 1.0;
  wy[3] = ((-0.333333 * (xx - 1.0) + 0.8) * (xx - 1.0) - 0.466667) * (xx - 1.0);
  xx = x - m;
  wx[0] = ((-0.333333 * (xx - 1.0) + 0.8) * (xx - 1.0) - 0.466667) * (xx - 1.0);
  xx = xx - 1.0;
  wx[1] = ((xx - 1.8) * xx - 0.2) * xx + 1.0;
  xx = 1.0 - xx;
  wx[2] = ((xx - 1.8) * xx - 0.2) * xx + 1.0;
  xx = xx + 1.0;
  wx[3] = ((-0.333333 * (xx - 1.0) + 0.8) * (xx - 1.0) - 0.466667) * (xx - 1.0);
  for (b = 0; b < 4; b++) {
    for (i = 0; i < 4; i++) {
      p[i] = 0.0;
      for (j = 0; j < 4; j++) {
        p[i] = p[i] + wy[j] * sl[4 * ((j + n) * w + i + m) + b];
      }
    }
    pp = 0.0;
    for (i = 0; i < 4; i++)
      pp = pp + wx[i] * p[i];
    if (pp < 0.0)
      pp = 0.0;
    if (pp > 256.0)
      pp = 255.0;
    v[b] = pp;
  }
  return 0;
}


x86 assembly (clang, -O0):
<interpSP4_b32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  %xmm2,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <ceilf@plt>
sub    $0x2,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jge    115d <interpSP4_b32+0x4d>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x5,%eax
cmp    -0xc(%rbp),%eax
jle    1175 <interpSP4_b32+0x65>
mov    -0xc(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x38(%rbp)
movss  -0x18(%rbp),%xmm0
call   1030 <ceilf@plt>
sub    $0x2,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    1196 <interpSP4_b32+0x86>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x5,%eax
cmp    -0x10(%rbp),%eax
jle    11ae <interpSP4_b32+0x9e>
mov    -0x10(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x3c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x3c(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xe28(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe2c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe28(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xdf8(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdf0(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xdd0(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xdab(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xdaf(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd8b(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd4f(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xd2e(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xd32(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd0e(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcd2(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xcb1(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc8d(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xc91(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc8d(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xc5d(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc55(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xc35(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x38(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xbfa(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xbfe(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbfa(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xbca(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbc2(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xba2(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb7d(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb81(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb5d(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb21(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xb00(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb04(%rip),%xmm1
subsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xae0(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xaa4(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xa83(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xa5f(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xa63(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa5f(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xa2f(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa27(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x84(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xa07(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
movl   $0x0,-0x40(%rbp)
cmpl   $0x4,-0x40(%rbp)
jge    1769 <interpSP4_b32+0x659>
movl   $0x0,-0x30(%rbp)
cmpl   $0x4,-0x30(%rbp)
jge    16b6 <interpSP4_b32+0x5a6>
movslq -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp,%rax,4)
movl   $0x0,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    16a3 <interpSP4_b32+0x593>
movslq -0x30(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm1
movslq -0x34(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    -0x3c(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x30(%rbp),%ecx
add    -0x38(%rbp),%ecx
shl    $0x2,%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movss  %xmm0,-0x60(%rbp,%rax,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1640 <interpSP4_b32+0x530>
jmp    16a8 <interpSP4_b32+0x598>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1622 <interpSP4_b32+0x512>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x4,-0x30(%rbp)
jge    1703 <interpSP4_b32+0x5f3>
movss  -0x44(%rbp),%xmm1
movslq -0x30(%rbp),%rax
movss  -0x70(%rbp,%rax,4),%xmm0
movslq -0x30(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    16c5 <interpSP4_b32+0x5b5>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1721 <interpSP4_b32+0x611>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x8fe(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1749 <interpSP4_b32+0x639>
movss  0x8f4(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
cvttss2si -0x44(%rbp),%eax
mov    %al,%dl
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1611 <interpSP4_b32+0x501>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpSP4_b32>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rcx,0x50(%rsp)
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0x10(%rsp)
mov    %edx,%r12d
mov    %esi,%r15d
mov    %rdi,0x40(%rsp)
call   1030 <ceilf@plt>
cmp    $0x3,%eax
mov    $0x2,%ebp
cmovl  %ebp,%eax
lea    -0x2(%rax),%ecx
add    $0x3,%eax
lea    -0x4(%r15),%ebx
cmp    %r15d,%eax
cmovle %ecx,%ebx
movss  0x8(%rsp),%xmm0
call   1030 <ceilf@plt>
cmp    $0x3,%eax
cmovge %eax,%ebp
lea    -0x2(%rbp),%ecx
add    $0x3,%ebp
lea    -0x4(%r12),%eax
cmp    %r12d,%ebp
cmovle %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x8(%rsp),%xmm1
subss  %xmm0,%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xe66(%rip),%xmm8
addsd  %xmm8,%xmm1
movsd  0xe61(%rip),%xmm7
movapd %xmm1,%xmm0
mulsd  %xmm7,%xmm0
movsd  0xe58(%rip),%xmm9
addsd  %xmm9,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe4e(%rip),%xmm10
addsd  %xmm10,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm12
cvtsd2ss %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
movsd  0xe35(%rip),%xmm6
movaps %xmm1,%xmm3
addsd  %xmm6,%xmm3
mulsd  %xmm1,%xmm3
movsd  0xe29(%rip),%xmm11
addsd  %xmm11,%xmm3
mulsd  %xmm1,%xmm3
movsd  0xe20(%rip),%xmm0
addsd  %xmm0,%xmm3
cvtsd2ss %xmm3,%xmm13
movss  0xe17(%rip),%xmm1
movaps %xmm1,%xmm3
subss  %xmm2,%xmm3
xorps  %xmm2,%xmm2
cvtss2sd %xmm3,%xmm2
movaps %xmm2,%xmm4
addsd  %xmm6,%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm11,%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm0,%xmm4
xorps  %xmm2,%xmm2
cvtsd2ss %xmm4,%xmm2
addss  %xmm1,%xmm3
cvtss2sd %xmm3,%xmm3
addsd  %xmm8,%xmm3
movapd %xmm3,%xmm4
mulsd  %xmm7,%xmm4
addsd  %xmm9,%xmm4
mulsd  %xmm3,%xmm4
addsd  %xmm10,%xmm4
mulsd  %xmm3,%xmm4
cvtsi2ss %ebx,%xmm5
xorps  %xmm3,%xmm3
cvtsd2ss %xmm4,%xmm3
movss  0x10(%rsp),%xmm4
subss  %xmm5,%xmm4
cvtss2sd %xmm4,%xmm4
addsd  %xmm8,%xmm4
movapd %xmm4,%xmm5
mulsd  %xmm7,%xmm5
addsd  %xmm9,%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm10,%xmm5
mulsd  %xmm4,%xmm5
cvtsd2ss %xmm5,%xmm14
cvtsd2ss %xmm4,%xmm4
cvtss2sd %xmm4,%xmm15
movaps %xmm15,%xmm5
addsd  %xmm6,%xmm5
mulsd  %xmm15,%xmm5
addsd  %xmm11,%xmm5
mulsd  %xmm15,%xmm5
addsd  %xmm0,%xmm5
xorps  %xmm15,%xmm15
cvtsd2ss %xmm5,%xmm15
mov    %eax,%edx
imul   %r15d,%edx
lea    (%rbx,%rdx,1),%r8d
lea    0x1(%rax),%edi
imul   %r15d,%edi
lea    (%rbx,%rdi,1),%r9d
lea    0x2(%rax),%ebp
imul   %r15d,%ebp
lea    (%rbx,%rbp,1),%r14d
add    $0x3,%eax
imul   %r15d,%eax
lea    (%rbx,%rdx,1),%ecx
add    $0x1,%ecx
mov    %ecx,0x8(%rsp)
lea    0x1(%rbx,%rdi,1),%ecx
mov    %ecx,0x10(%rsp)
lea    0x1(%rbx,%rbp,1),%ecx
mov    %ecx,0x20(%rsp)
lea    0x2(%rbx,%rdx,1),%ecx
mov    %ecx,0x18(%rsp)
lea    0x2(%rbx,%rdi,1),%r12d
lea    0x2(%rbx,%rbp,1),%r15d
lea    0x3(%rbx,%rdx,1),%r11d
lea    0x3(%rbx,%rdi,1),%r10d
lea    0x3(%rbx,%rbp,1),%ebp
lea    (%rbx,%rax,1),%esi
lea    0x1(%rbx,%rax,1),%ecx
lea    0x2(%rbx,%rax,1),%edx
lea    0x3(%rbx,%rax,1),%edi
movslq %r8d,%rax
mov    %rax,0x38(%rsp)
movslq %r9d,%rax
mov    %rax,0x30(%rsp)
movslq %r14d,%rax
mov    %rax,0x28(%rsp)
movslq %esi,%r13
movslq 0x8(%rsp),%r14
movslq 0x10(%rsp),%rbx
movslq 0x20(%rsp),%r8
movslq %ecx,%rsi
movslq 0x18(%rsp),%rcx
movslq %r12d,%rax
movslq %r15d,%r12
movslq %edx,%r15
movslq %r11d,%r11
movslq %r10d,%r10
movslq %ebp,%rbp
movslq %edi,%rdi
mov    0x40(%rsp),%rdx
lea    (%rdx,%rdi,4),%r9
lea    (%rdx,%rbp,4),%rdi
mov    %rdi,0x8(%rsp)
lea    (%rdx,%r10,4),%rdi
mov    %rdi,0x10(%rsp)
lea    (%rdx,%r11,4),%rdi
mov    %rdi,0x20(%rsp)
lea    (%rdx,%r15,4),%rdi
mov    %rdi,0x18(%rsp)
lea    (%rdx,%r12,4),%rdi
mov    %rdi,0x48(%rsp)
lea    (%rdx,%rax,4),%r11
lea    (%rdx,%rcx,4),%r15
lea    (%rdx,%rsi,4),%r12
lea    (%rdx,%r8,4),%rsi
lea    (%rdx,%rbx,4),%rdi
lea    (%rdx,%r14,4),%rbx
lea    (%rdx,%r13,4),%rbp
mov    0x28(%rsp),%rax
lea    (%rdx,%rax,4),%r14
mov    0x30(%rsp),%rax
lea    (%rdx,%rax,4),%r13
mov    0x38(%rsp),%rax
lea    (%rdx,%rax,4),%r8
mov    %r9,%rdx
movaps %xmm1,%xmm5
subss  %xmm4,%xmm5
cvtss2sd %xmm5,%xmm4
addsd  %xmm4,%xmm6
mulsd  %xmm4,%xmm6
addsd  %xmm11,%xmm6
mulsd  %xmm4,%xmm6
addsd  %xmm0,%xmm6
cvtsd2ss %xmm6,%xmm11
addss  %xmm1,%xmm5
xorps  %xmm4,%xmm4
cvtss2sd %xmm5,%xmm4
addsd  %xmm8,%xmm4
mulsd  %xmm4,%xmm7
addsd  %xmm9,%xmm7
mulsd  %xmm4,%xmm7
addsd  %xmm10,%xmm7
mulsd  %xmm4,%xmm7
cvtsd2ss %xmm7,%xmm10
xorpd  %xmm4,%xmm4
movss  0xbd9(%rip),%xmm8
movss  0xbd4(%rip),%xmm9
xor    %r9d,%r9d
mov    0x50(%rsp),%rcx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%r8,%r9,1),%r10d
xorps  %xmm5,%xmm5
cvtsi2ss %r10d,%xmm5
movzbl 0x0(%r13,%r9,1),%eax
xorps  %xmm6,%xmm6
cvtsi2ss %eax,%xmm6
mulss  %xmm12,%xmm5
addss  %xmm4,%xmm5
mulss  %xmm13,%xmm6
addss  %xmm5,%xmm6
movzbl (%r14,%r9,1),%eax
xorps  %xmm7,%xmm7
cvtsi2ss %eax,%xmm7
movzbl 0x0(%rbp,%r9,1),%eax
xorps  %xmm5,%xmm5
cvtsi2ss %eax,%xmm5
mulss  %xmm2,%xmm7
addss  %xmm6,%xmm7
mulss  %xmm3,%xmm5
addss  %xmm7,%xmm5
movzbl (%rbx,%r9,1),%eax
xorps  %xmm6,%xmm6
cvtsi2ss %eax,%xmm6
movzbl (%rdi,%r9,1),%eax
xorps  %xmm7,%xmm7
cvtsi2ss %eax,%xmm7
mulss  %xmm12,%xmm6
addss  %xmm4,%xmm6
mulss  %xmm13,%xmm7
addss  %xmm6,%xmm7
movzbl (%rsi,%r9,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movzbl (%r12,%r9,1),%eax
xorps  %xmm6,%xmm6
cvtsi2ss %eax,%xmm6
mulss  %xmm2,%xmm0
addss  %xmm7,%xmm0
mulss  %xmm3,%xmm6
addss  %xmm0,%xmm6
movzbl (%r15,%r9,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movzbl (%r11,%r9,1),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  %xmm12,%xmm0
addss  %xmm4,%xmm0
mulss  %xmm13,%xmm1
addss  %xmm0,%xmm1
mov    0x48(%rsp),%rax
movzbl (%rax,%r9,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mov    0x18(%rsp),%rax
movzbl (%rax,%r9,1),%eax
xorps  %xmm7,%xmm7
cvtsi2ss %eax,%xmm7
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mulss  %xmm3,%xmm7
addss  %xmm0,%xmm7
mov    0x20(%rsp),%rax
movzbl (%rax,%r9,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mov    0x10(%rsp),%rax
movzbl (%rax,%r9,1),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  %xmm12,%xmm0
addss  %xmm4,%xmm0
mulss  %xmm13,%xmm1
addss  %xmm0,%xmm1
mov    0x8(%rsp),%rax
movzbl (%rax,%r9,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mulss  %xmm14,%xmm5
mulss  %xmm15,%xmm6
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movzbl (%rdx,%r9,1),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  %xmm11,%xmm7
mulss  %xmm3,%xmm1
addss  %xmm0,%xmm1
mulss  %xmm10,%xmm1
addss  %xmm4,%xmm5
addss  %xmm6,%xmm5
addss  %xmm7,%xmm5
addss  %xmm1,%xmm5
xorps  %xmm0,%xmm0
maxss  %xmm5,%xmm0
movaps %xmm8,%xmm1
cmpltss %xmm0,%xmm1
movaps %xmm1,%xmm5
andnps %xmm0,%xmm5
andps  %xmm9,%xmm1
orps   %xmm5,%xmm1
cvttss2si %xmm1,%eax
mov    %al,(%rcx,%r9,1)
add    $0x1,%r9
cmp    $0x4,%r9
jne    1480 <interpSP4_b32+0x370>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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