user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x3e8,%esi
  mov    $0x1,%edi
  lea    D118(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  lea    D89(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D119(%rip),%rbx
  sub    $0x28,%rsp
  call   <vector@plt>
  lea    D22(%rip),%rdi
  mov    %rax,%r14
  call   <puts@plt>
  lea    D91(%rip),%rdi
  call   <puts@plt>
  movq   $0x4,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L21:
  mov    0x10(%rsp),%rax
  lea    D71(%rip),%rsi
  xor    %r8d,%r8d
  mov    %r14,%rdi
  mov    (%rsi,%rax,1),%r13d
  lea    D48(%rip),%rsi
  mov    (%rsi,%rax,1),%ebp
  lea    D40(%rip),%rsi
  mov    (%rsi,%rax,1),%ecx
  mov    %r13d,%r9d
  mov    %ebp,%edx
  lea    0x0(%rbp,%rcx,1),%eax
  mov    %ecx,0x1c(%rsp)
  mov    %eax,0x18(%rsp)
  add    $0x1,%eax
  mov    %eax,%esi
  mov    %eax,0xc(%rsp)
  call   <savgol@plt>
  mov    0xc(%rsp),%ecx
  test   %ecx,%ecx
  jle    L60
  cmpl   $0x2,0x18(%rsp)
  jbe    L45
  shr    $0x2,%ecx
  movl   $0x0,0x8(%rsp)
  lea    0x4(%r14),%rax
  mov    %ecx,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x14(%r14,%rdx,1),%rdx
  nopl   (%rax)
L26:
  movups (%rax),%xmm0
  movss  0x8(%rsp),%xmm1
  add    $0x10,%rax
  addss  %xmm0,%xmm1
  movaps %xmm0,%xmm2
  shufps $0x55,%xmm0,%xmm2
  addss  %xmm1,%xmm2
  movaps %xmm0,%xmm1
  unpckhps %xmm0,%xmm1
  shufps $0xff,%xmm0,%xmm0
  addss  %xmm2,%xmm1
  addss  %xmm0,%xmm1
  movss  %xmm1,0x8(%rsp)
  cmp    %rdx,%rax
  jne    L26
  mov    0xc(%rsp),%esi
  mov    %esi,%eax
  and    $0xfffffffc,%eax
  lea    0x1(%rax),%edx
  cmp    %esi,%eax
  je     L22
L41:
  movslq %edx,%rax
  movss  0x8(%rsp),%xmm4
  addss  (%r14,%rax,4),%xmm4
  lea    0x0(,%rax,4),%rcx
  movss  %xmm4,0x8(%rsp)
  cmp    %edx,0x18(%rsp)
  jl     L22
  addss  0x4(%r14,%rcx,1),%xmm4
  movss  %xmm4,0x8(%rsp)
  jle    L22
  addss  0x8(%r14,%rcx,1),%xmm4
  movss  %xmm4,0x8(%rsp)
L22:
  mov    0x1c(%rsp),%ecx
  xor    %eax,%eax
  mov    %ebp,%edx
  mov    %r13d,%esi
  lea    D53(%rip),%rdi
  call   <printf@plt>
  cmp    $0x4,%ebp
  jg     L131
  mov    %ebp,%r13d
  nopw   0x0(%rax,%rax,1)
L87:
  mov    %r12,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%r13d
  call   <printf@plt>
  cmp    $0x5,%r13d
  jne    L87
L131:
  lea    0x1(%rbp),%eax
  test   %eax,%eax
  jle    L40
  cltq
  shl    $0x2,%rax
  lea    -0x4(%r14,%rax,1),%rcx
  lea    (%r14,%rax,1),%r13
  mov    %ebp,%eax
  shl    $0x2,%rax
  sub    %rax,%rcx
  mov    %rcx,%rbp
  nopl   0x0(%rax)
L27:
  pxor   %xmm0,%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  sub    $0x4,%r13
  cvtss2sd 0x4(%r13),%xmm0
  call   <printf@plt>
  cmp    %rbp,%r13
  jne    L27
L40:
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  jle    L35
  movslq 0xc(%rsp),%rax
  lea    (%r14,%rax,4),%r13
  movslq 0x18(%rsp),%rax
  lea    (%r14,%rax,4),%rbp
  lea    -0x1(%rdx),%eax
  shl    $0x2,%rax
  sub    %rax,%rbp
  nopl   0x0(%rax)
L51:
  pxor   %xmm0,%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  sub    $0x4,%r13
  cvtss2sd 0x4(%r13),%xmm0
  call   <printf@plt>
  cmp    %rbp,%r13
  jne    L51
L35:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D96(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x8(%rsp),%xmm0
  call   <printf@plt>
  mov    0x10(%rsp),%rbp
  lea    D95(%rip),%rax
  lea    D102(%rip),%rdi
  mov    (%rax,%rbp,2),%rsi
  xor    %eax,%eax
  add    $0x4,%rbp
  call   <printf@plt>
  mov    %rbp,0x10(%rsp)
  cmp    $0x1c,%rbp
  jne    L21
  mov    %r14,%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
L60:
  movl   $0x0,0x8(%rsp)
  jmp    L22
L45:
  movl   $0x0,0x8(%rsp)
  mov    $0x1,%edx
  jmp    L41
```

tool_calls: name: disassemble_data
arguments: label: D118
data_type: string
name: disassemble_data
arguments: label: D89
data_type: string
name: disassemble_data
arguments: label: D119
data_type: string
name: disassemble_data
arguments: label: D22
data_type: string
name: disassemble_data
arguments: label: D91
data_type: string
name: disassemble_data
arguments: label: D71
data_type: f32
name: disassemble_data
arguments: label: D48
data_type: f32
name: disassemble_data
arguments: label: D40
data_type: f32
name: disassemble_data
arguments: label: D53
data_type: string
name: disassemble_data
arguments: label: D96
data_type: string
name: disassemble_data
arguments: label: D102
data_type: string

tool: D118: %7s

tool: D89:  

tool: D119: %7.3f

tool: D22: M nl nr

tool: D91: 			Sample Savitzky-Golay Coefficients

tool: D71: 0

tool: D48: 0

tool: D40: 0

tool: D53: %1d %1d %1d


tool: D96: Sum = %7.3f


tool: D102: Compare answer:
%s


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;
}
```