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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,0x18(%rsp)
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%r14
  lea    D39(%rip),%rsi
  lea    D66(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L100
L114:
  lea    0x20(%rsp),%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    0x18(%rsp),%rax
  lea    0x4(%rax),%rbx
  lea    0x194(%rax),%r13
  lea    D68(%rip),%r12
L40:
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  add    $0x4,%rbx
  cmp    %r13,%rbx
  jne    L40
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0x1,%eax
L88:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%r14,%rax,4)
  add    $0x1,%rax
  cmp    $0x65,%rax
  jne    L88
  mov    %r14,%rdx
  mov    0x18(%rsp),%rbx
  mov    %rbx,%rsi
  mov    $0x64,%edi
  call   <piksr2@plt>
  lea    D34(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rax
  lea    0x28(%rbx),%r12
  add    $0x1b8,%rax
  mov    %rax,0x10(%rsp)
  mov    %r12,%rbp
  lea    D85(%rip),%r13
L89:
  lea    -0x28(%rbp),%rbx
L93:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L93
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x28,%rbp
  cmp    0x10(%rsp),%rbp
  jne    L89
  lea    D44(%rip),%rdi
  call   <puts@plt>
  lea    0x28(%r14),%rbp
  lea    0x1b8(%r14),%rax
  mov    %rax,0x8(%rsp)
  mov    %rbp,%r13
  lea    D85(%rip),%r15
L83:
  lea    -0x28(%r13),%rbx
L129:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  mov    %r15,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r13,%rbx
  jne    L129
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x28,%r13
  cmp    0x8(%rsp),%r13
  jne    L83
  lea    D30(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    0x18(%rsp),%rdx
  mov    %r14,%rsi
  mov    $0x64,%edi
  call   <piksr2@plt>
  lea    D117(%rip),%rdi
  call   <puts@plt>
  lea    D85(%rip),%r13
L61:
  lea    -0x28(%r12),%rbx
L16:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r12,%rbx
  jne    L16
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x28,%r12
  cmp    0x10(%rsp),%r12
  jne    L61
  lea    D44(%rip),%rdi
  call   <puts@plt>
  lea    D85(%rip),%r12
L13:
  lea    -0x28(%rbp),%rbx
L12:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rbx),%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %rbx,%rbp
  jne    L12
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x28,%rbp
  cmp    0x8(%rsp),%rbp
  jne    L13
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %r14,%rdi
  call   <free_vector@plt>
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    0x18(%rsp),%rdi
  call   <free_vector@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L116
  mov    $0x0,%eax
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L100:
  lea    D1(%rip),%rdi
  call   <nrerror@plt>
  jmp    L114
L116:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D39
datatype: string
name: retrieve_data
arguments: data_label: D66
datatype: string
name: retrieve_data
arguments: data_label: D68
datatype: string
name: retrieve_data
arguments: data_label: D34
datatype: string
name: retrieve_data
arguments: data_label: D85
datatype: string
name: retrieve_data
arguments: data_label: D44
datatype: string
name: retrieve_data
arguments: data_label: D30
datatype: string
name: retrieve_data
arguments: data_label: D117
datatype: string
name: retrieve_data
arguments: data_label: D1
datatype: string

tool: D39: r

tool: D66: tarray.dat

tool: D68: %f

tool: D34: 
After sorting a and mixing b, array a is:

tool: D85: %7.2f

tool: D44: 
... and array b is:

tool: D30: press return to continue ...

tool: D117: 
After sorting b and mixing a, array a is:

tool: D1: Data file tarray.dat not found


assistant: ```c
int main(void) {
  char txt[80];
  int i, j;
  float *a, *b;
  FILE *fp;
  a = vector(1, 100);
  b = vector(1, 100);
  if ((fp = fopen("tarray.dat", "r")) == NULL)
    nrerror("Data file tarray.dat not found\n");
  fgets(txt, 80, fp);
  for (i = 1; i <= 100; i++)
    fscanf(fp, "%f", &a[i]);
  fclose(fp);
  for (i = 1; i <= 100; i++)
    b[i] = i;
  piksr2(100, a, b);
  printf("\nAfter sorting a and mixing b, array a is:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", a[10 * i + j]);
    printf("\n");
  }
  printf("\n... and array b is:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", b[10 * i + j]);
    printf("\n");
  }
  printf("press return to continue ...\n");
  (void)getchar();
  piksr2(100, b, a);
  printf("\nAfter sorting b and mixing a, array a is:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", a[10 * i + j]);
    printf("\n");
  }
  printf("\n... and array b is:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", b[10 * i + j]);
    printf("\n");
  }
  free_vector(b, 1, 100);
  free_vector(a, 1, 100);
  return 0;
}
```