#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 interpSP6_b(unsigned char *sl, int w, int h, float x, float y, float o,
                unsigned char *v, int is_atop) {
  int i, j, m, n;
  float pp, p[6], wx[6], wy[6], xx;
  m = (int)ceilf(x) - 3;
  if (m < 0)
    m = 0;
  if ((m + 7) > w)
    m = w - 6;
  n = (int)ceilf(y) - 3;
  if (n < 0)
    n = 0;
  if ((n + 7) > h)
    n = h - 6;
  xx = y - n;
  wy[0] =
      ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = xx - 1.0;
  wy[1] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) *
          (xx - 1.0);
  xx = xx - 1.0;
  wy[2] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = 1.0 - xx;
  wy[3] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = xx + 1.0;
  wy[4] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) *
          (xx - 1.0);
  xx = xx + 1.0;
  wy[5] =
      ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = x - m;
  wx[0] =
      ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  xx = xx - 1.0;
  wx[1] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) *
          (xx - 1.0);
  xx = xx - 1.0;
  wx[2] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = 1.0 - xx;
  wx[3] = ((1.181818 * xx - 2.167464) * xx + 0.014354) * xx + 1.0;
  xx = xx + 1.0;
  wx[4] = ((-0.545455 * (xx - 1.0) + 1.291866) * (xx - 1.0) - 0.746411) *
          (xx - 1.0);
  xx = xx + 1.0;
  wx[5] =
      ((0.090909 * (xx - 2.0) - 0.215311) * (xx - 2.0) + 0.124402) * (xx - 2.0);
  for (i = 0; i < 6; i++) {
    p[i] = 0.0;
    for (j = 0; j < 6; j++) {
      p[i] = p[i] + wy[j] * sl[(j + n) * w + i + m];
    }
  }
  pp = 0.0;
  for (i = 0; i < 6; i++)
    pp = pp + wx[i] * p[i];
  pp = 0.947 * pp;
  if (pp < 0.0)
    pp = 0.0;
  if (pp > 256.0)
    pp = 255.0;
  *v = pp;
  return 0;
}


x86 assembly (clang, -O0):
<interpSP6_b>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%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    $0x3,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jge    115d <interpSP6_b+0x4d>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x7,%eax
cmp    -0xc(%rbp),%eax
jle    1175 <interpSP6_b+0x65>
mov    -0xc(%rbp),%eax
sub    $0x6,%eax
mov    %eax,-0x38(%rbp)
movss  -0x18(%rbp),%xmm0
call   1030 <ceilf@plt>
sub    $0x3,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    1196 <interpSP6_b+0x86>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x7,%eax
cmp    -0x10(%rbp),%eax
jle    11ae <interpSP6_b+0x9e>
mov    -0x10(%rbp),%eax
sub    $0x6,%eax
mov    %eax,-0x3c(%rbp)
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x3c(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%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  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xdf8(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdf0(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xdd0(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xdc8(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xda4(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xda8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xda4(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xd74(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd6c(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xd4c(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xd24(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xd28(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd24(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcf8(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcbc(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc98(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc9c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc98(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc6c(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc30(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc0c(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xbe8(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xbec(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbe8(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xbb8(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbb0(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xb90(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x90(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb68(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb24(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xb28(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb24(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xaf4(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xaec(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xacc(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x38(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xa8e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xa92(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa8e(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xa5e(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa56(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0xa36(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xa31(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xa0d(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xa11(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa0d(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x9dd(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x9d5(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x9b5(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x990(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x994(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x990(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x964(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x928(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0x907(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x90b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x907(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x8db(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x89f(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x87e(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x85a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0x85e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x85a(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x82a(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x822(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x802(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x7dd(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x799(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0x79d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x799(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x769(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x761(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0xa4(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x741(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x6c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x6,-0x30(%rbp)
jge    1968 <interpSP6_b+0x858>
movslq -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp,%rax,4)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    1955 <interpSP6_b+0x845>
movslq -0x30(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm1
movslq -0x34(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    -0x3c(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x30(%rbp),%ecx
add    -0x38(%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    18f5 <interpSP6_b+0x7e5>
jmp    195a <interpSP6_b+0x84a>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    18d7 <interpSP6_b+0x7c7>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x6,-0x30(%rbp)
jge    19b5 <interpSP6_b+0x8a5>
movss  -0x40(%rbp),%xmm1
movslq -0x30(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
movslq -0x30(%rbp),%rax
movss  -0x60(%rbp,%rax,4),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1977 <interpSP6_b+0x867>
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x692(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    19f1 <interpSP6_b+0x8e1>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x65e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1a19 <interpSP6_b+0x909>
movss  0x654(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
cvttss2si -0x40(%rbp),%eax
mov    %al,%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpSP6_b>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,%r14
movss  %xmm1,(%rsp)
movss  %xmm0,0x8(%rsp)
mov    %edx,%r12d
mov    %esi,%r15d
mov    %rdi,%rbx
call   1030 <ceilf@plt>
cmp    $0x4,%eax
mov    $0x3,%ebp
cmovl  %ebp,%eax
lea    -0x3(%rax),%ecx
add    $0x4,%eax
lea    -0x6(%r15),%r13d
cmp    %r15d,%eax
cmovle %ecx,%r13d
movss  (%rsp),%xmm0
call   1030 <ceilf@plt>
cmp    $0x4,%eax
cmovge %eax,%ebp
lea    -0x3(%rbp),%eax
add    $0x4,%ebp
lea    -0x6(%r12),%r8d
cmp    %r12d,%ebp
cmovle %eax,%r8d
xorps  %xmm0,%xmm0
cvtsi2ss %r8d,%xmm0
movss  (%rsp),%xmm1
subss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movaps %xmm1,%xmm2
addsd  0xe65(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xe61(%rip),%xmm1
movsd  0xe60(%rip),%xmm13
addsd  %xmm13,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xe56(%rip),%xmm12
addsd  %xmm12,%xmm1
mulsd  %xmm0,%xmm1
addss  0xe95(%rip),%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movsd  0xe3d(%rip),%xmm11
addsd  %xmm11,%xmm0
movsd  0xe37(%rip),%xmm15
movapd %xmm0,%xmm7
mulsd  %xmm15,%xmm7
movsd  0xe2d(%rip),%xmm9
addsd  %xmm9,%xmm7
mulsd  %xmm0,%xmm7
movsd  0xe23(%rip),%xmm8
addsd  %xmm8,%xmm7
cvtsd2ss %xmm0,%xmm4
mulsd  %xmm0,%xmm7
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
movsd  0xe0e(%rip),%xmm14
movaps %xmm0,%xmm2
mulsd  %xmm14,%xmm2
movsd  0xe06(%rip),%xmm6
addsd  %xmm6,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xdfe(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm0,%xmm2
movss  0xe09(%rip),%xmm10
movaps %xmm10,%xmm0
subss  %xmm4,%xmm0
cvtss2sd %xmm0,%xmm5
movaps %xmm5,%xmm4
mulsd  %xmm14,%xmm4
addsd  %xmm6,%xmm4
mulsd  %xmm5,%xmm4
addsd  %xmm3,%xmm4
mulsd  %xmm5,%xmm4
addss  %xmm10,%xmm0
xorps  %xmm5,%xmm5
cvtss2sd %xmm0,%xmm5
addsd  %xmm11,%xmm5
movapd %xmm5,%xmm3
mulsd  %xmm15,%xmm3
addsd  %xmm9,%xmm3
mulsd  %xmm5,%xmm3
addsd  %xmm8,%xmm3
mulsd  %xmm5,%xmm3
addss  %xmm10,%xmm0
xorps  %xmm5,%xmm5
cvtss2sd %xmm0,%xmm5
addsd  0xd39(%rip),%xmm5
movapd %xmm5,%xmm0
mulsd  0xd35(%rip),%xmm0
addsd  %xmm13,%xmm0
mulsd  %xmm5,%xmm0
addsd  %xmm12,%xmm0
xorps  %xmm6,%xmm6
cvtsi2ss %r13d,%xmm6
mulsd  %xmm5,%xmm0
movss  0x8(%rsp),%xmm5
subss  %xmm6,%xmm5
xorps  %xmm12,%xmm12
cvtss2sd %xmm5,%xmm12
addss  0xd60(%rip),%xmm5
cvtss2sd %xmm5,%xmm5
addsd  %xmm11,%xmm5
movsd  %xmm5,0x8(%rsp)
xorps  %xmm15,%xmm15
cvtsd2ss %xmm5,%xmm15
movaps %xmm10,%xmm5
subss  %xmm15,%xmm5
xorps  %xmm6,%xmm6
cvtss2sd %xmm5,%xmm6
movsd  %xmm6,0x30(%rsp)
addss  %xmm10,%xmm5
xorps  %xmm6,%xmm6
cvtss2sd %xmm5,%xmm6
addsd  %xmm11,%xmm6
movsd  %xmm6,0x28(%rsp)
addss  %xmm10,%xmm5
xorps  %xmm8,%xmm8
cvtsd2ss %xmm1,%xmm8
cvtsd2ss %xmm7,%xmm9
movsd  0xcf0(%rip),%xmm1
addsd  %xmm1,%xmm2
xorps  %xmm10,%xmm10
cvtsd2ss %xmm2,%xmm10
movsd  0xc83(%rip),%xmm2
addsd  %xmm2,%xmm12
movsd  %xmm12,(%rsp)
cvtss2sd %xmm5,%xmm7
addsd  %xmm2,%xmm7
addsd  %xmm1,%xmm4
cvtsd2ss %xmm4,%xmm11
xorps  %xmm12,%xmm12
cvtsd2ss %xmm3,%xmm12
cvtsd2ss %xmm0,%xmm13
cvtss2sd %xmm15,%xmm15
mov    %r8d,%r9d
imul   %r15d,%r9d
lea    0x1(%r8),%edx
imul   %r15d,%edx
lea    0x2(%r8),%esi
imul   %r15d,%esi
lea    0x3(%r8),%edi
imul   %r15d,%edi
lea    0x4(%r8),%ebp
imul   %r15d,%ebp
add    $0x5,%r8d
imul   %r15d,%r8d
add    %r13d,%r8d
add    %r13d,%ebp
add    %r13d,%edi
add    %r13d,%esi
add    %r13d,%edx
add    %r13d,%r9d
xor    %eax,%eax
xorpd  %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%r9,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mulss  %xmm8,%xmm0
addss  %xmm1,%xmm0
lea    (%rdx,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm3,%xmm3
cvtsi2ss %ecx,%xmm3
mulss  %xmm9,%xmm3
addss  %xmm0,%xmm3
lea    (%rsi,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mulss  %xmm10,%xmm0
addss  %xmm3,%xmm0
lea    (%rdi,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm3,%xmm3
cvtsi2ss %ecx,%xmm3
mulss  %xmm11,%xmm3
addss  %xmm0,%xmm3
lea    0x0(%rbp,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mulss  %xmm12,%xmm0
addss  %xmm3,%xmm0
lea    (%r8,%rax,1),%ecx
movslq %ecx,%rcx
movzbl (%rbx,%rcx,1),%ecx
xorps  %xmm3,%xmm3
cvtsi2ss %ecx,%xmm3
mulss  %xmm13,%xmm3
addss  %xmm0,%xmm3
movss  %xmm3,0x10(%rsp,%rax,4)
add    $0x1,%rax
cmp    $0x6,%rax
jne    1400 <interpSP6_b+0x2f0>
movapd %xmm7,%xmm11
movsd  0xb48(%rip),%xmm0
mulsd  %xmm0,%xmm11
movsd  0xb42(%rip),%xmm8
addsd  %xmm8,%xmm11
mulsd  %xmm7,%xmm11
movsd  0xb37(%rip),%xmm9
addsd  %xmm9,%xmm11
mulsd  %xmm7,%xmm11
movsd  0x28(%rsp),%xmm2
movapd %xmm2,%xmm4
movsd  0xb2b(%rip),%xmm1
mulsd  %xmm1,%xmm4
movsd  0xb27(%rip),%xmm7
addsd  %xmm7,%xmm4
mulsd  %xmm2,%xmm4
movsd  0xb1e(%rip),%xmm10
addsd  %xmm10,%xmm4
mulsd  %xmm2,%xmm4
movsd  0x30(%rsp),%xmm3
movapd %xmm3,%xmm5
mulsd  %xmm14,%xmm5
movsd  0xb0e(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm3,%xmm5
movsd  0xb06(%rip),%xmm2
addsd  %xmm2,%xmm5
mulsd  %xmm3,%xmm5
mulsd  %xmm15,%xmm14
addsd  %xmm6,%xmm14
mulsd  %xmm15,%xmm14
addsd  %xmm2,%xmm14
mulsd  %xmm15,%xmm14
movsd  0xae5(%rip),%xmm2
addsd  %xmm2,%xmm5
addsd  %xmm2,%xmm14
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm7,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm10,%xmm1
mulsd  %xmm2,%xmm1
movsd  (%rsp),%xmm6
mulsd  %xmm6,%xmm0
addsd  %xmm8,%xmm0
xorps  %xmm2,%xmm2
cvtsd2ss %xmm14,%xmm2
mulsd  %xmm6,%xmm0
addsd  %xmm9,%xmm0
xorps  %xmm3,%xmm3
cvtsd2ss %xmm1,%xmm3
mulsd  %xmm6,%xmm0
xorps  %xmm6,%xmm6
cvtsd2ss %xmm0,%xmm6
mulss  0x10(%rsp),%xmm6
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm6
mulss  0x14(%rsp),%xmm3
addss  %xmm6,%xmm3
mulss  0x18(%rsp),%xmm2
addss  %xmm3,%xmm2
xorps  %xmm3,%xmm3
cvtsd2ss %xmm4,%xmm3
xorps  %xmm4,%xmm4
cvtsd2ss %xmm5,%xmm4
mulss  0x1c(%rsp),%xmm4
mulss  0x20(%rsp),%xmm3
addss  %xmm2,%xmm4
addss  %xmm4,%xmm3
xorps  %xmm1,%xmm1
cvtsd2ss %xmm11,%xmm1
mulss  0x24(%rsp),%xmm1
addss  %xmm3,%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xa37(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
maxss  %xmm1,%xmm0
movss  0xa37(%rip),%xmm1
cmpltss %xmm0,%xmm1
movss  0xa2e(%rip),%xmm2
andps  %xmm1,%xmm2
andnps %xmm0,%xmm1
orps   %xmm1,%xmm2
cvttss2si %xmm2,%eax
mov    %al,(%r14)
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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