user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <lvector@plt>
  mov    %rax,%r13
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%r12
  lea    D10(%rip),%rsi
  lea    D35(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L1
L27:
  mov    %rsp,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  lea    0x4(%r12),%rbx
  lea    0x194(%r12),%r15
  lea    D52(%rip),%r14
L5:
  mov    %rbx,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  add    $0x4,%rbx
  cmp    %r15,%rbx
  jne    L5
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    $0x64,%edi
  call   <indexx@plt>
  lea    D49(%rip),%rdi
  call   <puts@plt>
  lea    0x2c(%r12),%rbp
  lea    0x1bc(%r12),%r15
  lea    D56(%rip),%r14
L6:
  lea    -0x28(%rbp),%rbx
L60:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rbx),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L60
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x28,%rbp
  cmp    %r15,%rbp
  jne    L6
  lea    D0(%rip),%rdi
  call   <puts@plt>
  lea    0x58(%r13),%rbp
  lea    0x378(%r13),%r15
  lea    D56(%rip),%r14
L51:
  lea    -0x50(%rbp),%rbx
L35:
  mov    (%rbx),%rax
  pxor   %xmm0,%xmm0
  cvtss2sd (%r12,%rax,4),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %rbp,%rbx
  jne    L35
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x50,%rbp
  cmp    %r15,%rbp
  jne    L51
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_vector@plt>
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <free_lvector@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  mov    $0x0,%eax
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  lea    D62(%rip),%rdi
  call   <nrerror@plt>
  jmp    L27
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D10
datatype: string
name: disassemble_data
arguments: data_tag: D35
datatype: string
name: disassemble_data
arguments: data_tag: D52
datatype: string
name: disassemble_data
arguments: data_tag: D49
datatype: string
name: disassemble_data
arguments: data_tag: D56
datatype: string
name: disassemble_data
arguments: data_tag: D0
datatype: string
name: disassemble_data
arguments: data_tag: D62
datatype: string

tool: D10: r

tool: D35: tarray.dat

tool: D52: %f

tool: D49: 
original array:

tool: D56: %7.2f

tool: D0: 
sorted array:

tool: D62: Data file tarray.dat not found


assistant: ```c
int main(void) {
  char txt[80];
  unsigned long i, j, *indx;
  float *a;
  FILE *fp;
  indx = lvector(1, 100);
  a = 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);
  indexx(100, a, indx);
  printf("\noriginal array:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", a[10 * i + j]);
    printf("\n");
  }
  printf("\nsorted array:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", a[indx[10 * i + j]]);
    printf("\n");
  }
  free_vector(a, 1, 100);
  free_lvector(indx, 1, 100);
  return 0;
}
```