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    L52
  mov    %r15d,%r13d
  lea    D9(%rip),%r14
  xor    %r15d,%r15d
  nopl   (%rax)
L42:
  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    %r13,%rax
  jne    L42
  mov    $0xa,%edi
  xor    %r15d,%r15d
  lea    D35(%rip),%r14
  call   <putchar@plt>
  nopl   0x0(%rax,%rax,1)
L13:
  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    %r13,%rax
  jne    L13
L1:
  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    D39(%rip),%rdi
  call   <puts@plt>
  lea    D16(%rip),%rdi
  call   <puts@plt>
  movslq (%rsp),%r15
  movsd  0x0(%rbp),%xmm0
  movsd  0x0(%rbp,%r15,8),%xmm1
  subsd  %xmm0,%xmm1
  divsd  D56(%rip),%xmm1
  movsd  %xmm1,0x8(%rsp)
  jmp    L2
  nopl   0x0(%rax,%rax,1)
L27:
  movsd  0x0(%rbp),%xmm0
L2:
  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    L27
  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
L52:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L1
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D9
type_infered: string
name: extract_symbolic_data
arguments: data_label: D35
type_infered: string
name: extract_symbolic_data
arguments: data_label: D26
type_infered: string
name: extract_symbolic_data
arguments: data_label: D39
type_infered: string
name: extract_symbolic_data
arguments: data_label: D16
type_infered: string
name: extract_symbolic_data
arguments: data_label: D56
type_infered: f32[2]

tool: D9: x%d = 

tool: D35: f%d = 

tool: D26: %8lf %8lf


tool: D39: 


tool: D16: x        p(x)

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