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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    D33(%rip),%rsi
  lea    D103(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L62
L47:
  lea    0x10(%rsp),%rdi
  mov    %rbx,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  lea    D72(%rip),%r12
  lea    0x10(%rsp),%rbp
  lea    D77(%rip),%r13
L68:
  mov    $0xe,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L22
  mov    %rbx,%rdx
  mov    $0x50,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  mov    %rbx,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L68
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L68
L62:
  lea    D108(%rip),%rdi
  call   <nrerror@plt>
  jmp    L47
L22:
  lea    0x4(%rsp),%rdx
  lea    D22(%rip),%rsi
  mov    %rbx,%rdi
  call   <fscanf@plt>
  lea    D137(%rip),%rdi
  call   <puts@plt>
  lea    D76(%rip),%rcx
  lea    D128(%rip),%rdx
  lea    D32(%rip),%rsi
  lea    D112(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0x4(%rsp)
  jle    L8
  mov    $0x1,%ebp
  lea    0xc(%rsp),%r14
  lea    D57(%rip),%r13
  lea    D11(%rip),%r12
L46:
  lea    0x8(%rsp),%rdx
  mov    %r14,%rcx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  movss  D85(%rip),%xmm0
  subss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  movss  0x8(%rsp),%xmm0
  call   <erfcc@plt>
  movapd %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0xc(%rsp),%xmm1
  mov    %r12,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jge    L46
L8:
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L58
  mov    $0x0,%eax
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L58:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D33
type_guessed: string
name: unpack_data
arguments: data_label: D103
type_guessed: string
name: unpack_data
arguments: data_label: D72
type_guessed: string
name: unpack_data
arguments: data_label: D77
type_guessed: string
name: unpack_data
arguments: data_label: D108
type_guessed: string
name: unpack_data
arguments: data_label: D22
type_guessed: string
name: unpack_data
arguments: data_label: D137
type_guessed: string
name: unpack_data
arguments: data_label: D76
type_guessed: string
name: unpack_data
arguments: data_label: D128
type_guessed: string
name: unpack_data
arguments: data_label: D32
type_guessed: string
name: unpack_data
arguments: data_label: D112
type_guessed: string
name: unpack_data
arguments: data_label: D57
type_guessed: string
name: unpack_data
arguments: data_label: D11
type_guessed: string
name: unpack_data
arguments: data_label: D85
type_guessed: f32

tool: D33: r

tool: D103: fncval.dat

tool: D72: Error Function

tool: D77: Data not found in fncval.dat


tool: D108: Data file fncval.dat not found


tool: D22: %d %*s

tool: D137: 
complementary error function

tool: D76: erfcc(x)

tool: D128: actual

tool: D32: x

tool: D112: %5s %12s %13s


tool: D57: %f %f

tool: D11: %6.2f %12.7f %12.7f


tool: D85: 1

assistant: ```c
int main(void) {
  char txt[80];
  int i, nval;
  float x, val;
  FILE *fp;
  if ((fp = fopen("fncval.dat", "r")) == NULL)
    nrerror("Data file fncval.dat not found\n");
  fgets(txt, 80, fp);
  while (strncmp(txt, "Error Function", 14)) {
    fgets(txt, 80, fp);
    if (feof(fp))
      nrerror("Data not found in fncval.dat\n");
  }
  fscanf(fp, "%d %*s", &nval);
  printf("\ncomplementary error function\n");
  printf("%5s %12s %13s\n", "x", "actual", "erfcc(x)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%f %f", &x, &val);
    val = 1.0 - val;
    printf("%6.2f %12.7f %12.7f\n", x, val, erfcc(x));
  }
  fclose(fp);
  return 0;
}
```