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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x14,%esi
  mov    $0x1,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2f8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x2e8(%rsp)
  xor    %eax,%eax
  call   <vector@plt>
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x28(%rsp)
  call   <vector@plt>
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x10(%rsp)
  call   <vector@plt>
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x30(%rsp)
  call   <vector@plt>
  mov    $0xc,%ecx
  mov    $0x1,%edx
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x38(%rsp)
  call   <matrix@plt>
  lea    D115(%rip),%rsi
  lea    D15(%rip),%rdi
  mov    %rax,%r12
  call   <fopen@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L67
L108:
  lea    0x240(%rsp),%rbp
  mov    %r15,%rdx
  mov    $0x50,%esi
  mov    %rbp,%rdi
  lea    0x85(%rsp),%r14
  lea    0xc1(%rsp),%r13
  call   <fgets@plt>
  lea    0x290(%rsp),%rax
  mov    %r15,%rdx
  mov    $0x50,%esi
  mov    %rax,%rdi
  mov    %rax,0x48(%rsp)
  lea    D160(%rip),%rbx
  call   <fgets@plt>
  lea    D218(%rip),%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r14,0x40(%rsp)
  mov    %r13,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L47:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  add    $0x5,%r14
  cmp    %r13,%r14
  jne    L47
  mov    %rbp,%rdi
  mov    %r15,%rdx
  lea    0x8(%r12),%rbx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    %rbp,%rdi
  mov    %r15,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    0x28(%rsp),%rcx
  mov    %r12,0x58(%rsp)
  mov    %rbx,%rbp
  lea    0xe1(%rsp),%rax
  mov    %rbx,0x50(%rsp)
  lea    D78(%rip),%r14
  add    $0x4,%rcx
  mov    %rax,0x20(%rsp)
  mov    %rax,%rbx
  mov    %rcx,(%rsp)
  mov    0x38(%rsp),%rcx
  lea    0x4(%rcx),%r13
  lea    0x235(%rsp),%rcx
  mov    %rcx,0x8(%rsp)
  nopl   (%rax)
L54:
  mov    %rbx,%rdx
  lea    D73(%rip),%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  movb   $0x0,0x10(%rbx)
  mov    $0x4,%r12d
  cs nopw 0x0(%rax,%rax,1)
L43:
  mov    0x0(%rbp),%rdx
  mov    %r14,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    %r12,%rdx
  add    $0x4,%r12
  call   <fscanf@plt>
  cmp    $0x34,%r12
  jne    L43
  mov    (%rsp),%r12
  mov    %r13,%rcx
  lea    D231(%rip),%rsi
  xor    %eax,%eax
  mov    %r15,%rdi
  add    $0x11,%rbx
  add    $0x4,%r13
  add    $0x8,%rbp
  mov    %r12,%rdx
  call   <fscanf@plt>
  mov    %r12,%rax
  add    $0x4,%rax
  mov    %rax,(%rsp)
  cmp    0x8(%rsp),%rbx
  jne    L54
  mov    %r15,%rdi
  mov    0x50(%rsp),%rbx
  mov    0x58(%rsp),%r12
  lea    D100(%rip),%rbp
  call   <fclose@plt>
  mov    0x48(%rsp),%rdi
  call   <puts@plt>
  lea    D156(%rip),%rsi
  lea    D171(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x40(%rsp),%r14
  mov    0x18(%rsp),%r13
  nopl   0x0(%rax)
L81:
  mov    %r14,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x5,%r14
  call   <printf@plt>
  cmp    %r13,%r14
  jne    L81
  mov    $0xa,%edi
  lea    D13(%rip),%r14
  lea    D135(%rip),%rbp
  call   <putchar@plt>
  mov    %r12,(%rsp)
  mov    0x20(%rsp),%r13
  mov    0x8(%rsp),%r15
  nopl   0x0(%rax)
L83:
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    $0x4,%r12d
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L109:
  mov    (%rbx),%rax
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  cvtss2sd (%rax,%r12,1),%xmm0
  addsd  D128(%rip),%xmm0
  xor    %eax,%eax
  add    $0x4,%r12
  cvttsd2si %xmm0,%esi
  call   <printf@plt>
  cmp    $0x34,%r12
  jne    L109
  mov    $0xa,%edi
  add    $0x11,%r13
  add    $0x8,%rbx
  call   <putchar@plt>
  cmp    %r15,%r13
  jne    L83
  lea    D186(%rip),%rdi
  mov    (%rsp),%r12
  call   <puts@plt>
  lea    D173(%rip),%rdi
  call   <puts@plt>
  lea    D66(%rip),%rdi
  call   <puts@plt>
  sub    $0x8,%rsp
  lea    D14(%rip),%rax
  lea    D211(%rip),%rcx
  push   %rax
  lea    D155(%rip),%rsi
  xor    %eax,%eax
  lea    D208(%rip),%r9
  lea    D159(%rip),%r8
  lea    D25(%rip),%rdx
  lea    D23(%rip),%rdi
  call   <printf@plt>
  pop    %rcx
  pop    %rsi
  mov    $0x1,%eax
  mov    0x10(%rsp),%rcx
  nopl   (%rax)
L5:
  mov    (%r12,%rax,8),%rdx
  movss  0x4(%rdx),%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    $0x15,%rax
  jne    L5
  lea    0x78(%rsp),%rax
  lea    0x70(%rsp),%rbp
  mov    $0x4,%ebx
  lea    0x7c(%rsp),%r15
  lea    0x74(%rsp),%r13
  mov    %rax,0x8(%rsp)
  mov    %r13,0x20(%rsp)
  mov    %r15,%r8
  mov    0x30(%rsp),%r13
  mov    %rbp,%r15
  mov    0x40(%rsp),%rbp
  lea    0x6c(%rsp),%r14
L113:
  mov    $0x1,%eax
  nopl   (%rax)
L89:
  mov    (%r12,%rax,8),%rdx
  movss  (%rdx,%rbx,1),%xmm0
  movss  %xmm0,0x0(%r13,%rax,4)
  add    $0x1,%rax
  cmp    $0x15,%rax
  jne    L89
  push   0x20(%rsp)
  mov    $0x14,%edx
  mov    %r15,%r9
  mov    %r14,%rcx
  push   0x10(%rsp)
  mov    %r13,%rsi
  add    $0x4,%rbx
  mov    0x20(%rsp),%rdi
  mov    %r8,0x10(%rsp)
  call   <spear@plt>
  mov    %rbp,%rsi
  pxor   %xmm0,%xmm0
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  add    $0x5,%rbp
  lea    D95(%rip),%rdi
  mov    $0x5,%eax
  cvtss2sd 0x7c(%rsp),%xmm0
  cvtss2sd 0x84(%rsp),%xmm4
  cvtss2sd 0x88(%rsp),%xmm3
  cvtss2sd 0x80(%rsp),%xmm2
  cvtss2sd 0x8c(%rsp),%xmm1
  call   <printf@plt>
  pop    %rax
  pop    %rdx
  cmp    0x18(%rsp),%rbp
  mov    (%rsp),%r8
  jne    L113
  mov    $0xc,%r8d
  mov    $0x1,%ecx
  mov    $0x14,%edx
  mov    %r12,%rdi
  mov    $0x1,%esi
  call   <free_matrix@plt>
  mov    0x38(%rsp),%rdi
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  mov    0x30(%rsp),%rdi
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  mov    0x10(%rsp),%rdi
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  mov    0x28(%rsp),%rdi
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  mov    0x2e8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L98
  add    $0x2f8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L67:
  lea    D19(%rip),%rdi
  call   <nrerror@plt>
  jmp    L108
L98:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D115
type: string
name: disassemble_data
arguments: data_label: D15
type: string
name: disassemble_data
arguments: data_label: D160
type: string
name: disassemble_data
arguments: data_label: D218
type: string
name: disassemble_data
arguments: data_label: D78
type: string
name: disassemble_data
arguments: data_label: D73
type: string
name: disassemble_data
arguments: data_label: D231
type: string
name: disassemble_data
arguments: data_label: D100
type: string
name: disassemble_data
arguments: data_label: D156
type: string
name: disassemble_data
arguments: data_label: D171
type: string
name: disassemble_data
arguments: data_label: D13
type: string
name: disassemble_data
arguments: data_label: D135
type: string
name: disassemble_data
arguments: data_label: D128
type: f64
name: disassemble_data
arguments: data_label: D186
type: string
name: disassemble_data
arguments: data_label: D173
type: string
name: disassemble_data
arguments: data_label: D66
type: string
name: disassemble_data
arguments: data_label: D14
type: string
name: disassemble_data
arguments: data_label: D211
type: string
name: disassemble_data
arguments: data_label: D155
type: string
name: disassemble_data
arguments: data_label: D208
type: string
name: disassemble_data
arguments: data_label: D159
type: string
name: disassemble_data
arguments: data_label: D25
type: string
name: disassemble_data
arguments: data_label: D23
type: string
name: disassemble_data
arguments: data_label: D95
type: string
name: disassemble_data
arguments: data_label: D19
type: string

tool: D115: r

tool: D15: table2.dat

tool: D160:  %s

tool: D218: %*15c

tool: D78: %f

tool: D73: %[^0123456789]

tool: D231: %f %f 

tool: D100: %4s

tool: D156:  

tool: D171: %16s

tool: D13: %s

tool: D135: %4d

tool: D128: 0.5

tool: D186: 
Are sunny summer places also sunny winter places?

tool: D173: Check correlation of sampled U.S. solar radiation

tool: D66: (july with other months)


tool: D14: probrs

tool: D211: st. dev.

tool: D155: month

tool: D208: spearman-r

tool: D159: probd

tool: D25: d

tool: D23: %s %9s %14s %11s %15s %10s


tool: D95: %4s %12.2f %12.6f %12.6f %13.6f %12.6f


tool: D19: Data file table2.dat not found


assistant: ```c
int main(void) {
  int i, j;
  float d, probd, probrs, rs, zd, *ave, *data1, *data2, *zlat, **rays;
  char dummy[80], txt[80], city[20 + 1][17], mon[12 + 1][5];
  FILE *fp;
  ave = vector(1, 20);
  data1 = vector(1, 20);
  data2 = vector(1, 20);
  zlat = vector(1, 20);
  rays = matrix(1, 20, 1, 12);
  if ((fp = fopen("table2.dat", "r")) == NULL)
    nrerror("Data file table2.dat not found\n");
  fgets(dummy, 80, fp);
  fgets(txt, 80, fp);
  fscanf(fp, "%*15c");
  for (i = 1; i <= 12; i++)
    fscanf(fp, " %s", mon[i]);
  fgets(dummy, 80, fp);
  fgets(dummy, 80, fp);
  for (i = 1; i <= 20; i++) {
    fscanf(fp, "%[^0123456789]", city[i]);
    city[i][16] = '\0';
    for (j = 1; j <= 12; j++)
      fscanf(fp, "%f", &rays[i][j]);
    fscanf(fp, "%f %f ", &ave[i], &zlat[i]);
  }
  fclose(fp);
  printf("%s\n", txt);
  printf("%16s", " ");
  for (i = 1; i <= 12; i++)
    printf("%4s", mon[i]);
  printf("\n");
  for (i = 1; i <= 20; i++) {
    printf("%s", city[i]);
    for (j = 1; j <= 12; j++)
      printf("%4d", (int)(0.5 + rays[i][j]));
    printf("\n");
  }
  printf("\nAre sunny summer places also sunny winter places?\n");
  printf("Check correlation of sampled U.S. solar radiation\n");
  printf("(july with other months)\n\n");
  printf("%s %9s %14s %11s %15s %10s\n", "month", "d", "st. dev.", "probd", "spearman-r", "probrs");
  for (i = 1; i <= 20; i++)
    data1[i] = rays[i][1];
  for (j = 1; j <= 12; j++) {
    for (i = 1; i <= 20; i++)
      data2[i] = rays[i][j];
    spear(data1, data2, 20, &d, &zd, &probd, &rs, &probrs);
    printf("%4s %12.2f %12.6f %12.6f %13.6f %12.6f\n", mon[j], d, zd, probd, rs, probrs);
  }
  free_matrix(rays, 1, 20, 1, 12);
  free_vector(zlat, 1, 20);
  free_vector(data2, 1, 20);
  free_vector(data1, 1, 20);
  free_vector(ave, 1, 20);
  return 0;
}
```