user: 请从给定的汇编指令推导出C源代码：

```asm
<spline>:
  endbr64
  movsd  D49(%rip),%xmm8
  mov    %rsi,%r9
  movapd %xmm0,%xmm3
  mov    %edx,%esi
  comisd %xmm8,%xmm0
  jbe    L18
  movq   $0x0,(%r8)
  movq   $0x0,(%rcx)
  cmp    $0x2,%esi
  jle    L36
L10:
  lea    -0x3(%rsi),%r10d
  mov    %rdi,%rdx
  mov    $0x1,%eax
  movsd  D24(%rip),%xmm7
  movsd  D42(%rip),%xmm5
  movsd  D74(%rip),%xmm6
  add    $0x2,%r10
L32:
  movsd  (%rdx),%xmm3
  movsd  0x8(%rdx),%xmm2
  add    $0x8,%rdx
  movsd  0x8(%rdx),%xmm0
  movsd  -0x8(%rcx,%rax,8),%xmm4
  subsd  %xmm3,%xmm2
  subsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm2
  mulsd  %xmm2,%xmm4
  movapd %xmm2,%xmm0
  subsd  %xmm5,%xmm0
  addsd  %xmm7,%xmm4
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  movsd  (%r9,%rax,8),%xmm3
  movsd  (%rdx),%xmm9
  movsd  0x8(%r9,%rax,8),%xmm0
  movsd  0x8(%rdx),%xmm10
  mulsd  -0x8(%r8,%rax,8),%xmm2
  subsd  %xmm3,%xmm0
  subsd  %xmm9,%xmm10
  subsd  -0x8(%r9,%rax,8),%xmm3
  subsd  -0x8(%rdx),%xmm9
  divsd  %xmm10,%xmm0
  divsd  %xmm9,%xmm3
  subsd  %xmm3,%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  mulsd  %xmm6,%xmm0
  movsd  0x8(%rdx),%xmm3
  subsd  -0x8(%rdx),%xmm3
  divsd  %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r10
  jne    L32
L5:
  movslq %esi,%rax
  shl    $0x3,%rax
  comisd %xmm8,%xmm1
  jbe    L67
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm1
L46:
  movsd  -0x10(%r8,%rax,1),%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  -0x10(%rcx,%rax,1),%xmm1
  subsd  %xmm2,%xmm0
  addsd  %xmm5,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx,%rax,1)
  sub    $0x2,%esi
  js     L25
  movslq %esi,%rsi
  nopl   0x0(%rax)
L81:
  mulsd  (%rcx,%rsi,8),%xmm0
  addsd  (%r8,%rsi,8),%xmm0
  movsd  %xmm0,(%rcx,%rsi,8)
  sub    $0x1,%rsi
  test   %esi,%esi
  jns    L81
L25:
  ret
  nopl   0x0(%rax)
L67:
  movsd  -0x8(%rdi,%rax,1),%xmm3
  movsd  -0x8(%r9,%rax,1),%xmm2
  subsd  -0x10(%rdi,%rax,1),%xmm3
  subsd  -0x10(%r9,%rax,1),%xmm2
  divsd  %xmm3,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  movsd  D33(%rip),%xmm1
  divsd  %xmm3,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  D28(%rip),%xmm1
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L18:
  mov    D56(%rip),%rax
  mov    %rax,(%rcx)
  movsd  0x8(%rdi),%xmm0
  movsd  0x8(%r9),%xmm2
  subsd  (%rdi),%xmm0
  subsd  (%r9),%xmm2
  divsd  %xmm0,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D33(%rip),%xmm3
  divsd  %xmm0,%xmm3
  mulsd  %xmm3,%xmm2
  movsd  %xmm2,(%r8)
  cmp    $0x2,%esi
  jg     L10
L36:
  movsd  D42(%rip),%xmm5
  jmp    L5
```

tool_calls: name: parse_data
arguments: tag: D49
data_type: f64
name: parse_data
arguments: tag: D24
data_type: f64
name: parse_data
arguments: tag: D42
data_type: f64
name: parse_data
arguments: tag: D74
data_type: f64
name: parse_data
arguments: tag: D33
data_type: f64
name: parse_data
arguments: tag: D28
data_type: f64
name: parse_data
arguments: tag: D56
data_type: f32[2]

tool: D49: 9.9e+29

tool: D24: 2

tool: D42: 1

tool: D74: 6

tool: D33: 3

tool: D28: 0.5

tool: {"D56": [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;
}
```