user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,-0x70(%rbp)
  lea    D6(%rip),%rax
  mov    %rax,%rsi
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L91
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L91:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  movl   $0x1,-0x78(%rbp)
  jmp    L103
L20:
  mov    -0x78(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x68(%rbp),%rax
  lea    D34(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  addl   $0x1,-0x78(%rbp)
L103:
  cmpl   $0x64,-0x78(%rbp)
  jle    L20
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x78(%rbp)
  jmp    L66
L26:
  movl   $0x1,-0x74(%rbp)
  jmp    L97
L105:
  mov    -0x78(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x74(%rbp),%eax
  add    %edx,%eax
  cltq
  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    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x74(%rbp)
L97:
  cmpl   $0xa,-0x74(%rbp)
  jle    L105
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x78(%rbp)
L66:
  cmpl   $0x9,-0x78(%rbp)
  jle    L26
  mov    -0x70(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x64,%edi
  call   <piksrt@plt>
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x78(%rbp)
  jmp    L110
L21:
  movl   $0x1,-0x74(%rbp)
  jmp    L1
L94:
  mov    -0x78(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x74(%rbp),%eax
  add    %edx,%eax
  cltq
  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    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x74(%rbp)
L1:
  cmpl   $0xa,-0x74(%rbp)
  jle    L94
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x78(%rbp)
L110:
  cmpl   $0x9,-0x78(%rbp)
  jle    L21
  mov    -0x70(%rbp),%rax
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_vector@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D6
type_infered: string
name: parse_data
arguments: data_label: D43
type_infered: string
name: parse_data
arguments: data_label: D11
type_infered: string
name: parse_data
arguments: data_label: D34
type_infered: string
name: parse_data
arguments: data_label: D7
type_infered: string
name: parse_data
arguments: data_label: D12
type_infered: string
name: parse_data
arguments: data_label: D76
type_infered: string

tool: D6: r

tool: D43: tarray.dat

tool: D11: Data file tarray.dat not found


tool: D34: %f

tool: D7: original array:

tool: D12: %7.2f

tool: D76: sorted array:

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