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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D53(%rip),%rax
  mov    %rax,%rsi
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L26
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L26:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  jmp    L56
L63:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L56
  lea    D125(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L56:
  lea    -0x60(%rbp),%rax
  mov    $0x19,%edx
  lea    D92(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L63
  lea    -0x7c(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D120(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D3(%rip),%r8
  lea    D78(%rip),%rax
  mov    %rax,%rcx
  lea    D19(%rip),%rax
  mov    %rax,%rdx
  lea    D59(%rip),%rax
  mov    %rax,%rsi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x6c(%rbp)
  jmp    L36
L2:
  lea    -0x74(%rbp),%rsi
  lea    -0x70(%rbp),%rcx
  lea    -0x78(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rsi,%r8
  lea    D70(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  movss  -0x70(%rbp),%xmm0
  mov    -0x78(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <gammp@plt>
  movq   %xmm0,%rdx
  movss  -0x74(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0x70(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x78(%rbp),%xmm2
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm2,%xmm4
  movq   %xmm4,%rax
  movq   %rdx,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D126(%rip),%rax
  mov    %rax,%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  addl   $0x1,-0x6c(%rbp)
L36:
  mov    -0x7c(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jle    L2
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L35
  call   <__stack_chk_fail@plt>
L35:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D53
type: string
name: parse_data
arguments: data_label: D123
type: string
name: parse_data
arguments: data_label: D81
type: string
name: parse_data
arguments: data_label: D125
type: string
name: parse_data
arguments: data_label: D92
type: string
name: parse_data
arguments: data_label: D120
type: string
name: parse_data
arguments: data_label: D55
type: string
name: parse_data
arguments: data_label: D3
type: string
name: parse_data
arguments: data_label: D78
type: string
name: parse_data
arguments: data_label: D19
type: string
name: parse_data
arguments: data_label: D59
type: string
name: parse_data
arguments: data_label: D6
type: string
name: parse_data
arguments: data_label: D70
type: string
name: parse_data
arguments: data_label: D126
type: string

tool: D53: r

tool: D123: fncval.dat

tool: D81: Data file fncval.dat not found


tool: D125: Data not found in fncval.dat


tool: D92: Incomplete Gamma Function

tool: D120: %d %*s

tool: D55: 
%s


tool: D3: gammp(a,x)

tool: D78: actual

tool: D19: x

tool: D59: a

tool: D6: %4s %11s %14s %14s 


tool: D70: %f %f %f

tool: D126: %6.2f %12.6f %12.6f %12.6f 


assistant: ```c
int main(void) {
  char txt[80];
  int i, nval;
  float a, val, x;
  FILE *fp;
  if ((fp = fopen("fncval.dat", "r")) == NULL)
    nrerror("Data file fncval.dat not found\n");
  fgets(txt, 80, fp);
  while (strncmp(txt, "Incomplete Gamma Function", 25)) {
    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("%4s %11s %14s %14s \n", "a", "x", "actual", "gammp(a,x)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%f %f %f", &a, &x, &val);
    printf("%6.2f %12.6f %12.6f %12.6f \n", a, x, val, gammp(a, x));
  }
  fclose(fp);
  return 0;
}
```