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

```asm
<main>:
  endbr64
  push   %r15
  lea    D78(%rip),%rsi
  lea    D38(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L72
L62:
  lea    0x10(%rsp),%r12
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %r12,%rdi
  lea    D98(%rip),%rbx
  lea    D28(%rip),%r13
  call   <fgets@plt>
  jmp    L10
  cs nopw 0x0(%rax,%rax,1)
L5:
  mov    %r12,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L9
L10:
  mov    $0xb,%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L5
  lea    0xc(%rsp),%rdx
  lea    D34(%rip),%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  mov    %r12,%rsi
  lea    D103(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D64(%rip),%rcx
  xor    %eax,%eax
  lea    D111(%rip),%rdx
  lea    D123(%rip),%rsi
  lea    D126(%rip),%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L31
  mov    $0x1,%ebx
  lea    0x4(%rsp),%r14
  lea    0x8(%rsp),%r13
  lea    D55(%rip),%r12
  lea    D141(%rip),%r15
  jmp    L79
  nopl   0x0(%rax)
L59:
  call   <factrl@plt>
  mov    0x8(%rsp),%esi
  mov    $0x2,%eax
  add    $0x1,%ebx
  movapd %xmm0,%xmm1
  lea    D8(%rip),%rdi
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rsp),%xmm0
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jl     L31
L79:
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12,%rsi
  call   <fscanf@plt>
  movss  D143(%rip),%xmm2
  comiss 0x4(%rsp),%xmm2
  mov    0x8(%rsp),%edi
  ja     L59
  call   <factrl@plt>
  mov    0x8(%rsp),%esi
  mov    %r15,%rdi
  add    $0x1,%ebx
  movapd %xmm0,%xmm1
  mov    $0x2,%eax
  pxor   %xmm0,%xmm0
  cvtss2sd 0x4(%rsp),%xmm0
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jge    L79
L31:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L9:
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L10
L72:
  lea    D147(%rip),%rdi
  call   <nrerror@plt>
  jmp    L62
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D78
type: string
name: retrieve_data
arguments: data_tag: D38
type: string
name: retrieve_data
arguments: data_tag: D98
type: string
name: retrieve_data
arguments: data_tag: D28
type: string
name: retrieve_data
arguments: data_tag: D34
type: string
name: retrieve_data
arguments: data_tag: D103
type: string
name: retrieve_data
arguments: data_tag: D64
type: string
name: retrieve_data
arguments: data_tag: D111
type: string
name: retrieve_data
arguments: data_tag: D123
type: string
name: retrieve_data
arguments: data_tag: D126
type: string
name: retrieve_data
arguments: data_tag: D55
type: string
name: retrieve_data
arguments: data_tag: D141
type: string
name: retrieve_data
arguments: data_tag: D8
type: string
name: retrieve_data
arguments: data_tag: D143
type: f32
name: retrieve_data
arguments: data_tag: D147
type: string

tool: D78: r

tool: D38: fncval.dat

tool: D98: N-factorial

tool: D28: Data not found in fncval.dat


tool: D34: %d %*s

tool: D103: 
%s


tool: D64: factrl(n)

tool: D111: actual

tool: D123: n

tool: D126: %6s %18s %20s 


tool: D55: %d %f 

tool: D141: %6d %20e %20e 


tool: D8: %6d %20.0f %20.0f


tool: D143: 10000000000

tool: D147: Data file fncval.dat not found


assistant: ```c
int main(void) {
  char txt[80];
  float actual;
  int i, n, nval;
  FILE *fp;
  if ((fp = fopen("fncval.dat", "r")) == NULL)
    nrerror("Data file fncval.dat not found\n");
  fgets(txt, 80, fp);
  while (strncmp(txt, "N-factorial", 11)) {
    fgets(txt, 80, fp);
    if (feof(fp))
      nrerror("Data not found in fncval.dat\n");
  }
  fscanf(fp, "%d %*s", &nval);
  printf("\n%s\n", txt);
  printf("%6s %18s %20s \n", "n", "actual", "factrl(n)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%d %f ", &n, &actual);
    if (actual < 1.0e10)
      printf("%6d %20.0f %20.0f\n", n, actual, factrl(n));
    else
      printf("%6d %20e %20e \n", n, actual, factrl(n));
  }
  fclose(fp);
  return 0;
}
```