user: 请将以下的汇编代码转换成C语言代码:

```asm
<ratint>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r15
  mov    %edx,%ebx
  mov    %edx,0x14(%rsp)
  movss  %xmm0,0x10(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,0x28(%rsp)
  mov    %edx,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%rbp
  mov    %ebx,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%r12
  movss  0x10(%rsp),%xmm0
  subss  0x4(%r13),%xmm0
  call   <fabs@plt>
  movss  %xmm0,(%rsp)
  test   %ebx,%ebx
  jle    L88
  mov    $0x1,%r14d
  mov    $0x1,%ebx
L134:
  mov    %r14d,0x4(%rsp)
  lea    0x0(,%r14,4),%rax
  mov    %rax,0x8(%rsp)
  movss  0x10(%rsp),%xmm0
  subss  0x0(%r13,%r14,4),%xmm0
  call   <fabs@plt>
  pxor   %xmm7,%xmm7
  ucomiss %xmm7,%xmm0
  jp     L114
  je     L103
L114:
  movss  (%rsp),%xmm7
  comiss %xmm0,%xmm7
  minss  %xmm7,%xmm0
  movss  %xmm0,(%rsp)
  cmova  0x4(%rsp),%ebx
  movss  (%r15,%r14,4),%xmm0
  movss  %xmm0,0x0(%rbp,%r14,4)
  cvtss2sd %xmm0,%xmm0
  addsd  D15(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r12,%r14,4)
  add    $0x1,%r14
  cmp    %r14d,0x14(%rsp)
  jge    L134
L68:
  lea    -0x1(%rbx),%eax
  mov    %eax,0x18(%rsp)
  movslq %ebx,%rbx
  movss  (%r15,%rbx,4),%xmm0
  mov    0x20(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x14(%rsp),%eax
  cmp    $0x1,%eax
  jle    L57
  sub    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  lea    0x4(%r13),%r14
  jmp    L82
L103:
  mov    0x8(%rsp),%rax
  movss  (%r15,%rax,1),%xmm0
  mov    0x20(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x28(%rsp),%rax
  movl   $0x0,(%rax)
  mov    0x14(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_vector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
  jmp    L62
L88:
  mov    $0x1,%ebx
  jmp    L68
L136:
  lea    D18(%rip),%rdi
  call   <nrerror@plt>
L56:
  movss  (%rsp),%xmm0
  divss  0x8(%rsp),%xmm0
  movaps %xmm0,%xmm1
  mulss  0x4(%rbp,%rbx,4),%xmm1
  movss  %xmm1,(%r12,%rbx,4)
  mulss  0x4(%rsp),%xmm0
  movss  %xmm0,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r15d
  jl     L1
L84:
  movss  0x4(%rbp,%rbx,4),%xmm2
  movss  (%r12,%rbx,4),%xmm1
  movaps %xmm2,%xmm3
  subss  %xmm1,%xmm3
  movss  %xmm3,(%rsp)
  movss  0x0(%r13,%rbx,4),%xmm0
  movss  0x10(%rsp),%xmm4
  subss  %xmm4,%xmm0
  mulss  %xmm1,%xmm0
  movss  (%r14,%rbx,4),%xmm1
  subss  %xmm4,%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,0x4(%rsp)
  subss  %xmm2,%xmm0
  movss  %xmm0,0x8(%rsp)
  ucomiss D22(%rip),%xmm0
  jp     L56
  jne    L56
  jmp    L136
L1:
  mov    0x18(%rsp),%ecx
  lea    (%rcx,%rcx,1),%eax
  cmp    %r15d,%eax
  jge    L24
  movslq %ecx,%rax
  movss  0x4(%rbp,%rax,4),%xmm0
L120:
  mov    0x28(%rsp),%rax
  movss  %xmm0,(%rax)
  mov    0x20(%rsp),%rax
  addss  (%rax),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%r14
  subl   $0x1,0x1c(%rsp)
  je     L57
L82:
  mov    0x1c(%rsp),%eax
  mov    %eax,%r15d
  mov    $0x1,%ebx
  test   %eax,%eax
  jg     L84
  jmp    L1
L24:
  mov    0x18(%rsp),%edx
  movslq %edx,%rax
  movss  (%r12,%rax,4),%xmm0
  lea    -0x1(%rdx),%eax
  mov    %eax,0x18(%rsp)
  jmp    L120
L57:
  mov    0x14(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_vector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
L62:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D15
datatype: byte[8]
name: disassemble_data
arguments: data_tag: D18
datatype: string
name: disassemble_data
arguments: data_tag: D22
datatype: f64

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

tool: D18: Error in routine ratint

tool: D22: 0

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