user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<create_spline>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  movl   $0x2,-0x3c(%rbp)
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  imul   -0x4c(%rbp),%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movsd  D37(%rip),%xmm0
  movsd  %xmm0,(%rax)
  movl   $0x1,-0x40(%rbp)
  jmp    L3
L0:
  mov    -0x40(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x28(%rbp),%xmm1
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x30(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x40(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  D19(%rip),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x28(%rbp),%xmm1
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  imul   -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x8(%rbp),%xmm0
  subsd  -0x10(%rbp),%xmm0
  divsd  -0x28(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  subsd  -0x18(%rbp),%xmm1
  movapd %xmm1,%xmm2
  divsd  -0x30(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D36(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x4c(%rbp),%eax
  imul   %eax,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x40(%rbp)
L3:
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x40(%rbp)
  jl     L0
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  D37(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <NUM_print_matrix@plt>
  mov    -0x4c(%rbp),%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <NUM_lu@plt>
  mov    -0x4c(%rbp),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <NUM_print_vec@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D37
type_guessed: byte[8]
name: unpack_data
arguments: data_label: D19
type_guessed: byte[8]
name: unpack_data
arguments: data_label: D36
type_guessed: byte[8]

tool: {"D37": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D19": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D36": [0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x40]}

assistant: ```c
int create_spline(double *data, int n_point, double *spline) {
  int i;
  int col;
  double hi0, hi1, hi2;
  double fi0, fi1, fi2;
  double *matrix;
  col = 2;
  matrix = (double *)calloc(n_point * (n_point + 1), sizeof(double));
  matrix[0 + 0] = 1;
  for (i = 1; i < n_point - 1; i++) {
    hi0 = data[0 + (i + 0) * col] - data[0 + (i - 1) * col];
    hi1 = data[0 + (i + 1) * col] - data[0 + (i - 0) * col];
    hi2 = data[0 + (i + 1) * col] - data[0 + (i - 1) * col];
    fi0 = data[1 + (i - 1) * col];
    fi1 = data[1 + (i - 0) * col];
    fi2 = data[1 + (i + 1) * col];
    matrix[i + (i - 1) * n_point] = hi0 / (hi0 + hi1);
    matrix[i + (i - 0) * n_point] = 2;
    matrix[i + (i + 1) * n_point] = hi1 / (hi0 + hi1);
    matrix[i + n_point * n_point] = 6 * ((fi2 - fi1) / hi1 - (fi1 - fi0) / hi0) / hi2;
  }
  matrix[n_point - 1 + (n_point - 1) * n_point] = 1;
  NUM_print_matrix(matrix, n_point);
  NUM_lu(matrix, spline, n_point);
  NUM_print_vec(spline, n_point);
  free(matrix);
  return 0;
}
```