user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D136(%rip),%rsi
  lea    D110(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L67
L61:
  lea    0x20(%rsp),%r12
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %r12,%rdi
  lea    D90(%rip),%rbx
  lea    D69(%rip),%r13
  call   <fgets@plt>
  jmp    L88
  nopl   0x0(%rax)
L32:
  mov    %r12,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L43
L88:
  mov    $0x19,%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L32
  lea    0x10(%rsp),%rdx
  lea    D7(%rip),%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  mov    %r12,%rsi
  lea    D131(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D78(%rip),%r8
  xor    %eax,%eax
  lea    D103(%rip),%rcx
  lea    D19(%rip),%rdx
  lea    D21(%rip),%rsi
  lea    D2(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jle    L38
  mov    $0x1,%r12d
  lea    0x18(%rsp),%r8
  lea    0x1c(%rsp),%r15
  lea    0x14(%rsp),%r14
  lea    D89(%rip),%r13
  lea    D62(%rip),%rbx
  nopl   0x0(%rax)
L71:
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r8,0x8(%rsp)
  add    $0x1,%r12d
  call   <fscanf@plt>
  movss  0x1c(%rsp),%xmm1
  movss  0x14(%rsp),%xmm0
  call   <gammp@plt>
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  mov    %rbx,%rdi
  movapd %xmm0,%xmm3
  mov    $0x4,%eax
  pxor   %xmm0,%xmm0
  cvtss2sd 0x18(%rsp),%xmm2
  cvtss2sd 0x14(%rsp),%xmm0
  cvtss2sd 0x1c(%rsp),%xmm1
  call   <printf@plt>
  cmp    %r12d,0x10(%rsp)
  mov    0x8(%rsp),%r8
  jge    L71
L38:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L43:
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L88
L67:
  lea    D121(%rip),%rdi
  call   <nrerror@plt>
  jmp    L61
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D136
type: string
name: extract_symbolic_data
arguments: data_label: D110
type: string
name: extract_symbolic_data
arguments: data_label: D90
type: string
name: extract_symbolic_data
arguments: data_label: D69
type: string
name: extract_symbolic_data
arguments: data_label: D7
type: string
name: extract_symbolic_data
arguments: data_label: D131
type: string
name: extract_symbolic_data
arguments: data_label: D78
type: string
name: extract_symbolic_data
arguments: data_label: D103
type: string
name: extract_symbolic_data
arguments: data_label: D19
type: string
name: extract_symbolic_data
arguments: data_label: D21
type: string
name: extract_symbolic_data
arguments: data_label: D2
type: string
name: extract_symbolic_data
arguments: data_label: D89
type: string
name: extract_symbolic_data
arguments: data_label: D62
type: string
name: extract_symbolic_data
arguments: data_label: D121
type: string

tool: D136: r

tool: D110: fncval.dat

tool: D90: Incomplete Gamma Function

tool: D69: Data not found in fncval.dat


tool: D7: %d %*s

tool: D131: 
%s


tool: D78: gammp(a,x)

tool: D103: actual

tool: D19: x

tool: D21: a

tool: D2: %4s %11s %14s %14s 


tool: D89: %f %f %f

tool: D62: %6.2f %12.6f %12.6f %12.6f 


tool: D121: Data file fncval.dat not found


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