user: Please show me the C implementation that matches the assembly code listed below:

```asm
<interpSP6_b32>:
  endbr64
  push   %r15
  movd   %xmm1,%r15d
  push   %r14
  mov    %edx,%r14d
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movss  %xmm0,0xc(%rsp)
  call   <ceilf@plt>
  movd   %r15d,%xmm0
  lea    -0x3(%rax),%r13d
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovs  %eax,%r13d
  lea    -0x6(%r12),%eax
  lea    0x6(%r13),%edx
  cmp    %r12d,%edx
  cmovge %eax,%r13d
  call   <ceilf@plt>
  mov    $0x0,%edx
  pxor   %xmm0,%xmm0
  movsd  D123(%rip),%xmm10
  sub    $0x3,%eax
  movd   %r15d,%xmm5
  movsd  D164(%rip),%xmm2
  movsd  D116(%rip),%xmm9
  cmovs  %edx,%eax
  lea    -0x6(%r14),%edx
  movss  D8(%rip),%xmm6
  movsd  D51(%rip),%xmm7
  pxor   %xmm1,%xmm1
  movss  0xc(%rsp),%xmm8
  movsd  D62(%rip),%xmm4
  lea    0x0(,%r12,4),%esi
  lea    0x6(%rax),%ecx
  movslq %esi,%rsi
  movsd  D111(%rip),%xmm12
  movsd  D20(%rip),%xmm11
  cmp    %r14d,%ecx
  lea    0x50(%rsp),%r10
  lea    0x68(%rsp),%rdi
  movsd  D151(%rip),%xmm14
  cmovge %edx,%eax
  lea    0x10(%rsp),%r9
  xor    %r11d,%r11d
  movsd  D46(%rip),%xmm13
  cvtsi2ss %eax,%xmm0
  imul   %r12d,%eax
  subss  %xmm0,%xmm5
  pxor   %xmm0,%xmm0
  add    %r13d,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rbp
  cvtss2sd %xmm5,%xmm0
  subsd  %xmm10,%xmm0
  subss  %xmm6,%xmm5
  movapd %xmm0,%xmm3
  cvtss2sd %xmm5,%xmm1
  subsd  %xmm7,%xmm1
  subss  %xmm6,%xmm5
  mulsd  %xmm2,%xmm3
  subsd  %xmm9,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  D42(%rip),%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  cvtsd2ss %xmm3,%xmm3
  addsd  %xmm12,%xmm0
  mulsd  %xmm1,%xmm0
  subsd  %xmm11,%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm5,%xmm1
  movapd %xmm1,%xmm15
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x54(%rsp)
  movsd  D5(%rip),%xmm0
  mulsd  %xmm0,%xmm15
  subsd  %xmm14,%xmm15
  mulsd  %xmm1,%xmm15
  addsd  %xmm13,%xmm15
  mulsd  %xmm1,%xmm15
  movaps %xmm6,%xmm1
  subss  %xmm5,%xmm1
  addsd  %xmm7,%xmm15
  cvtsd2ss %xmm15,%xmm15
  movss  %xmm15,0x58(%rsp)
  pxor   %xmm15,%xmm15
  cvtss2sd %xmm1,%xmm15
  movapd %xmm15,%xmm5
  addss  %xmm6,%xmm1
  mulsd  %xmm0,%xmm5
  subsd  %xmm14,%xmm5
  mulsd  %xmm15,%xmm5
  addsd  %xmm13,%xmm5
  mulsd  %xmm15,%xmm5
  pxor   %xmm15,%xmm15
  cvtss2sd %xmm1,%xmm15
  subsd  %xmm7,%xmm15
  addss  %xmm6,%xmm1
  cvtss2sd %xmm1,%xmm1
  subsd  %xmm10,%xmm1
  addsd  %xmm7,%xmm5
  cvtsd2ss %xmm5,%xmm5
  movss  %xmm5,0x5c(%rsp)
  movapd %xmm15,%xmm5
  mulsd  %xmm4,%xmm5
  addsd  %xmm12,%xmm5
  mulsd  %xmm15,%xmm5
  subsd  %xmm11,%xmm5
  mulsd  %xmm15,%xmm5
  pxor   %xmm15,%xmm15
  cvtsd2ss %xmm5,%xmm5
  movss  %xmm5,0x60(%rsp)
  movapd %xmm1,%xmm5
  mulsd  %xmm2,%xmm5
  subsd  %xmm9,%xmm5
  mulsd  %xmm1,%xmm5
  addsd  D42(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  movaps %xmm8,%xmm1
  pxor   %xmm8,%xmm8
  cvtsd2ss %xmm5,%xmm5
  movss  %xmm5,0x64(%rsp)
  pxor   %xmm5,%xmm5
  cvtsi2ss %r13d,%xmm5
  subss  %xmm5,%xmm1
  cvtss2sd %xmm1,%xmm15
  subsd  %xmm10,%xmm15
  subss  %xmm6,%xmm1
  movapd %xmm15,%xmm5
  mulsd  %xmm2,%xmm5
  subsd  %xmm9,%xmm5
  mulsd  %xmm15,%xmm5
  addsd  D42(%rip),%xmm5
  mulsd  %xmm15,%xmm5
  pxor   %xmm15,%xmm15
  cvtss2sd %xmm1,%xmm15
  subsd  %xmm7,%xmm15
  subss  %xmm6,%xmm1
  cvtsd2ss %xmm5,%xmm8
  movapd %xmm15,%xmm5
  mulsd  %xmm4,%xmm5
  addsd  %xmm12,%xmm5
  mulsd  %xmm15,%xmm5
  subsd  %xmm11,%xmm5
  mulsd  %xmm15,%xmm5
  pxor   %xmm15,%xmm15
  cvtss2sd %xmm1,%xmm15
  cvtsd2ss %xmm5,%xmm5
  movss  %xmm5,0x34(%rsp)
  movapd %xmm15,%xmm5
  mulsd  %xmm0,%xmm5
  subsd  %xmm14,%xmm5
  mulsd  %xmm15,%xmm5
  addsd  %xmm13,%xmm5
  mulsd  %xmm15,%xmm5
  addsd  %xmm7,%xmm5
  cvtsd2ss %xmm5,%xmm5
  movss  %xmm5,0x38(%rsp)
  movaps %xmm6,%xmm5
  subss  %xmm1,%xmm5
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm5,%xmm1
  mulsd  %xmm1,%xmm0
  addss  %xmm6,%xmm5
  subsd  %xmm14,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm13,%xmm0
  mulsd  %xmm1,%xmm0
  movaps %xmm5,%xmm1
  cvtss2sd %xmm5,%xmm5
  subsd  %xmm7,%xmm5
  addss  %xmm6,%xmm1
  mulsd  %xmm5,%xmm4
  cvtss2sd %xmm1,%xmm1
  subsd  %xmm10,%xmm1
  addsd  %xmm7,%xmm0
  mulsd  %xmm1,%xmm2
  addsd  %xmm12,%xmm4
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x3c(%rsp)
  mulsd  %xmm5,%xmm4
  movapd %xmm4,%xmm0
  pxor   %xmm4,%xmm4
  subsd  %xmm11,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  D150(%rip),%xmm5
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x40(%rsp)
  movapd %xmm2,%xmm0
  subsd  %xmm9,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D42(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x44(%rsp)
L99:
  movq   $0x0,0x10(%r9)
  pxor   %xmm0,%xmm0
  lea    0x0(%rbp,%r11,1),%r12
  xor    %r8d,%r8d
  movaps %xmm0,(%r9)
L81:
  mov    %r10,%rax
  movaps %xmm3,%xmm2
  movaps %xmm4,%xmm1
  mov    %r12,%rdx
  jmp    L90
  xchg   %ax,%ax
L31:
  movss  (%rax),%xmm2
L90:
  movzbl (%rdx),%ecx
  pxor   %xmm0,%xmm0
  add    $0x4,%rax
  add    %rsi,%rdx
  cvtsi2ss %ecx,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  cmp    %rax,%rdi
  jne    L31
  movss  %xmm1,(%r9,%r8,4)
  add    $0x1,%r8
  add    $0x4,%r12
  cmp    $0x6,%r8
  jne    L81
  movaps %xmm8,%xmm0
  xor    %eax,%eax
  movaps %xmm4,%xmm1
  jmp    L64
  nopw   0x0(%rax,%rax,1)
L98:
  movss  0x30(%rsp,%rax,1),%xmm0
L64:
  mulss  (%r9,%rax,1),%xmm0
  add    $0x4,%rax
  addss  %xmm0,%xmm1
  cmp    $0x18,%rax
  jne    L98
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm5,%xmm1
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  cvtsd2ss %xmm1,%xmm0
  comiss %xmm0,%xmm4
  ja     L58
  comiss D81(%rip),%xmm0
  mov    $0xffffffff,%eax
  jbe    L24
L58:
  mov    %al,(%rbx,%r11,1)
  add    $0x1,%r11
  cmp    $0x4,%r11
  jne    L99
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L24:
  cvttss2si %xmm0,%eax
  jmp    L58
L47:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D123
datatype: f64
name: parse_data
arguments: tag: D164
datatype: f64
name: parse_data
arguments: tag: D116
datatype: f64
name: parse_data
arguments: tag: D8
datatype: f32
name: parse_data
arguments: tag: D51
datatype: f32[2]
name: parse_data
arguments: tag: D62
datatype: byte[8]
name: parse_data
arguments: tag: D111
datatype: f64
name: parse_data
arguments: tag: D20
datatype: f64
name: parse_data
arguments: tag: D151
datatype: f64
name: parse_data
arguments: tag: D46
datatype: f64
name: parse_data
arguments: tag: D42
datatype: f64
name: parse_data
arguments: tag: D5
datatype: f64
name: parse_data
arguments: tag: D150
datatype: f64
name: parse_data
arguments: tag: D81
datatype: f32

tool: D123: 2

tool: D164: 0.090909

tool: D116: 0.215311

tool: D8: 1

tool: {"D51": [0.0,1.875]}

tool: {"D62": [0xdc,0x11,0x4e,0x0b,0x5e,0x74,0xe1,0xbf]}

tool: D111: 1.291866

tool: D20: 0.746411

tool: D151: 2.167464

tool: D46: 0.014354

tool: D42: 0.124402

tool: D5: 1.181818

tool: D150: 0.947

tool: D81: 256

assistant: ```c
int interpSP6_b32(unsigned char *sl, int w, int h, float x, float y, unsigned char *v) {
  int i, b, 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 (b = 0; b < 4; b++) {
    for (i = 0; i < 6; i++) {
      p[i] = 0.0;
      for (j = 0; j < 6; j++) {
        p[i] = p[i] + wy[j] * sl[4 * ((j + n) * w + i + m) + b];
      }
    }
    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[b] = pp;
  }
  return 0;
}
```