user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x3e8,%esi
  mov    $0x1,%edi
  push   %r14
  push   %r13
  lea    D24(%rip),%r13
  push   %r12
  lea    D49(%rip),%r12
  push   %rbp
  mov    $0x2,%ebp
  push   %rbx
  lea    D56(%rip),%rbx
  sub    $0x28,%rsp
  call   <vector@plt>
  lea    D70(%rip),%rdi
  mov    %rax,%r15
  call   <puts@plt>
  lea    D68(%rip),%rdi
  call   <puts@plt>
  movl   $0x2,0x10(%rsp)
  mov    $0x2,%r9d
  movq   $0x8,0x8(%rsp)
  nopl   (%rax)
L0:
  mov    0x10(%rsp),%ecx
  xor    %r8d,%r8d
  mov    %ebp,%edx
  mov    %r15,%rdi
  mov    %r9d,0x18(%rsp)
  lea    0x0(%rbp,%rcx,1),%eax
  mov    %eax,0x14(%rsp)
  add    $0x1,%eax
  mov    %eax,%r14d
  mov    %eax,%esi
  mov    %eax,0x1c(%rsp)
  call   <savgol@plt>
  test   %r14d,%r14d
  mov    0x18(%rsp),%r9d
  jle    L22
  mov    0x14(%rsp),%edx
  lea    0x4(%r15),%rax
  pxor   %xmm0,%xmm0
  lea    0x8(%r15,%rdx,4),%rdx
  nopl   0x0(%rax)
L42:
  addss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L42
  movss  %xmm0,0x18(%rsp)
L107:
  mov    0x10(%rsp),%ecx
  mov    %ebp,%edx
  mov    %r9d,%esi
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  mov    %ebp,%r14d
  call   <printf@plt>
  cmp    $0x4,%ebp
  jg     L41
  nopw   0x0(%rax,%rax,1)
L45:
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  cmp    $0x5,%r14d
  jne    L45
L41:
  lea    0x1(%rbp),%eax
  test   %eax,%eax
  jle    L82
  cltq
  shl    $0x2,%rax
  lea    -0x4(%r15,%rax,1),%rcx
  lea    (%r15,%rax,1),%r14
  mov    %ebp,%eax
  shl    $0x2,%rax
  sub    %rax,%rcx
  mov    %rcx,%rbp
  nopl   0x0(%rax)
L59:
  pxor   %xmm0,%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  sub    $0x4,%r14
  cvtss2sd 0x4(%r14),%xmm0
  call   <printf@plt>
  cmp    %rbp,%r14
  jne    L59
L82:
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jle    L77
  movslq 0x1c(%rsp),%rax
  lea    (%r15,%rax,4),%r14
  movslq 0x14(%rsp),%rax
  lea    (%r15,%rax,4),%rbp
  mov    0x10(%rsp),%eax
  sub    $0x1,%eax
  shl    $0x2,%rax
  sub    %rax,%rbp
L4:
  pxor   %xmm0,%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  sub    $0x4,%r14
  cvtss2sd 0x4(%r14),%xmm0
  call   <printf@plt>
  cmp    %r14,%rbp
  jne    L4
L77:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D39(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x18(%rsp),%xmm0
  call   <printf@plt>
  mov    0x8(%rsp),%r14
  lea    D61(%rip),%rax
  lea    D77(%rip),%rdi
  mov    (%rax,%r14,2),%rsi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x1c,%r14
  je     L69
  mov    0x8(%rsp),%rcx
  lea    D48(%rip),%rax
  mov    (%rax,%rcx,1),%ebp
  lea    D42(%rip),%rax
  mov    (%rax,%rcx,1),%eax
  mov    %eax,0x10(%rsp)
  lea    D115(%rip),%rax
  mov    (%rax,%rcx,1),%r9d
  add    $0x4,%rcx
  mov    %rcx,0x8(%rsp)
  jmp    L0
  nop
L69:
  mov    %r15,%rdi
  mov    $0x3e8,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L22:
  movl   $0x0,0x18(%rsp)
  jmp    L107
```

tool_calls: name: read_data
arguments: tag: D24
datatype: string
name: read_data
arguments: tag: D49
datatype: string
name: read_data
arguments: tag: D56
datatype: string
name: read_data
arguments: tag: D70
datatype: string
name: read_data
arguments: tag: D68
datatype: string
name: read_data
arguments: tag: D2
datatype: string
name: read_data
arguments: tag: D39
datatype: string
name: read_data
arguments: tag: D77
datatype: string
name: read_data
arguments: tag: D48
datatype: f32
name: read_data
arguments: tag: D42
datatype: f32
name: read_data
arguments: tag: D115
datatype: f32

tool: D24:  

tool: D49: %7s

tool: D56: %7.3f

tool: D70: M nl nr

tool: D68: 			Sample Savitzky-Golay Coefficients

tool: D2: %1d %1d %1d


tool: D39: Sum = %7.3f


tool: D77: Compare answer:
%s


tool: D48: 0

tool: D42: 0

tool: D115: 0

assistant: ```c
int main(void) {
  int i, j, m, nl, np, nr;
  float *c, sum;
  static int mtest[6 + 1] = {0, 2, 2, 2, 2, 4, 4};
  static int nltest[6 + 1] = {0, 2, 3, 4, 5, 4, 5};
  static int nrtest[6 + 1] = {0, 2, 1, 0, 5, 4, 5};
  static char *ans[6 + 1] = {"", "                      -0.086  0.343  0.486  0.343 -0.086", "               -0.143  0.171  0.343  0.371  0.257", "         0.086 -0.143 -0.086  0.257  0.886", " -0.084  0.021  0.103  0.161  0.196  0.207  0.196  0.161  0.103  0.021 -0.084", "         0.035 -0.128  0.070  0.315  0.417  0.315  0.070 -0.128  0.035", "  0.042 -0.105 -0.023  0.140  0.280  0.333  0.280  0.140 -0.023 -0.105  0.042"};
  c = vector(1, 1000);
  printf("M nl nr\n");
  printf("\t\t\tSample Savitzky-Golay Coefficients\n");
  for (i = 1; i <= 6; i++) {
    m = mtest[i];
    nl = nltest[i];
    nr = nrtest[i];
    np = nl + nr + 1;
    savgol(c, np, nl, nr, 0, m);
    for (sum = 0.0, j = 1; j <= np; j++)
      sum += c[j];
    printf("%1d %1d %1d\n", m, nl, nr);
    for (j = nl; j < 5; j++)
      printf("%7s", " ");
    for (j = nl + 1; j >= 1; j--)
      printf("%7.3f", c[j]);
    for (j = 0; j < nr; j++)
      printf("%7.3f", c[np - j]);
    printf("\n");
    printf("Sum = %7.3f\n", sum);
    printf("Compare answer:\n%s\n", ans[i]);
  }
  free_vector(c, 1, 1000);
  return 0;
}
```