user: Translate the below assembly code into C programming language:

```asm
<polint>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm1
  xor    %eax,%eax
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %edx,%esi
  sub    $0x48,%rsp
  subsd  0x8(%rdi),%xmm1
  movq   D17(%rip),%xmm2
  mov    $0x1,%edi
  mov    %edx,0x3c(%rsp)
  mov    %rcx,0x28(%rsp)
  andpd  %xmm2,%xmm1
  mov    %r8,0x30(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,(%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    L28
  movsd  0x8(%rsp),%xmm4
  movq   D17(%rip),%xmm2
  lea    0x1(%r13),%ecx
  mov    $0x1,%eax
  movsd  (%rsp),%xmm1
  mov    $0x1,%edx
  cs nopw 0x0(%rax,%rax,1)
L4:
  movapd %xmm4,%xmm0
  subsd  0x0(%rbp,%rax,8),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm0,%xmm1
  minsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  movsd  (%rbx,%rax,8),%xmm0
  cmova  %eax,%edx
  movsd  %xmm0,(%r14,%rax,8)
  movsd  %xmm0,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L4
  lea    -0x1(%rdx),%eax
  movslq %edx,%rdx
  mov    %eax,0x38(%rsp)
  movsd  (%rbx,%rdx,8),%xmm0
  mov    0x28(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x3c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L48
  lea    -0x1(%rax),%r12d
  lea    0x8(%rbp),%r13
  pxor   %xmm5,%xmm5
  nopl   0x0(%rax,%rax,1)
L115:
  mov    $0x1,%ebx
  jmp    L43
  nopw   0x0(%rax,%rax,1)
L5:
  divsd  %xmm3,%xmm1
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  movsd  %xmm2,(%r15,%rbx,8)
  movsd  %xmm0,(%r14,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jl     L87
L43:
  movsd  0x0(%rbp,%rbx,8),%xmm0
  movsd  0x0(%r13,%rbx,8),%xmm2
  movsd  0x8(%r14,%rbx,8),%xmm1
  subsd  (%r15,%rbx,8),%xmm1
  subsd  %xmm4,%xmm0
  subsd  %xmm4,%xmm2
  movapd %xmm0,%xmm3
  subsd  %xmm2,%xmm3
  ucomisd %xmm5,%xmm3
  jp     L5
  jne    L5
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm0,(%rsp)
  call   <nrerror@plt>
  movsd  0x20(%rsp),%xmm4
  movsd  (%rsp),%xmm0
  pxor   %xmm5,%xmm5
  movsd  0x18(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm2
  jmp    L5
  nopl   0x0(%rax,%rax,1)
L87:
  movslq 0x38(%rsp),%rax
  lea    (%rax,%rax,1),%esi
  cmp    %r12d,%esi
  jge    L61
  movsd  0x8(%r14,%rax,8),%xmm0
L42:
  mov    0x30(%rsp),%rax
  add    $0x8,%r13
  movsd  %xmm0,(%rax)
  mov    0x28(%rsp),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  sub    $0x1,%r12d
  jne    L115
L48:
  mov    0x3c(%rsp),%ebx
  mov    %r15,%rdi
  mov    $0x1,%esi
  xor    %eax,%eax
  mov    %ebx,%edx
  call   <free_vector@plt>
  add    $0x48,%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)
L61:
  subl   $0x1,0x38(%rsp)
  movsd  (%r15,%rax,8),%xmm0
  jmp    L42
L28:
  movsd  0x8(%rbx),%xmm0
  mov    0x28(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L48
```

tool_calls: name: disassemble_data
arguments: data_label: D17
type_infered: qword
name: disassemble_data
arguments: data_label: D11
type_infered: string

tool: D17: 9223372036854775807

tool: D11: Error in routine POLINT

assistant: ```c
void polint(xa, ya, n, x, y, dy) double xa[], ya[], x, *y, *dy;
int n;
{
  int i, m, ns = 1;
  double den, dif, dift, ho, hp, w;
  double *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);
}
```