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

```asm
<spline>:
  endbr64
  mov    %rsi,%r9
  mov    %edx,%esi
  comisd D57(%rip),%xmm0
  jbe    L67
  movq   $0x0,(%r8)
  movq   $0x0,(%rcx)
L27:
  cmp    $0x2,%esi
  jle    L54
  mov    %rdi,%rdx
  lea    -0x3(%rsi),%r10d
  add    $0x2,%r10
  mov    $0x1,%eax
  movsd  D37(%rip),%xmm7
  movsd  D46(%rip),%xmm6
  movsd  D25(%rip),%xmm5
L77:
  movsd  (%rdx),%xmm3
  movsd  0x8(%rdx),%xmm2
  subsd  %xmm3,%xmm2
  movsd  0x10(%rdx),%xmm0
  subsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm2
  movapd %xmm2,%xmm4
  mulsd  -0x8(%rcx,%rax,8),%xmm4
  addsd  %xmm7,%xmm4
  movapd %xmm2,%xmm0
  subsd  %xmm6,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  movsd  (%r9,%rax,8),%xmm3
  movsd  0x8(%rdx),%xmm8
  movsd  0x8(%r9,%rax,8),%xmm0
  subsd  %xmm3,%xmm0
  movsd  0x10(%rdx),%xmm9
  subsd  %xmm8,%xmm9
  divsd  %xmm9,%xmm0
  subsd  -0x8(%r9,%rax,8),%xmm3
  subsd  (%rdx),%xmm8
  divsd  %xmm8,%xmm3
  subsd  %xmm3,%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  mulsd  %xmm5,%xmm0
  movsd  0x10(%rdx),%xmm3
  subsd  (%rdx),%xmm3
  divsd  %xmm3,%xmm0
  mulsd  -0x8(%r8,%rax,8),%xmm2
  subsd  %xmm2,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  add    $0x1,%rax
  add    $0x8,%rdx
  cmp    %r10,%rax
  jne    L77
L54:
  comisd D57(%rip),%xmm1
  ja     L0
  movslq %esi,%rax
  shl    $0x3,%rax
  movsd  -0x8(%rdi,%rax,1),%xmm2
  subsd  -0x10(%rdi,%rax,1),%xmm2
  movsd  -0x8(%r9,%rax,1),%xmm0
  subsd  -0x10(%r9,%rax,1),%xmm0
  divsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm1
  movsd  D72(%rip),%xmm0
  divsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D48(%rip),%xmm0
L63:
  movslq %esi,%rax
  movapd %xmm0,%xmm2
  mulsd  -0x10(%r8,%rax,8),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  -0x10(%rcx,%rax,8),%xmm0
  addsd  D46(%rip),%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rcx,%rax,8)
  sub    $0x2,%esi
  js     L72
  movslq %esi,%rsi
L79:
  movsd  (%rcx,%rsi,8),%xmm0
  mulsd  0x8(%rcx,%rsi,8),%xmm0
  addsd  (%r8,%rsi,8),%xmm0
  movsd  %xmm0,(%rcx,%rsi,8)
  sub    $0x1,%rsi
  test   %esi,%esi
  jns    L79
L72:
  ret
L67:
  mov    D0(%rip),%rax
  mov    %rax,(%rcx)
  movsd  0x8(%rdi),%xmm3
  subsd  (%rdi),%xmm3
  movsd  0x8(%r9),%xmm2
  subsd  (%r9),%xmm2
  divsd  %xmm3,%xmm2
  subsd  %xmm0,%xmm2
  movsd  D72(%rip),%xmm0
  divsd  %xmm3,%xmm0
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,(%r8)
  jmp    L27
L0:
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm0
  jmp    L63
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D57
type_infered: f64[2]
name: extract_symbolic_data
arguments: data_label: D37
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D46
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D25
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D72
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D48
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D0
type_infered: f32[2]

tool: {"D57": [9.9e29,-0.5]}

tool: D37: 2

tool: D46: 1

tool: D25: 6

tool: D72: 3

tool: D48: 0.5

tool: {"D0": [0.0,-1.75]}

assistant: ```c
void spline(double *x, double *y, int n, double yp1, double ypn, double *y2, double *u) {
  int i, k;
  double p, qn, sig, un;
  if (yp1 > 0.99e30) {
    y2[0] = u[0] = 0.0;
  } else {
    y2[0] = -0.5;
    u[0] = (3.0 / (x[1] - x[0])) * ((y[1] - y[0]) / (x[1] - x[0]) - yp1);
  }
  for (i = 1; i <= n - 2; i++) {
    sig = (x[i] - x[i - 1]) / (x[i + 1] - x[i - 1]);
    p = sig * y2[i - 1] + 2.0;
    y2[i] = (sig - 1.0) / p;
    u[i] = (y[i + 1] - y[i]) / (x[i + 1] - x[i]) - (y[i] - y[i - 1]) / (x[i] - x[i - 1]);
    u[i] = (6.0 * u[i] / (x[i + 1] - x[i - 1]) - sig * u[i - 1]) / p;
  }
  if (ypn > 0.99e30) {
    qn = un = 0.0;
  } else {
    qn = 0.5;
    un = (3.0 / (x[n - 1] - x[n - 2])) * (ypn - (y[n - 1] - y[n - 2]) / (x[n - 1] - x[n - 2]));
  }
  y2[n - 1] = (un - qn * u[n - 2]) / (qn * y2[n - 2] + 1.0);
  for (k = n - 2; k >= 0; k--) {
    y2[k] = y2[k] * y2[k + 1] + u[k];
  }
  return;
}
```