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    D136(%rip),%rax
  mov    %rax,%rsi
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L36
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L36:
  mov    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x50,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  jmp    L53
L32:
  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     L53
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L53:
  lea    -0x60(%rbp),%rax
  mov    $0x1b,%edx
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L32
  lea    -0x7c(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D109(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D64(%rip),%r8
  lea    D76(%rip),%rax
  mov    %rax,%rcx
  lea    D0(%rip),%rax
  mov    %rax,%rdx
  lea    D128(%rip),%rax
  mov    %rax,%rsi
  lea    D132(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x6c(%rbp)
  jmp    L62
L42:
  lea    -0x74(%rbp),%rsi
  lea    -0x70(%rbp),%rcx
  lea    -0x78(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rsi,%r8
  lea    D107(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    -0x70(%rbp),%edx
  mov    -0x78(%rbp),%eax
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <bessi@plt>
  movq   %xmm0,%rcx
  movss  -0x74(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x70(%rbp),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm1,%xmm3
  movq   %xmm3,%rdx
  mov    -0x78(%rbp),%eax
  movq   %rcx,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  addl   $0x1,-0x6c(%rbp)
L62:
  mov    -0x7c(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jle    L42
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L6
  call   <__stack_chk_fail@plt>
L6:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D136
type: string
name: retrieve_data
arguments: label: D68
type: string
name: retrieve_data
arguments: label: D48
type: string
name: retrieve_data
arguments: label: D118
type: string
name: retrieve_data
arguments: label: D2
type: string
name: retrieve_data
arguments: label: D109
type: string
name: retrieve_data
arguments: label: D40
type: string
name: retrieve_data
arguments: label: D64
type: string
name: retrieve_data
arguments: label: D76
type: string
name: retrieve_data
arguments: label: D0
type: string
name: retrieve_data
arguments: label: D128
type: string
name: retrieve_data
arguments: label: D132
type: string
name: retrieve_data
arguments: label: D107
type: string
name: retrieve_data
arguments: label: D66
type: string

tool: D136: r

tool: D68: fncval.dat

tool: D48: Data file fncval.dat not found


tool: D118: Data not found in fncval.dat


tool: D2: Modified Bessel Function In

tool: D109: %d %*s

tool: D40: 
%s


tool: D64: bessi(n,x)

tool: D76: actual

tool: D0: x

tool: D128: n

tool: D132: %4s %7s %15s %20s


tool: D107: %d %f %f

tool: D66: %4d %8.2f %18.7e %18.7e


assistant: ```c
int main(void) {
  char txt[80];
  int i, nval, n;
  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, "Modified Bessel Function In", 27)) {
    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 %7s %15s %20s\n", "n", "x", "actual", "bessi(n,x)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%d %f %f", &n, &x, &val);
    printf("%4d %8.2f %18.7e %18.7e\n", n, x, val, bessi(n, x));
  }
  fclose(fp);
  return 0;
}
```