user: What would the C source look like for the assembly code provided here:

```asm
<polint>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r14
  mov    %rsi,%rbx
  mov    %edx,%r15d
  mov    %edx,0x4c(%rsp)
  movsd  %xmm0,0x28(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r8,0x40(%rsp)
  subsd  0x8(%rdi),%xmm0
  andpd  D30(%rip),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    %edx,%esi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <vector@plt>
  mov    %rax,%rbp
  mov    %r15d,%esi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <vector@plt>
  mov    %rax,%r12
  test   %r15d,%r15d
  jle    L60
  lea    0x1(%r15),%ecx
  mov    $0x1,%eax
  mov    $0x1,%edx
  movq   D30(%rip),%xmm1
L18:
  movsd  0x28(%rsp),%xmm0
  subsd  (%r14,%rax,8),%xmm0
  andpd  %xmm1,%xmm0
  movsd  0x8(%rsp),%xmm7
  comisd %xmm0,%xmm7
  minsd  %xmm7,%xmm0
  movsd  %xmm0,0x8(%rsp)
  cmova  %eax,%edx
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  movsd  %xmm0,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L18
L13:
  lea    -0x1(%rdx),%eax
  mov    %eax,0x34(%rsp)
  movslq %edx,%rdx
  movsd  (%rbx,%rdx,8),%xmm0
  mov    0x38(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x4c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L56
  sub    $0x1,%eax
  mov    %eax,0x48(%rsp)
  lea    0x8(%r14),%r13
  jmp    L63
L60:
  mov    $0x1,%edx
  jmp    L13
L67:
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <nrerror@plt>
L99:
  movsd  0x18(%rsp),%xmm0
  divsd  0x20(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%r12,%rbx,8)
  mulsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%r15d
  jl     L95
L90:
  movsd  (%r14,%rbx,8),%xmm0
  movapd %xmm0,%xmm2
  movsd  0x28(%rsp),%xmm4
  subsd  %xmm4,%xmm2
  movsd  %xmm2,0x8(%rsp)
  movsd  0x0(%r13,%rbx,8),%xmm0
  movapd %xmm0,%xmm3
  subsd  %xmm4,%xmm3
  movsd  %xmm3,0x10(%rsp)
  movsd  0x8(%rbp,%rbx,8),%xmm0
  subsd  (%r12,%rbx,8),%xmm0
  movsd  %xmm0,0x18(%rsp)
  subsd  %xmm3,%xmm2
  movsd  %xmm2,0x20(%rsp)
  ucomisd D31(%rip),%xmm2
  jp     L99
  jne    L99
  jmp    L67
L95:
  mov    0x34(%rsp),%esi
  lea    (%rsi,%rsi,1),%eax
  cmp    %r15d,%eax
  jge    L137
  movslq %esi,%rax
  movsd  0x8(%rbp,%rax,8),%xmm0
L110:
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x38(%rsp),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%r13
  subl   $0x1,0x48(%rsp)
  je     L56
L63:
  mov    0x48(%rsp),%eax
  mov    %eax,%r15d
  mov    $0x1,%ebx
  test   %eax,%eax
  jg     L90
  jmp    L95
L137:
  mov    0x34(%rsp),%ecx
  movslq %ecx,%rax
  movsd  (%r12,%rax,8),%xmm0
  lea    -0x1(%rcx),%eax
  mov    %eax,0x34(%rsp)
  jmp    L110
L56:
  mov    0x4c(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <free_vector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <free_vector@plt>
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D30
type: qword[2]
name: extract_symbolic_data
arguments: tag: D27
type: string
name: extract_symbolic_data
arguments: tag: D31
type: f64

tool: {"D30": [0x7fffffffffffffff,0x0000000000000000]}

tool: D27: Error in routine POLINT

tool: D31: 0

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);
}
```