user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<polint>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %ecx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    D26(%rip),%eax
  cmp    %eax,-0x44(%rbp)
  jle    L76
  mov    D26(%rip),%eax
  test   %eax,%eax
  jne    L43
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,D146(%rip)
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,D152(%rip)
  jmp    L79
L43:
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    D146(%rip),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,D18(%rip)
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    D152(%rip),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,D18(%rip)
L79:
  mov    -0x44(%rbp),%eax
  mov    %eax,D18(%rip)
L76:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  D18(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L62
L72:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  sub    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  D18(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x18(%rbp),%xmm0
  comiss -0x4(%rbp),%xmm0
  jbe    L131
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
L131:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    D18(%rip),%rcx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    D18(%rip),%rcx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L62:
  mov    -0x24(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L72
  mov    -0x1c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x50(%rbp),%rax
  movss  %xmm0,(%rax)
  movl   $0x1,-0x20(%rbp)
  jmp    L22
L115:
  movl   $0x1,-0x24(%rbp)
  jmp    L90
L52:
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x48(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x48(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    D18(%rip),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    D18(%rip),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x14(%rbp),%xmm0
  subss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x8(%rbp),%xmm0
  jp     L124
  pxor   %xmm0,%xmm0
  ucomiss -0x8(%rbp),%xmm0
  jne    L124
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L124:
  movss  -0xc(%rbp),%xmm0
  divss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    D18(%rip),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  movss  -0x10(%rbp),%xmm0
  mulss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    D18(%rip),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  movss  -0x14(%rbp),%xmm0
  mulss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L90:
  mov    -0x44(%rbp),%eax
  sub    -0x20(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L52
  mov    -0x1c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x44(%rbp),%eax
  sub    -0x20(%rbp),%eax
  cmp    %eax,%edx
  jge    L118
  mov    D18(%rip),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  jmp    L48
L118:
  mov    D18(%rip),%rcx
  mov    -0x1c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x1c(%rbp)
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rcx,%rax
  movss  (%rax),%xmm0
L48:
  mov    -0x58(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x50(%rbp),%rax
  movss  %xmm0,(%rax)
  addl   $0x1,-0x20(%rbp)
L22:
  mov    -0x20(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L115
  nop
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D18
type: dword
name: disassemble_data
arguments: data_tag: D84
type: string

tool: D18: 2147483647

tool: D84: Error in polint


assistant: ```c
void polint(int *xa, float *ya, int n, int x, float *y, float *dy) {
  int i, m, ns = 0;
  float den, dif, dift, ho, hp, w;
  static int pol_n = 0;
  static float *c, *d;
  if (n > pol_n) {
    if (pol_n == 0) {
      c = (float *)malloc(sizeof(float) * n);
      d = (float *)malloc(sizeof(float) * n);
    } else {
      c = (float *)realloc(c, sizeof(float) * n);
      d = (float *)realloc(d, sizeof(float) * n);
    }
    pol_n = n;
  }
  dif = fabsf((float)(x - xa[0]));
  for (i = 0; i < n; i++) {
    if ((dift = fabsf((float)(x - xa[i]))) < dif) {
      ns = i;
      dif = dift;
    }
    c[i] = ya[i];
    d[i] = ya[i];
  }
  *y = ya[ns--];
  for (m = 1; m < n; m++) {
    for (i = 1; i <= (n - m); i++) {
      ho = (float)xa[i - 1] - x;
      hp = (float)xa[i + m - 1] - x;
      w = c[i] - d[i - 1];
      if ((den = ho - hp) == 0.0)
        printf("Error in polint\n");
      den = w / den;
      d[i - 1] = hp * den;
      c[i - 1] = ho * den;
    }
    *y += (*dy = (2 * ns < (n - m) ? c[ns + 1] : d[(ns--) - 1]));
  }
}
```