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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x28,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x198,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x188(%rsp)
  xor    %eax,%eax
  mov    D50(%rip),%rax
  movq   $0x0,0xd0(%rsp)
  mov    %rax,0xd8(%rsp)
  mov    D128(%rip),%rax
  mov    %rax,0xe0(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0xe8(%rsp)
  mov    D19(%rip),%rax
  mov    %rax,0xf0(%rsp)
  mov    D115(%rip),%rax
  mov    %rax,0x100(%rsp)
  mov    D84(%rip),%rax
  mov    %rax,0x108(%rsp)
  mov    D119(%rip),%rax
  mov    %rax,0x110(%rsp)
  mov    D93(%rip),%rax
  mov    %rax,0x118(%rsp)
  mov    D146(%rip),%rax
  mov    %rax,0x120(%rsp)
  call   <malloc@plt>
  mov    %rax,%r12
  mov    %rax,%rbx
  lea    0x28(%rax),%rbp
L1:
  mov    $0x14,%edi
  add    $0x8,%rbx
  call   <malloc@plt>
  mov    %rax,-0x8(%rbx)
  cmp    %rbx,%rbp
  jne    L1
  lea    0x30(%rsp),%rbp
  lea    0x10(%rsp),%rbx
  lea    0xd0(%rsp),%r13
  mov    %rbp,%rcx
  mov    %rbx,%rdi
  lea    0x100(%rsp),%rdx
  lea    0x160(%rsp),%r14
  mov    %r13,%rsi
  call   <inicializaciones@plt>
  mov    %r14,%rdi
  mov    %rbp,%rsi
  lea    0x90(%rsp),%r15
  call   <iniB@plt>
  mov    %r12,%rdi
  mov    %rbx,%rsi
  call   <iniMatriz@plt>
  lea    0x130(%rsp),%rdx
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <solSistema@plt>
  movsd  D139(%rip),%xmm4
  xor    %eax,%eax
  movsd  0x130(%rsp),%xmm1
  movsd  D3(%rip),%xmm6
  lea    0x50(%rsp),%r12
  lea    0x70(%rsp),%r14
  lea    0x138(%rsp),%rdx
L22:
  movsd  (%rbx,%rax,1),%xmm3
  movapd %xmm1,%xmm0
  movsd  (%rdx,%rax,1),%xmm1
  movapd %xmm3,%xmm5
  movapd %xmm1,%xmm2
  mulsd  %xmm4,%xmm5
  subsd  %xmm0,%xmm2
  divsd  %xmm5,%xmm2
  movsd  %xmm2,(%r12,%rax,1)
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm0
  mulsd  %xmm6,%xmm2
  addsd  %xmm1,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm2,(%r14,%rax,1)
  movsd  0x0(%rbp,%rax,1),%xmm2
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm2
  movsd  %xmm2,(%r15,%rax,1)
  add    $0x8,%rax
  cmp    $0x20,%rax
  jne    L22
  movdqa 0x100(%rsp),%xmm7
  lea    D137(%rip),%rdi
  xor    %eax,%eax
  movaps %xmm7,0xb0(%rsp)
  movdqa 0x110(%rsp),%xmm7
  movaps %xmm7,0xc0(%rsp)
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D130(%rip),%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r12,%rsi
  movsd  0x8(%rsp),%xmm0
  lea    0xb0(%rsp),%r8
  mov    %r13,%rdi
  call   <spline@plt>
  lea    D45(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D127(%rip),%rdi
  call   <system@plt>
  mov    0x188(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x198,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D50
data_type: byte[8]
name: disassemble_data
arguments: label: D128
data_type: byte[8]
name: disassemble_data
arguments: label: D22
data_type: byte[8]
name: disassemble_data
arguments: label: D19
data_type: f64
name: disassemble_data
arguments: label: D115
data_type: f64
name: disassemble_data
arguments: label: D84
data_type: f64
name: disassemble_data
arguments: label: D119
data_type: f64
name: disassemble_data
arguments: label: D93
data_type: f64
name: disassemble_data
arguments: label: D146
data_type: f64
name: disassemble_data
arguments: label: D139
data_type: byte[8]
name: disassemble_data
arguments: label: D3
data_type: byte[8]
name: disassemble_data
arguments: label: D137
data_type: string
name: disassemble_data
arguments: label: D130
data_type: string
name: disassemble_data
arguments: label: D45
data_type: string
name: disassemble_data
arguments: label: D127
data_type: string

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

tool: {"D128": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D22": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

tool: D19: 6.1

tool: D115: 2.51

tool: D84: 4.04

tool: D119: 4.7

tool: D93: 5.54

tool: D146: 5.8

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

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D137: dame el punto a estimar-->
 x:

tool: D130: %lf

tool: D45: estimacion--> %lf


tool: D127: PAUSE

assistant: ```c
int main() {
  double X[5] = {0, 2, 3, 5, 6.1};
  double Y[5] = {2.51, 4.04, 4.7, 5.54, 5.8};
  double h[5 - 1];
  double A[5 - 1];
  double a[5 - 1];
  double b[5 - 1];
  double c[5 - 1];
  double d[5 - 1];
  double **matriz;
  double v[5];
  double B[5];
  double x;
  double estimacion;
  int i;
  matriz = (double **)malloc(5 * sizeof(int *));
  for (i = 0; i < 5; i++)
    matriz[i] = (double *)malloc(5 * sizeof(int));
  inicializaciones(h, X, Y, A);
  iniB(B, A);
  iniMatriz(matriz, h);
  solSistema(matriz, B, v);
  for (i = 0; i < 5 - 1; i++) {
    a[i] = (v[i + 1] - v[i]) / (6 * h[i]);
    b[i] = v[i] / 2;
    c[i] = A[i] - ((2 * v[i] + v[i + 1]) / 6) * h[i];
    d[i] = Y[i];
  }
  printf("dame el punto a estimar-->\n x:");
  scanf("%lf", &x);
  getchar();
  estimacion = spline(x, X, a, b, c, d);
  printf("estimacion--> %lf\n", estimacion);
  getchar();
  system("PAUSE");
  return 0;
}
```