user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r15
  lea    D128(%rip),%rsi
  lea    D101(%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     L42
L25:
  lea    0x10(%rsp),%rbx
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  lea    D106(%rip),%r12
  lea    D43(%rip),%r13
  call   <fgets@plt>
  jmp    L68
  cs nopw 0x0(%rax,%rax,1)
L18:
  mov    %rbx,%rdi
  mov    %rbp,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L50
L68:
  mov    $0xe,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L18
  lea    0x4(%rsp),%rdx
  lea    D96(%rip),%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  lea    D100(%rip),%rdi
  call   <puts@plt>
  lea    D48(%rip),%rcx
  xor    %eax,%eax
  lea    D77(%rip),%rdx
  lea    D136(%rip),%rsi
  lea    D118(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L33
  mov    $0x1,%ebx
  lea    0xc(%rsp),%r15
  lea    0x8(%rsp),%r14
  lea    D132(%rip),%r13
  lea    D113(%rip),%r12
  xchg   %ax,%ax
L48:
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <fscanf@plt>
  movss  D60(%rip),%xmm0
  subss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  movss  0x8(%rsp),%xmm0
  call   <erfcc@plt>
  pxor   %xmm1,%xmm1
  mov    %r12,%rdi
  mov    $0x3,%eax
  movapd %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm1
  cvtss2sd 0x8(%rsp),%xmm0
  call   <printf@plt>
  cmp    %ebx,0x4(%rsp)
  jge    L48
L33:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L50:
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L68
L42:
  lea    D55(%rip),%rdi
  call   <nrerror@plt>
  jmp    L25
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D128
type: string
name: retrieve_data
arguments: label: D101
type: string
name: retrieve_data
arguments: label: D106
type: string
name: retrieve_data
arguments: label: D43
type: string
name: retrieve_data
arguments: label: D96
type: string
name: retrieve_data
arguments: label: D100
type: string
name: retrieve_data
arguments: label: D48
type: string
name: retrieve_data
arguments: label: D77
type: string
name: retrieve_data
arguments: label: D136
type: string
name: retrieve_data
arguments: label: D118
type: string
name: retrieve_data
arguments: label: D132
type: string
name: retrieve_data
arguments: label: D113
type: string
name: retrieve_data
arguments: label: D60
type: f32
name: retrieve_data
arguments: label: D55
type: string

tool: D128: r

tool: D101: fncval.dat

tool: D106: Error Function

tool: D43: Data not found in fncval.dat


tool: D96: %d %*s

tool: D100: 
complementary error function

tool: D48: erfcc(x)

tool: D77: actual

tool: D136: x

tool: D118: %5s %12s %13s


tool: D132: %f %f

tool: D113: %6.2f %12.7f %12.7f


tool: D60: 1

tool: D55: Data file fncval.dat not found


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