user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    D139(%rip),%rsi
  lea    D132(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L73
L1:
  lea    0x10(%rsp),%rdi
  mov    %rbx,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  lea    D101(%rip),%r12
  lea    0x10(%rsp),%rbp
  lea    D23(%rip),%r13
L18:
  mov    $0x1b,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L51
  mov    %rbx,%rdx
  mov    $0x50,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  mov    %rbx,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L18
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L18
L73:
  lea    D131(%rip),%rdi
  call   <nrerror@plt>
  jmp    L1
L51:
  mov    %rsp,%rdx
  lea    D64(%rip),%rsi
  mov    %rbx,%rdi
  call   <fscanf@plt>
  lea    0x10(%rsp),%rsi
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D36(%rip),%r8
  lea    D54(%rip),%rcx
  lea    D109(%rip),%rdx
  lea    D85(%rip),%rsi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,(%rsp)
  jle    L49
  mov    $0x1,%ebp
  lea    0x8(%rsp),%r15
  lea    0xc(%rsp),%r14
  lea    D57(%rip),%r13
  lea    D73(%rip),%r12
L40:
  lea    0x4(%rsp),%rdx
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  movss  0xc(%rsp),%xmm0
  mov    0x4(%rsp),%edi
  call   <bessi@plt>
  movapd %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x8(%rsp),%xmm1
  mov    0x4(%rsp),%esi
  mov    %r12,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  cmp    %ebp,(%rsp)
  jge    L40
L49:
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  mov    $0x0,%eax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D139
type_infered: string
name: read_data
arguments: tag: D132
type_infered: string
name: read_data
arguments: tag: D101
type_infered: string
name: read_data
arguments: tag: D23
type_infered: string
name: read_data
arguments: tag: D131
type_infered: string
name: read_data
arguments: tag: D64
type_infered: string
name: read_data
arguments: tag: D16
type_infered: string
name: read_data
arguments: tag: D36
type_infered: string
name: read_data
arguments: tag: D54
type_infered: string
name: read_data
arguments: tag: D109
type_infered: string
name: read_data
arguments: tag: D85
type_infered: string
name: read_data
arguments: tag: D63
type_infered: string
name: read_data
arguments: tag: D57
type_infered: string
name: read_data
arguments: tag: D73
type_infered: string

tool: D139: r

tool: D132: fncval.dat

tool: D101: Modified Bessel Function In

tool: D23: Data not found in fncval.dat


tool: D131: Data file fncval.dat not found


tool: D64: %d %*s

tool: D16: 
%s


tool: D36: bessi(n,x)

tool: D54: actual

tool: D109: x

tool: D85: n

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


tool: D57: %d %f %f

tool: D73: %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;
}
```