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

```asm
<ratint>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    $0x1,%edi
  push   %rbx
  mov    %edx,%ebx
  sub    $0x48,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %edx,%esi
  movss  %xmm0,0x8(%rsp)
  mov    %edx,0x24(%rsp)
  mov    %rcx,0x30(%rsp)
  mov    %r8,0x38(%rsp)
  call   <vector@plt>
  mov    %ebx,%esi
  mov    $0x1,%edi
  mov    %rax,%r13
  call   <vector@plt>
  movss  0x8(%rsp),%xmm5
  mov    %rax,%r12
  movaps %xmm5,%xmm0
  subss  0x4(%rbp),%xmm0
  call   <fabs@plt>
  test   %ebx,%ebx
  jle    L34
  movss  0x8(%rsp),%xmm5
  movaps %xmm0,%xmm1
  mov    $0x1,%r15d
  mov    $0x1,%ebx
  jmp    L82
  nop
L0:
  comiss %xmm0,%xmm1
  minss  %xmm1,%xmm0
  mov    0x10(%rsp),%rax
  movaps %xmm0,%xmm1
  movss  (%rax,%r15,4),%xmm0
  cmova  %r14,%rbx
  movss  %xmm0,0x0(%r13,%r15,4)
  cvtss2sd %xmm0,%xmm0
  addsd  D5(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r12,%r15,4)
  add    $0x1,%r15
  cmp    %r15d,0x24(%rsp)
  jl     L127
L82:
  movaps %xmm5,%xmm0
  subss  0x0(%rbp,%r15,4),%xmm0
  movslq %r15d,%r14
  movss  %xmm1,0xc(%rsp)
  lea    0x0(,%r15,4),%rax
  movss  %xmm5,0x8(%rsp)
  mov    %rax,0x18(%rsp)
  call   <fabs@plt>
  pxor   %xmm7,%xmm7
  movss  0x8(%rsp),%xmm5
  movss  0xc(%rsp),%xmm1
  ucomiss %xmm7,%xmm0
  jp     L0
  jne    L0
  mov    0x10(%rsp),%rax
  mov    0x18(%rsp),%rdx
  movss  (%rax,%rdx,1),%xmm0
  mov    0x30(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x38(%rsp),%rax
  movl   $0x0,(%rax)
L27:
  mov    0x24(%rsp),%ebx
  mov    %r12,%rdi
  mov    $0x1,%esi
  mov    %ebx,%edx
  call   <free_vector@plt>
  add    $0x48,%rsp
  mov    %ebx,%edx
  mov    %r13,%rdi
  pop    %rbx
  mov    $0x1,%esi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <free_vector@plt>
  nopw   0x0(%rax,%rax,1)
L127:
  mov    %rax,%rdx
  mov    0x24(%rsp),%esi
  lea    -0x1(%rbx),%eax
  movss  (%rdx,%rbx,4),%xmm0
  mov    0x30(%rsp),%rdx
  mov    %eax,0x20(%rsp)
  movss  %xmm0,(%rdx)
  cmp    $0x1,%esi
  jle    L27
  cltq
  lea    -0x1(%rsi),%ebx
  lea    0x4(%rbp),%r14
  mov    %rax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L136:
  mov    $0x1,%r15d
  cs nopw 0x0(%rax,%rax,1)
L4:
  movss  0x0(%rbp,%r15,4),%xmm1
  movss  (%r12,%r15,4),%xmm4
  pxor   %xmm6,%xmm6
  movss  0x4(%r13,%r15,4),%xmm2
  subss  %xmm5,%xmm1
  movaps %xmm2,%xmm3
  subss  %xmm4,%xmm3
  movaps %xmm1,%xmm0
  movss  (%r14,%r15,4),%xmm1
  mulss  %xmm4,%xmm0
  subss  %xmm5,%xmm1
  divss  %xmm1,%xmm0
  movaps %xmm0,%xmm4
  subss  %xmm2,%xmm4
  ucomiss %xmm6,%xmm4
  jp     L61
  je     L137
L61:
  divss  %xmm4,%xmm3
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm0
  movss  %xmm2,(%r12,%r15,4)
  movss  %xmm0,0x0(%r13,%r15,4)
  add    $0x1,%r15
  cmp    %r15d,%ebx
  jge    L4
  mov    0x20(%rsp),%eax
  add    %eax,%eax
  cmp    %ebx,%eax
  jge    L100
L96:
  mov    0x28(%rsp),%rax
  add    $0x4,%r14
  movss  0x4(%r13,%rax,4),%xmm0
  mov    0x38(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x30(%rsp),%rax
  addss  (%rax),%xmm0
  movss  %xmm0,(%rax)
  sub    $0x1,%ebx
  jne    L136
  jmp    L27
  nopw   0x0(%rax,%rax,1)
L137:
  lea    D3(%rip),%rdi
  movss  %xmm5,0x18(%rsp)
  movss  %xmm4,0x10(%rsp)
  movss  %xmm0,0xc(%rsp)
  movss  %xmm3,0x8(%rsp)
  call   <nrerror@plt>
  movss  0x8(%rsp),%xmm3
  movss  0x10(%rsp),%xmm4
  movss  0x4(%r13,%r15,4),%xmm2
  movss  0xc(%rsp),%xmm0
  divss  %xmm4,%xmm3
  movss  0x18(%rsp),%xmm5
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm0
  movss  %xmm2,(%r12,%r15,4)
  movss  %xmm0,0x0(%r13,%r15,4)
  add    $0x1,%r15
  cmp    %r15d,%ebx
  jge    L4
  mov    0x20(%rsp),%eax
  add    %eax,%eax
  cmp    %ebx,%eax
  jl     L96
L100:
  mov    0x28(%rsp),%rsi
  mov    0x30(%rsp),%rcx
  add    $0x4,%r14
  mov    0x38(%rsp),%rdx
  subl   $0x1,0x20(%rsp)
  movss  (%r12,%rsi,4),%xmm0
  movslq 0x20(%rsp),%rax
  movss  %xmm0,(%rdx)
  addss  (%rcx),%xmm0
  movss  %xmm0,(%rcx)
  sub    $0x1,%ebx
  je     L27
  mov    %rax,0x28(%rsp)
  jmp    L136
L34:
  mov    0x10(%rsp),%rax
  movss  0x4(%rax),%xmm0
  mov    0x30(%rsp),%rax
  movss  %xmm0,(%rax)
  jmp    L27
```

tool_calls: name: disassemble_data
arguments: label: D5
type: byte[8]
name: disassemble_data
arguments: label: D3
type: string

tool: {"D5": [0xd9,0x7d,0xda,0xf5,0xd0,0xf2,0xbe,0x3a]}

tool: D3: Error in routine ratint

assistant: ```c
void ratint(float xa[], float ya[], int n, float x, float *y, float *dy) {
  int m, i, ns = 1;
  float w, t, hh, h, dd, *c, *d;
  c = vector(1, n);
  d = vector(1, n);
  hh = fabs(x - xa[1]);
  for (i = 1; i <= n; i++) {
    h = fabs(x - xa[i]);
    if (h == 0.0) {
      *y = ya[i];
      *dy = 0.0;
      {
        free_vector(d, 1, n);
        free_vector(c, 1, n);
        return;
      }
    } else if (h < hh) {
      ns = i;
      hh = h;
    }
    c[i] = ya[i];
    d[i] = ya[i] + 1.0e-25;
  }
  *y = ya[ns--];
  for (m = 1; m < n; m++) {
    for (i = 1; i <= n - m; i++) {
      w = c[i + 1] - d[i];
      h = xa[i + m] - x;
      t = (xa[i] - x) * d[i] / h;
      dd = t - c[i + 1];
      if (dd == 0.0)
        nrerror("Error in routine ratint");
      dd = w / dd;
      d[i] = c[i + 1] * dd;
      c[i] = t * dd;
    }
    *y += (*dy = (2 * ns < (n - m) ? c[ns + 1] : d[ns--]));
  }
  {
    free_vector(d, 1, n);
    free_vector(c, 1, n);
    return;
  }
}
```