#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);
float sin(float);
int interpSC16_b(unsigned char *sl, int w, int h, float x, float y,
                 unsigned char *v) {
  int i, j, m, n;
  float pp, p[16], wx[16], wy[16], xx, xxx, x1;
  float PI = 3.141592654;
  m = (int)ceilf(x) - 8;
  if (m < 0)
    m = 0;
  if ((m + 17) > w)
    m = w - 16;
  n = (int)ceilf(y) - 8;
  if (n < 0)
    n = 0;
  if ((n + 17) > h)
    n = h - 16;
  xx = y - n;
  for (i = 7; i >= 0; i--) {
    x1 = xx * PI;
    wy[7 - i] = (sin(x1) / (x1)) * (sin(x1 * 0.125) / (x1 * 0.125));
    xxx = (float)(2 * i + 1) - xx;
    x1 = xxx * PI;
    wy[8 + i] = (sin(x1) / (x1)) * (sin(x1 * 0.125) / (x1 * 0.125));
    xx = xx - 1.0;
  }
  xx = x - m;
  for (i = 7; i >= 0; i--) {
    x1 = xx * PI;
    wx[7 - i] = (sin(x1) / (x1)) * (sin(x1 * 0.125) / (x1 * 0.125));
    xxx = (float)(2 * i + 1) - xx;
    x1 = xxx * PI;
    wx[8 + i] = (sin(x1) / (x1)) * (sin(x1 * 0.125) / (x1 * 0.125));
    xx = xx - 1.0;
  }
  for (i = 0; i < 16; i++) {
    p[i] = 0.0;
    for (j = 0; j < 16; j++) {
      p[i] = p[i] + wy[j] * sl[(j + n) * w + i + m];
    }
  }
  pp = 0.0;
  for (i = 0; i < 16; i++)
    pp = pp + wx[i] * p[i];
  if (pp < 0.0)
    pp = 0.0;
  if (pp > 256.0)
    pp = 255.0;
  *v = pp;
  return 0;
}


x86 assembly (clang, -O0):
<interpSC16_b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movss  0xeb5(%rip),%xmm0
movss  %xmm0,-0x110(%rbp)
ff
movss  -0x14(%rbp),%xmm0
call   1040 <ceilf@plt>
sub    $0x8,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    1174 <interpSC16_b+0x54>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x11,%eax
cmp    -0xc(%rbp),%eax
jle    118c <interpSC16_b+0x6c>
mov    -0xc(%rbp),%eax
sub    $0x10,%eax
mov    %eax,-0x2c(%rbp)
movss  -0x18(%rbp),%xmm0
call   1040 <ceilf@plt>
sub    $0x8,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jge    11ad <interpSC16_b+0x8d>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
add    $0x11,%eax
cmp    -0x10(%rbp),%eax
jle    11c5 <interpSC16_b+0xa5>
mov    -0x10(%rbp),%eax
sub    $0x10,%eax
mov    %eax,-0x30(%rbp)
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x30(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movl   $0x7,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1379 <interpSC16_b+0x259>
movss  -0x104(%rbp),%xmm0
ff
mulss  -0x110(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
call   1030 <sin@plt>
divss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xddf(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x120(%rbp),%xmm0
ff
cvtss2sd %xmm1,%xmm1
movss  -0x10c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
movsd  0xdaf(%rip),%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    $0x7,%eax
sub    -0x24(%rbp),%eax
cltq
movss  %xmm0,-0x100(%rbp,%rax,4)
ff ff
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm0
subss  -0x104(%rbp),%xmm0
ff
movss  %xmm0,-0x108(%rbp)
ff
movss  -0x108(%rbp),%xmm0
ff
mulss  -0x110(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
call   1030 <sin@plt>
divss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xd22(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x118(%rbp),%xmm0
ff
cvtss2sd %xmm1,%xmm1
movss  -0x10c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
movsd  0xcf2(%rip),%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x24(%rbp),%eax
add    $0x8,%eax
cltq
movss  %xmm0,-0x100(%rbp,%rax,4)
ff ff
movss  -0x104(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xcb5(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    11e2 <interpSC16_b+0xc2>
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x2c(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movl   $0x7,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     152d <interpSC16_b+0x40d>
movss  -0x104(%rbp),%xmm0
ff
mulss  -0x110(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
call   1030 <sin@plt>
divss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc2b(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x130(%rbp),%xmm0
ff
cvtss2sd %xmm1,%xmm1
movss  -0x10c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
movsd  0xbfb(%rip),%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    $0x7,%eax
sub    -0x24(%rbp),%eax
cltq
movss  %xmm0,-0xc0(%rbp,%rax,4)
ff ff
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm0
subss  -0x104(%rbp),%xmm0
ff
movss  %xmm0,-0x108(%rbp)
ff
movss  -0x108(%rbp),%xmm0
ff
mulss  -0x110(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
call   1030 <sin@plt>
divss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movss  -0x10c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb6e(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x128(%rbp),%xmm0
ff
cvtss2sd %xmm1,%xmm1
movss  -0x10c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
movsd  0xb3e(%rip),%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x24(%rbp),%eax
add    $0x8,%eax
cltq
movss  %xmm0,-0xc0(%rbp,%rax,4)
ff ff
movss  -0x104(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xb01(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1396 <interpSC16_b+0x276>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    15c5 <interpSC16_b+0x4a5>
movslq -0x24(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp,%rax,4)
movl   $0x0,-0x28(%rbp)
cmpl   $0x10,-0x28(%rbp)
jge    15b2 <interpSC16_b+0x492>
movslq -0x24(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm1
movslq -0x28(%rbp),%rax
movss  -0x100(%rbp,%rax,4),%xmm0
ff ff
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    -0x30(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cvtsi2ss %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movslq -0x24(%rbp),%rax
movss  %xmm0,-0x80(%rbp,%rax,4)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1552 <interpSC16_b+0x432>
jmp    15b7 <interpSC16_b+0x497>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1534 <interpSC16_b+0x414>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    1615 <interpSC16_b+0x4f5>
movss  -0x34(%rbp),%xmm1
movslq -0x24(%rbp),%rax
movss  -0xc0(%rbp,%rax,4),%xmm0
ff ff
movslq -0x24(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    15d4 <interpSC16_b+0x4b4>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1633 <interpSC16_b+0x513>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x9c4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    165b <interpSC16_b+0x53b>
movss  0x9ae(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
cvttss2si -0x34(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpSC16_b>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %rcx,0xb8(%rsp)
movss  %xmm1,0x10(%rsp)
mov    %edx,%r13d
mov    %esi,%r15d
mov    %rdi,%rbx
movss  %xmm0,0x1c(%rsp)
call   1040 <ceilf@plt>
mov    %rax,%r12
cmp    $0x9,%r12d
mov    $0x8,%ebp
cmovl  %ebp,%r12d
lea    0x9(%r12),%eax
mov    %eax,0x2c(%rsp)
lea    -0x10(%r15),%eax
mov    %eax,0x28(%rsp)
movss  0x10(%rsp),%xmm0
call   1040 <ceilf@plt>
cmp    $0x9,%eax
cmovge %eax,%ebp
lea    -0x8(%rbp),%eax
add    $0x9,%ebp
lea    -0x10(%r13),%r14d
cmp    %r13d,%ebp
cmovle %eax,%r14d
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  0x10(%rsp),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
mov    $0x1e,%r13d
xor    %ebp,%ebp
movss  0xe45(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movss  %xmm0,0x10(%rsp)
mulss  %xmm2,%xmm0
movss  %xmm0,0x20(%rsp)
call   1030 <sin@plt>
movss  0x20(%rsp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
cvtss2sd %xmm1,%xmm1
movsd  0xe1b(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
call   1030 <sin@plt>
cvtss2sd %xmm0,%xmm0
divsd  0x20(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
lea    -0xf(%r13),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm1,0xc0(%rsp,%rbp,4)
subss  0x10(%rsp),%xmm0
mulss  0xdbc(%rip),%xmm0
movss  %xmm0,0x20(%rsp)
call   1030 <sin@plt>
movss  0x20(%rsp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mulsd  0xd9e(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movss  0xd7b(%rip),%xmm1
movss  0xd6f(%rip),%xmm2
cvtss2sd %xmm0,%xmm0
divsd  0x20(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc0(%rsp,%r13,2)
movss  0x10(%rsp),%xmm0
addss  %xmm1,%xmm0
add    $0x1,%rbp
add    $0xfffffffffffffffe,%r13
cmp    $0x8,%rbp
jne    11c0 <interpSC16_b+0xa0>
add    $0xfffffff8,%r12d
cmp    %r15d,0x2c(%rsp)
cmovg  0x28(%rsp),%r12d
xorps  %xmm0,%xmm0
cvtsi2ss %r12d,%xmm0
movss  0x1c(%rsp),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
mov    $0x1e,%r13d
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movss  %xmm0,0x1c(%rsp)
mulss  %xmm2,%xmm0
movss  %xmm0,0x8(%rsp)
call   1030 <sin@plt>
movss  0x8(%rsp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
cvtss2sd %xmm1,%xmm1
movsd  0xcdb(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
call   1030 <sin@plt>
cvtss2sd %xmm0,%xmm0
divsd  0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
lea    -0xf(%r13),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm1,0x30(%rsp,%rbp,4)
subss  0x1c(%rsp),%xmm0
mulss  0xc7f(%rip),%xmm0
movss  %xmm0,0x8(%rsp)
call   1030 <sin@plt>
movss  0x8(%rsp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mulsd  0xc61(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
cvtsd2ss %xmm0,%xmm0
call   1030 <sin@plt>
movss  0xc3a(%rip),%xmm2
cvtss2sd %xmm0,%xmm0
divsd  0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x30(%rsp,%r13,2)
movss  0x1c(%rsp),%xmm0
addss  0xc15(%rip),%xmm0
add    $0x1,%rbp
add    $0xfffffffffffffffe,%r13
cmp    $0x8,%rbp
jne    1300 <interpSC16_b+0x1e0>
lea    0x1(%r14),%eax
imul   %r15d,%eax
add    %r12d,%eax
imul   %r15d,%r14d
add    %r15d,%r15d
add    %r12d,%r14d
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
mov    %r14d,%edx
mov    %eax,%esi
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movslq %edx,%rdx
movzbl (%rbx,%rdx,1),%ebp
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
mulss  0xc0(%rsp,%rdi,4),%xmm1
addss  %xmm0,%xmm1
movslq %esi,%rsi
movzbl (%rbx,%rsi,1),%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
mulss  0xc4(%rsp,%rdi,4),%xmm0
addss  %xmm1,%xmm0
add    $0x2,%rdi
add    %r15d,%esi
add    %r15d,%edx
cmp    $0x10,%rdi
jne    1430 <interpSC16_b+0x310>
movss  %xmm0,0x70(%rsp,%rcx,4)
add    $0x1,%rcx
add    $0x1,%eax
add    $0x1,%r14d
cmp    $0x10,%rcx
jne    1420 <interpSC16_b+0x300>
movss  0x30(%rsp),%xmm1
movss  0x34(%rsp),%xmm2
mulss  0x70(%rsp),%xmm1
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm1
mulss  0x74(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x38(%rsp),%xmm1
mulss  0x78(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x3c(%rsp),%xmm2
mulss  0x7c(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x40(%rsp),%xmm1
mulss  0x80(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x44(%rsp),%xmm2
mulss  0x84(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x48(%rsp),%xmm1
mulss  0x88(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x4c(%rsp),%xmm2
mulss  0x8c(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x50(%rsp),%xmm1
mulss  0x90(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x54(%rsp),%xmm2
mulss  0x94(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x58(%rsp),%xmm1
mulss  0x98(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x5c(%rsp),%xmm2
mulss  0x9c(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x60(%rsp),%xmm1
mulss  0xa0(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x64(%rsp),%xmm2
mulss  0xa4(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0x68(%rsp),%xmm1
mulss  0xa8(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x6c(%rsp),%xmm2
mulss  0xac(%rsp),%xmm2
addss  %xmm1,%xmm2
maxss  %xmm2,%xmm0
movss  0xa48(%rip),%xmm1
cmpltss %xmm0,%xmm1
movss  0xa3f(%rip),%xmm2
andps  %xmm1,%xmm2
andnps %xmm0,%xmm1
orps   %xmm1,%xmm2
cvttss2si %xmm2,%eax
mov    0xb8(%rsp),%rcx
mov    %al,(%rcx)
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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