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

```asm
<main>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  call   <read_degree@plt>
  lea    0x1(%rax),%ebx
  mov    %eax,(%rsp)
  mov    %eax,%r15d
  lea    0x0(,%rbx,8),%r12d
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  jle    L0
  mov    %r15d,%r13d
  lea    D3(%rip),%r14
  xor    %r15d,%r15d
  nopl   (%rax)
L46:
  mov    %r15d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <read_number@plt>
  mov    %r15,%rax
  movsd  %xmm0,0x0(%rbp,%r15,8)
  add    $0x1,%r15
  cmp    %rax,%r13
  jne    L46
  mov    $0xa,%edi
  xor    %r15d,%r15d
  lea    D8(%rip),%r14
  call   <putchar@plt>
  nopl   0x0(%rax,%rax,1)
L53:
  mov    %r15d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <read_number@plt>
  mov    %r15,%rax
  movsd  %xmm0,(%r12,%r15,8)
  add    $0x1,%r15
  cmp    %rax,%r13
  jne    L53
L56:
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  xor    %r14d,%r14d
  call   <difdiv@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  lea    D26(%rip),%r13
  call   <print_vector@plt>
  lea    D18(%rip),%rdi
  call   <puts@plt>
  lea    D33(%rip),%rdi
  call   <puts@plt>
  movslq (%rsp),%r15
  movsd  0x0(%rbp),%xmm0
  movsd  0x0(%rbp,%r15,8),%xmm1
  subsd  %xmm0,%xmm1
  divsd  D29(%rip),%xmm1
  movsd  %xmm1,0x8(%rsp)
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L59:
  movsd  0x0(%rbp),%xmm0
L30:
  pxor   %xmm2,%xmm2
  mov    %rbp,%rdx
  mov    %r12,%rsi
  mov    %ebx,%edi
  cvtsi2sd %r14d,%xmm2
  mulsd  0x8(%rsp),%xmm2
  add    $0x1,%r14d
  addsd  %xmm2,%xmm0
  movsd  %xmm2,(%rsp)
  call   <horner@plt>
  movsd  (%rsp),%xmm2
  addsd  0x0(%rbp),%xmm2
  mov    %r13,%rdi
  movapd %xmm0,%xmm1
  mov    $0x2,%eax
  movapd %xmm2,%xmm0
  call   <printf@plt>
  cmp    $0x97,%r14d
  jne    L59
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L56
```

tool_calls: name: retrieve_data
arguments: data_tag: D3
data_type: string
name: retrieve_data
arguments: data_tag: D8
data_type: string
name: retrieve_data
arguments: data_tag: D26
data_type: string
name: retrieve_data
arguments: data_tag: D18
data_type: string
name: retrieve_data
arguments: data_tag: D33
data_type: string
name: retrieve_data
arguments: data_tag: D29
data_type: f32[2]

tool: D3: x%d = 

tool: D8: f%d = 

tool: D26: %8lf %8lf


tool: D18: 


tool: D33: x        p(x)

tool: {"D29": [0.0,3.54296875]}

assistant: ```c
int main() {
  int n = read_degree();
  int m = n + 1;
  int i = 0;
  int h = 150;
  double *x = malloc(sizeof(double) * m);
  double *f = malloc(sizeof(double) * m);
  double delta = 0;
  double p_z = 0;
  for (i = 0; i < m; i++) {
    printf("x%d = ", i);
    x[i] = read_number();
  }
  printf("\n");
  for (i = 0; i < m; i++) {
    printf("f%d = ", i);
    f[i] = read_number();
  }
  difdiv(m, x, f);
  print_vector(f, m);
  printf("\n\n");
  printf("x        p(x)\n");
  delta = (x[n] - x[0]) / h;
  for (i = 0; i <= h; i++) {
    p_z = horner(m, f, x, x[0] + i * delta);
    printf("%8lf %8lf\n", x[0] + i * delta, p_z);
  }
  free(x);
  free(f);
  return 0;
}
```