user: 请将以下的汇编代码转换成C语言代码:

```asm
<interpSC16_b32>:
  endbr64
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  movd   %xmm1,%ebp
  push   %rbx
  sub    $0x108,%rsp
  mov    %rdi,0x20(%rsp)
  lea    0xec(%rsp),%r15
  mov    %esi,0x2c(%rsp)
  mov    %rcx,0x10(%rsp)
  movss  %xmm0,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  call   <ceilf@plt>
  movd   %ebp,%xmm0
  lea    -0x8(%rax),%ebx
  xor    %eax,%eax
  test   %ebx,%ebx
  cmovns %ebx,%eax
  lea    0x10(%rax),%edx
  mov    %eax,%ebx
  lea    -0x10(%r14),%eax
  cmp    %r14d,%edx
  lea    0xb0(%rsp),%r14
  cmovl  %ebx,%eax
  mov    %eax,0x1c(%rsp)
  call   <ceilf@plt>
  pxor   %xmm0,%xmm0
  movd   %ebp,%xmm6
  mov    $0xf,%ebp
  lea    -0x8(%rax),%r13d
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovs  %eax,%r13d
  lea    -0x10(%r12),%eax
  lea    0x10(%r13),%edx
  cmp    %r12d,%edx
  cmovge %eax,%r13d
  xor    %r12d,%r12d
  cvtsi2ss %r13d,%xmm0
  subss  %xmm0,%xmm6
  movss  %xmm6,0x8(%rsp)
L21:
  movss  D105(%rip),%xmm3
  mulss  0x8(%rsp),%xmm3
  movaps %xmm3,%xmm0
  movss  %xmm3,0xc(%rsp)
  call   <sin@plt>
  movss  0xc(%rsp),%xmm3
  movss  %xmm0,0x18(%rsp)
  movss  D73(%rip),%xmm0
  mulss  %xmm3,%xmm0
  call   <sin@plt>
  movss  0xc(%rsp),%xmm3
  pxor   %xmm1,%xmm1
  mov    %r12,%rax
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movss  0x18(%rsp),%xmm2
  neg    %rax
  cvtss2sd %xmm3,%xmm0
  mulsd  D139(%rip),%xmm0
  divss  %xmm3,%xmm2
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2ss %ebp,%xmm2
  subss  0x8(%rsp),%xmm2
  sub    $0x2,%ebp
  mulss  D105(%rip),%xmm2
  movss  %xmm2,0xc(%rsp)
  mulsd  %xmm0,%xmm1
  movaps %xmm2,%xmm0
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%rax,%r14,1)
  call   <sin@plt>
  movss  0xc(%rsp),%xmm2
  movss  %xmm0,0x18(%rsp)
  movss  D73(%rip),%xmm0
  mulss  %xmm2,%xmm0
  call   <sin@plt>
  movss  0xc(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  movss  0x18(%rsp),%xmm3
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movss  0x8(%rsp),%xmm4
  subss  D68(%rip),%xmm4
  cvtss2sd %xmm2,%xmm0
  mulsd  D139(%rip),%xmm0
  divss  %xmm2,%xmm3
  movss  %xmm4,0x8(%rsp)
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm3,%xmm0
  mulsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%r15,%r12,1)
  sub    $0x4,%r12
  cmp    $0xffffffff,%ebp
  jne    L21
  pxor   %xmm0,%xmm0
  movss  0x28(%rsp),%xmm7
  xor    %r12d,%r12d
  mov    $0xf,%ebp
  cvtsi2ssl 0x1c(%rsp),%xmm0
  lea    0x70(%rsp),%r15
  lea    0xac(%rsp),%rbx
  subss  %xmm0,%xmm7
  movss  %xmm7,0x8(%rsp)
L80:
  movss  D105(%rip),%xmm3
  mulss  0x8(%rsp),%xmm3
  movaps %xmm3,%xmm0
  movss  %xmm3,0xc(%rsp)
  call   <sin@plt>
  movss  0xc(%rsp),%xmm3
  movss  %xmm0,0x18(%rsp)
  movss  D73(%rip),%xmm0
  mulss  %xmm3,%xmm0
  call   <sin@plt>
  movss  0xc(%rsp),%xmm3
  pxor   %xmm1,%xmm1
  mov    %r12,%rax
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movss  0x18(%rsp),%xmm2
  neg    %rax
  cvtss2sd %xmm3,%xmm0
  mulsd  D139(%rip),%xmm0
  divss  %xmm3,%xmm2
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2ss %ebp,%xmm2
  subss  0x8(%rsp),%xmm2
  sub    $0x2,%ebp
  mulss  D105(%rip),%xmm2
  movss  %xmm2,0xc(%rsp)
  mulsd  %xmm0,%xmm1
  movaps %xmm2,%xmm0
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%r15,%rax,1)
  call   <sin@plt>
  movss  0xc(%rsp),%xmm2
  movss  %xmm0,0x18(%rsp)
  movss  D73(%rip),%xmm0
  mulss  %xmm2,%xmm0
  call   <sin@plt>
  movss  0xc(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  movss  0x18(%rsp),%xmm3
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  movss  0x8(%rsp),%xmm5
  subss  D68(%rip),%xmm5
  cvtss2sd %xmm2,%xmm0
  mulsd  D139(%rip),%xmm0
  divss  %xmm2,%xmm3
  movss  %xmm5,0x8(%rsp)
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm3,%xmm0
  mulsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%rbx,%r12,1)
  sub    $0x4,%r12
  cmp    $0xffffffff,%ebp
  jne    L80
  mov    0x2c(%rsp),%ebx
  mov    %r13d,%eax
  mov    0x20(%rsp),%rdi
  xor    %r12d,%r12d
  pxor   %xmm2,%xmm2
  imul   %ebx,%eax
  add    0x1c(%rsp),%eax
  lea    0x0(,%rbx,4),%esi
  cltq
  movslq %esi,%rsi
  lea    0x30(%rsp),%rbx
  lea    (%rdi,%rax,4),%rbp
  lea    0xf0(%rsp),%rdi
L90:
  pxor   %xmm0,%xmm0
  lea    0x0(%rbp,%r12,1),%r11
  xor    %r10d,%r10d
  movaps %xmm0,(%rbx)
  movaps %xmm0,0x10(%rbx)
  movaps %xmm0,0x20(%rbx)
  movaps %xmm0,0x30(%rbx)
  xchg   %ax,%ax
L24:
  mov    %r14,%rax
  mov    %r11,%rdx
  movaps %xmm2,%xmm1
  nopl   0x0(%rax)
L30:
  movzbl (%rdx),%ecx
  pxor   %xmm0,%xmm0
  add    $0x4,%rax
  add    %rsi,%rdx
  cvtsi2ss %ecx,%xmm0
  mulss  -0x4(%rax),%xmm0
  addss  %xmm0,%xmm1
  cmp    %rax,%rdi
  jne    L30
  movss  %xmm1,(%rbx,%r10,4)
  add    $0x1,%r10
  add    $0x4,%r11
  cmp    $0x10,%r10
  jne    L24
  xor    %eax,%eax
  movaps %xmm2,%xmm1
  nopl   0x0(%rax)
L95:
  movss  (%r15,%rax,1),%xmm0
  mulss  (%rbx,%rax,1),%xmm0
  add    $0x4,%rax
  addss  %xmm0,%xmm1
  cmp    $0x40,%rax
  jne    L95
  xor    %eax,%eax
  comiss %xmm1,%xmm2
  ja     L79
  comiss D20(%rip),%xmm1
  mov    $0xffffffff,%eax
  jbe    L7
L79:
  mov    0x10(%rsp),%rcx
  mov    %al,(%rcx,%r12,1)
  add    $0x1,%r12
  cmp    $0x4,%r12
  jne    L90
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x108,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L7:
  cvttss2si %xmm1,%eax
  jmp    L79
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D105
type: f32
name: parse_data
arguments: data_tag: D73
type: f32
name: parse_data
arguments: data_tag: D139
type: f32[2]
name: parse_data
arguments: data_tag: D68
type: f32
name: parse_data
arguments: data_tag: D20
type: f32

tool: D105: 3.141592654

tool: D73: 0.125

tool: {"D139": [0.0,1.5]}

tool: D68: 1

tool: D20: 256

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