user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<interpBC2_b32>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,%r13
  mov    %esi,%ebp
  mov    %edx,%r14d
  movss  %xmm1,0x8(%rsp)
  mov    %rcx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movss  %xmm0,0xc(%rsp)
  call   <ceilf@plt>
  lea    -0x2(%rax),%r12d
  test   %r12d,%r12d
  mov    $0x0,%eax
  cmovs  %eax,%r12d
  lea    0x4(%r12),%edx
  lea    -0x4(%rbp),%eax
  cmp    %ebp,%edx
  cmovge %eax,%r12d
  movss  0x8(%rsp),%xmm0
  call   <ceilf@plt>
  sub    $0x2,%eax
  mov    $0x0,%edx
  cmovs  %edx,%eax
  lea    0x4(%rax),%ecx
  lea    -0x4(%r14),%edx
  cmp    %r14d,%ecx
  cmovge %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  0x8(%rsp),%xmm2
  subss  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm2,%xmm0
  movsd  D94(%rip),%xmm14
  movapd %xmm0,%xmm3
  subsd  %xmm14,%xmm3
  movsd  D50(%rip),%xmm13
  mulsd  %xmm13,%xmm3
  mulsd  %xmm0,%xmm3
  movsd  D18(%rip),%xmm12
  subsd  %xmm12,%xmm3
  mulsd  %xmm0,%xmm3
  movsd  D72(%rip),%xmm11
  addsd  %xmm11,%xmm3
  cvtsd2ss %xmm3,%xmm3
  movss  D78(%rip),%xmm6
  subss  %xmm6,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  movsd  D104(%rip),%xmm0
  movapd %xmm1,%xmm5
  mulsd  %xmm0,%xmm5
  subsd  D26(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  mulsd  %xmm1,%xmm5
  movsd  D118(%rip),%xmm8
  addsd  %xmm8,%xmm5
  cvtsd2ss %xmm5,%xmm5
  movaps %xmm6,%xmm7
  subss  %xmm2,%xmm7
  movaps %xmm7,%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm7,%xmm2
  movapd %xmm2,%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D26(%rip),%xmm4
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm4
  addsd  %xmm8,%xmm4
  cvtsd2ss %xmm4,%xmm4
  addss  %xmm6,%xmm1
  cvtss2sd %xmm1,%xmm1
  movapd %xmm1,%xmm2
  subsd  %xmm14,%xmm2
  mulsd  %xmm13,%xmm2
  mulsd  %xmm1,%xmm2
  subsd  %xmm12,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm11,%xmm2
  cvtsd2ss %xmm2,%xmm2
  pxor   %xmm7,%xmm7
  cvtsi2ss %r12d,%xmm7
  movss  0xc(%rsp),%xmm1
  subss  %xmm7,%xmm1
  pxor   %xmm7,%xmm7
  cvtss2sd %xmm1,%xmm7
  movapd %xmm7,%xmm9
  subsd  %xmm14,%xmm9
  mulsd  %xmm13,%xmm9
  mulsd  %xmm7,%xmm9
  subsd  %xmm12,%xmm9
  mulsd  %xmm7,%xmm9
  addsd  %xmm11,%xmm9
  cvtsd2ss %xmm9,%xmm9
  movaps %xmm1,%xmm7
  subss  %xmm6,%xmm7
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm7,%xmm1
  movapd %xmm1,%xmm10
  mulsd  %xmm0,%xmm10
  subsd  D26(%rip),%xmm10
  mulsd  %xmm1,%xmm10
  mulsd  %xmm1,%xmm10
  addsd  %xmm8,%xmm10
  cvtsd2ss %xmm10,%xmm10
  movaps %xmm6,%xmm1
  subss  %xmm7,%xmm1
  pxor   %xmm15,%xmm15
  cvtss2sd %xmm1,%xmm15
  movapd %xmm0,%xmm7
  mulsd  %xmm15,%xmm7
  subsd  D26(%rip),%xmm7
  mulsd  %xmm15,%xmm7
  mulsd  %xmm15,%xmm7
  addsd  %xmm8,%xmm7
  cvtsd2ss %xmm7,%xmm7
  addss  %xmm6,%xmm1
  cvtss2sd %xmm1,%xmm1
  movapd %xmm1,%xmm8
  subsd  %xmm14,%xmm8
  mulsd  %xmm13,%xmm8
  mulsd  %xmm1,%xmm8
  subsd  %xmm12,%xmm8
  mulsd  %xmm1,%xmm8
  addsd  %xmm11,%xmm8
  cvtsd2ss %xmm8,%xmm8
  imul   %ebp,%eax
  add    %r12d,%eax
  shl    $0x2,%eax
  cltq
  lea    0x10(%r13,%rax,1),%rdi
  lea    0x0(,%rbp,4),%ecx
  movslq %ecx,%rcx
  lea    (%rcx,%rcx,2),%r9
  mov    $0x0,%r8d
  pxor   %xmm6,%xmm6
  jmp    L58
L49:
  pxor   %xmm0,%xmm0
L59:
  cvttss2si %xmm0,%eax
  mov    %al,(%rbx,%r8,1)
  add    $0x1,%r8
  add    $0x1,%rdi
  cmp    $0x4,%r8
  je     L13
L58:
  lea    -0x10(%rdi),%rax
  lea    0x10(%rsp),%rdx
L4:
  movzbl (%rax),%esi
  pxor   %xmm0,%xmm0
  cvtsi2ss %esi,%xmm0
  mulss  %xmm3,%xmm0
  movzbl (%rax,%rcx,1),%esi
  pxor   %xmm1,%xmm1
  cvtsi2ss %esi,%xmm1
  mulss  %xmm5,%xmm1
  addss  %xmm1,%xmm0
  movzbl (%rax,%rcx,2),%esi
  pxor   %xmm1,%xmm1
  cvtsi2ss %esi,%xmm1
  mulss  %xmm4,%xmm1
  addss  %xmm1,%xmm0
  movzbl (%rax,%r9,1),%esi
  pxor   %xmm1,%xmm1
  cvtsi2ss %esi,%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rdx)
  add    $0x4,%rax
  add    $0x4,%rdx
  cmp    %rdi,%rax
  jne    L4
  movaps %xmm9,%xmm1
  mulss  0x10(%rsp),%xmm1
  movaps %xmm10,%xmm0
  mulss  0x14(%rsp),%xmm0
  addss  %xmm1,%xmm0
  movaps %xmm7,%xmm1
  mulss  0x18(%rsp),%xmm1
  addss  %xmm0,%xmm1
  movaps %xmm8,%xmm0
  mulss  0x1c(%rsp),%xmm0
  addss  %xmm1,%xmm0
  comiss %xmm0,%xmm6
  ja     L49
  comiss D124(%rip),%xmm0
  jbe    L59
  movss  D2(%rip),%xmm0
  jmp    L59
L13:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D94
datatype: f64
name: disassemble_data
arguments: data_tag: D50
datatype: f32[2]
name: disassemble_data
arguments: data_tag: D18
datatype: f64
name: disassemble_data
arguments: data_tag: D72
datatype: f64
name: disassemble_data
arguments: data_tag: D78
datatype: f32
name: disassemble_data
arguments: data_tag: D104
datatype: f64
name: disassemble_data
arguments: data_tag: D26
datatype: f64
name: disassemble_data
arguments: data_tag: D118
datatype: f32[2]
name: disassemble_data
arguments: data_tag: D124
datatype: f32
name: disassemble_data
arguments: data_tag: D2
datatype: f32

tool: D94: 5

tool: {"D50": [0.0,-1.8125]}

tool: D18: 6

tool: D72: 3

tool: D78: 1

tool: D104: 1.25

tool: D26: 2.25

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

tool: D124: 256

tool: D2: 255

assistant: ```c
int interpBC2_b32(unsigned char *sl, int w, int h, float x, float y, float o, unsigned char *v, int is_alpha) {
  int b, i, k, l, m, n, u;
  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.75 * (xx - 5.0) * xx - 6.0) * xx + 3.0;
  xx = xx - 1.0;
  wy[1] = (1.25 * xx - 2.25) * xx * xx + 1.0;
  xx = 1.0 - xx;
  wy[2] = (1.25 * xx - 2.25) * xx * xx + 1.0;
  xx = xx + 1.0;
  wy[3] = (-0.75 * (xx - 5.0) * xx - 6.0) * xx + 3.0;
  xx = x - m;
  wx[0] = (-0.75 * (xx - 5.0) * xx - 6.0) * xx + 3.0;
  xx = xx - 1.0;
  wx[1] = (1.25 * xx - 2.25) * xx * xx + 1.0;
  xx = 1.0 - xx;
  wx[2] = (1.25 * xx - 2.25) * xx * xx + 1.0;
  xx = xx + 1.0;
  wx[3] = (-0.75 * (xx - 5.0) * xx - 6.0) * xx + 3.0;
  k = 4 * (n * w + m);
  u = 4 * w;
  for (b = 0; b < 4; b++) {
    for (i = 0; i < 4; i++) {
      p[i] = 0.0;
      l = k + 4 * i;
      p[i] = wy[0] * sl[l];
      l += u;
      p[i] += wy[1] * sl[l];
      l += u;
      p[i] += wy[2] * sl[l];
      l += u;
      p[i] += wy[3] * sl[l];
    }
    k++;
    pp = wx[0] * p[0];
    pp += wx[1] * p[1];
    pp += wx[2] * p[2];
    pp += wx[3] * p[3];
    if (pp < 0.0)
      pp = 0.0;
    if (pp > 256.0)
      pp = 255.0;
    v[b] = pp;
  }
  return 0;
}
```