user: Converte this assembly snippet into its equivalent C code:

```asm
<polint>:
  endbr64
  push   %r15
  pxor   %xmm4,%xmm4
  xor    %eax,%eax
  push   %r14
  cvtsd2ss %xmm0,%xmm4
  movaps %xmm4,%xmm1
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %edx,%esi
  sub    $0x38,%rsp
  subss  0x4(%rdi),%xmm1
  mov    $0x1,%edi
  movss  D5(%rip),%xmm2
  mov    %edx,0x2c(%rsp)
  mov    %rcx,0x18(%rsp)
  andps  %xmm2,%xmm1
  mov    %r8,0x20(%rsp)
  movss  %xmm4,0x8(%rsp)
  movss  %xmm1,0x4(%rsp)
  call   <vector@plt>
  mov    %r13d,%esi
  mov    $0x1,%edi
  mov    %rax,%r14
  xor    %eax,%eax
  call   <vector@plt>
  mov    %rax,%r15
  test   %r13d,%r13d
  jle    L56
  movss  0x8(%rsp),%xmm4
  movss  0x4(%rsp),%xmm1
  lea    0x1(%r13),%ecx
  mov    $0x1,%eax
  mov    $0x1,%edx
  movss  D5(%rip),%xmm2
  xchg   %ax,%ax
L65:
  movaps %xmm4,%xmm0
  subss  0x0(%rbp,%rax,4),%xmm0
  andps  %xmm2,%xmm0
  comiss %xmm0,%xmm1
  minss  %xmm1,%xmm0
  movaps %xmm0,%xmm1
  movss  (%rbx,%rax,4),%xmm0
  cmova  %eax,%edx
  movss  %xmm0,(%r14,%rax,4)
  movss  %xmm0,(%r15,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L65
  lea    -0x1(%rdx),%eax
  movslq %edx,%rdx
  mov    %eax,0x28(%rsp)
  movss  (%rbx,%rdx,4),%xmm0
  mov    0x18(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x2c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L49
  lea    -0x1(%rax),%r12d
  lea    0x4(%rbp),%r13
  pxor   %xmm5,%xmm5
  nopl   0x0(%rax)
L116:
  mov    $0x1,%ebx
  jmp    L110
  nop
L98:
  divss  %xmm3,%xmm1
  mulss  %xmm1,%xmm2
  mulss  %xmm1,%xmm0
  movss  %xmm2,(%r15,%rbx,4)
  movss  %xmm0,(%r14,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jl     L97
L110:
  movss  0x0(%rbp,%rbx,4),%xmm0
  movss  0x0(%r13,%rbx,4),%xmm2
  movss  0x4(%r14,%rbx,4),%xmm1
  subss  (%r15,%rbx,4),%xmm1
  subss  %xmm4,%xmm0
  subss  %xmm4,%xmm2
  movaps %xmm0,%xmm3
  subss  %xmm2,%xmm3
  ucomiss %xmm5,%xmm3
  jp     L98
  jne    L98
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  movss  %xmm4,0x14(%rsp)
  movss  %xmm3,0x10(%rsp)
  movss  %xmm1,0xc(%rsp)
  movss  %xmm2,0x8(%rsp)
  movss  %xmm0,0x4(%rsp)
  call   <nrerror@plt>
  movss  0x14(%rsp),%xmm4
  pxor   %xmm5,%xmm5
  movss  0x10(%rsp),%xmm3
  movss  0xc(%rsp),%xmm1
  movss  0x8(%rsp),%xmm2
  movss  0x4(%rsp),%xmm0
  jmp    L98
  nopl   0x0(%rax,%rax,1)
L97:
  movslq 0x28(%rsp),%rax
  lea    (%rax,%rax,1),%esi
  cmp    %r12d,%esi
  jge    L74
  movss  0x4(%r14,%rax,4),%xmm0
L48:
  mov    0x20(%rsp),%rax
  add    $0x4,%r13
  movss  %xmm0,(%rax)
  mov    0x18(%rsp),%rax
  addss  (%rax),%xmm0
  movss  %xmm0,(%rax)
  sub    $0x1,%r12d
  jne    L116
L49:
  mov    0x2c(%rsp),%ebx
  mov    %r15,%rdi
  mov    $0x1,%esi
  xor    %eax,%eax
  mov    %ebx,%edx
  call   <free_vector@plt>
  add    $0x38,%rsp
  mov    %ebx,%edx
  mov    %r14,%rdi
  pop    %rbx
  mov    $0x1,%esi
  pop    %rbp
  xor    %eax,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free_vector@plt>
  nopl   0x0(%rax)
L74:
  subl   $0x1,0x28(%rsp)
  movss  (%r15,%rax,4),%xmm0
  jmp    L48
L56:
  movss  0x4(%rbx),%xmm0
  mov    0x18(%rsp),%rax
  movss  %xmm0,(%rax)
  jmp    L49
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
type_guessed: dword
name: disassemble_data
arguments: data_tag: D21
type_guessed: string

tool: D5: 2147483647

tool: D21: Error in routine POLINT

assistant: ```c
void polint(xa, ya, n, x, y, dy) float xa[], ya[], x, *y, *dy;
int n;
{
  int i, m, ns = 1;
  float den, dif, dift, ho, hp, w;
  float *c, *d, *vector();
  void nrerror(), free_vector();
  dif = fabs(x - xa[1]);
  c = vector(1, n);
  d = vector(1, n);
  for (i = 1; i <= n; i++) {
    if ((dift = fabs(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 = xa[i] - x;
      hp = xa[i + m] - x;
      w = c[i + 1] - d[i];
      if ((den = ho - hp) == 0.0)
        nrerror("Error in routine POLINT");
      den = w / den;
      d[i] = hp * den;
      c[i] = ho * den;
    }
    *y += (*dy = (2 * ns < (n - m) ? c[ns + 1] : d[ns--]));
  }
  free_vector(d, 1, n);
  free_vector(c, 1, n);
}
```