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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <lvector@plt>
  mov    %rax,-0x78(%rbp)
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,-0x70(%rbp)
  lea    D68(%rip),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L118
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L118:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  movq   $0x1,-0x88(%rbp)
  jmp    L86
L68:
  mov    -0x88(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x68(%rbp),%rax
  lea    D74(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  addq   $0x1,-0x88(%rbp)
L86:
  cmpq   $0x64,-0x88(%rbp)
  jbe    L68
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x78(%rbp),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x64,%edi
  call   <indexx@plt>
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movq   $0x0,-0x88(%rbp)
  jmp    L52
L18:
  movq   $0x1,-0x80(%rbp)
  jmp    L110
L88:
  mov    -0x88(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  mov    %rax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addq   $0x1,-0x80(%rbp)
L110:
  cmpq   $0xa,-0x80(%rbp)
  jbe    L88
  mov    $0xa,%edi
  call   <putchar@plt>
  addq   $0x1,-0x88(%rbp)
L52:
  cmpq   $0x9,-0x88(%rbp)
  jbe    L18
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movq   $0x0,-0x88(%rbp)
  jmp    L59
L21:
  movq   $0x1,-0x80(%rbp)
  jmp    L48
L78:
  mov    -0x88(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  mov    %rax,%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addq   $0x1,-0x80(%rbp)
L48:
  cmpq   $0xa,-0x80(%rbp)
  jbe    L78
  mov    $0xa,%edi
  call   <putchar@plt>
  addq   $0x1,-0x88(%rbp)
L59:
  cmpq   $0x9,-0x88(%rbp)
  jbe    L21
  mov    -0x70(%rbp),%rax
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_vector@plt>
  mov    -0x78(%rbp),%rax
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_lvector@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L47
  call   <__stack_chk_fail@plt>
L47:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D68
type: string
name: disassemble_data
arguments: tag: D48
type: string
name: disassemble_data
arguments: tag: D22
type: string
name: disassemble_data
arguments: tag: D74
type: string
name: disassemble_data
arguments: tag: D31
type: string
name: disassemble_data
arguments: tag: D64
type: string
name: disassemble_data
arguments: tag: D76
type: string

tool: D68: r

tool: D48: tarray.dat

tool: D22: Data file tarray.dat not found


tool: D74: %f

tool: D31: 
original array:

tool: D64: %7.2f

tool: D76: 
sorted array:

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