user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D102(%rip),%rax
  mov    %rax,%rsi
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L67
  lea    D111(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L67:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  jmp    L17
L30:
  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     L17
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L17:
  lea    -0x60(%rbp),%rax
  mov    $0xf,%edx
  lea    D42(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L30
  lea    -0x78(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D53(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rcx
  lea    D25(%rip),%rax
  mov    %rax,%rdx
  lea    D69(%rip),%rax
  mov    %rax,%rsi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x6c(%rbp)
  jmp    L62
L46:
  lea    -0x74(%rbp),%rcx
  lea    -0x70(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D115(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    -0x70(%rbp),%eax
  movd   %eax,%xmm0
  call   <dawson@plt>
  movq   %xmm0,%rdx
  movss  -0x74(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x70(%rbp),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm1,%xmm3
  movq   %xmm3,%rax
  movq   %rdx,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D110(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  addl   $0x1,-0x6c(%rbp)
L62:
  mov    -0x78(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jle    L46
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D102
type_infered: string
name: retrieve_data
arguments: tag: D76
type_infered: string
name: retrieve_data
arguments: tag: D111
type_infered: string
name: retrieve_data
arguments: tag: D104
type_infered: string
name: retrieve_data
arguments: tag: D42
type_infered: string
name: retrieve_data
arguments: tag: D53
type_infered: string
name: retrieve_data
arguments: tag: D41
type_infered: string
name: retrieve_data
arguments: tag: D18
type_infered: string
name: retrieve_data
arguments: tag: D25
type_infered: string
name: retrieve_data
arguments: tag: D69
type_infered: string
name: retrieve_data
arguments: tag: D51
type_infered: string
name: retrieve_data
arguments: tag: D115
type_infered: string
name: retrieve_data
arguments: tag: D110
type_infered: string

tool: D102: r

tool: D76: fncval.dat

tool: D111: Data file fncval.dat not found


tool: D104: Data not found in fncval.dat


tool: D42: Dawson integral

tool: D53: %d %*s

tool: D41: 
%s


tool: D18: dawson(x)

tool: D25: actual

tool: D69: x

tool: D51: %5s %12s %11s 


tool: D115: %f %f

tool: D110: %6.2f %12.6f %12.6f


assistant: ```c
int main(void) {
  char txt[80];
  int i, nval;
  float 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, "Dawson integral", 15)) {
    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("%5s %12s %11s \n", "x", "actual", "dawson(x)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%f %f", &x, &val);
    printf("%6.2f %12.6f %12.6f\n", x, val, dawson(x));
  }
  fclose(fp);
  return 0;
}
```