user: 请从给定的汇编指令推导出C源代码：

```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    D11(%rip),%rsi
  lea    D41(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L35
L49:
  lea    0x10(%rsp),%rdi
  mov    %rbx,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  lea    D59(%rip),%r12
  lea    0x10(%rsp),%rbp
  lea    D18(%rip),%r13
L65:
  mov    $0xd,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L0
  mov    %rbx,%rdx
  mov    $0x50,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  mov    %rbx,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L65
  mov    %r13,%rdi
  call   <nrerror@plt>
  jmp    L65
L35:
  lea    D24(%rip),%rdi
  call   <nrerror@plt>
  jmp    L49
L0:
  mov    %rsp,%rdx
  lea    D136(%rip),%rsi
  mov    %rbx,%rdi
  call   <fscanf@plt>
  lea    0x10(%rsp),%rsi
  lea    D29(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D17(%rip),%r8
  lea    D60(%rip),%rcx
  lea    D48(%rip),%rdx
  lea    D53(%rip),%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,(%rsp)
  jle    L47
  mov    $0x1,%ebp
  lea    0x4(%rsp),%r15
  lea    0xc(%rsp),%r14
  lea    D73(%rip),%r13
  lea    D113(%rip),%r12
L19:
  lea    0x8(%rsp),%rdx
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  movss  0xc(%rsp),%xmm1
  movss  0x8(%rsp),%xmm0
  call   <beta@plt>
  movapd %xmm0,%xmm3
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd 0x4(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd 0xc(%rsp),%xmm1
  mov    %r12,%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  cmp    %ebp,(%rsp)
  jge    L19
L47:
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  mov    $0x0,%eax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D11
type_infered: string
name: disassemble_data
arguments: label: D41
type_infered: string
name: disassemble_data
arguments: label: D59
type_infered: string
name: disassemble_data
arguments: label: D18
type_infered: string
name: disassemble_data
arguments: label: D24
type_infered: string
name: disassemble_data
arguments: label: D136
type_infered: string
name: disassemble_data
arguments: label: D29
type_infered: string
name: disassemble_data
arguments: label: D17
type_infered: string
name: disassemble_data
arguments: label: D60
type_infered: string
name: disassemble_data
arguments: label: D48
type_infered: string
name: disassemble_data
arguments: label: D53
type_infered: string
name: disassemble_data
arguments: label: D35
type_infered: string
name: disassemble_data
arguments: label: D73
type_infered: string
name: disassemble_data
arguments: label: D113
type_infered: string

tool: D11: r

tool: D41: fncval.dat

tool: D59: Beta Function

tool: D18: Data not found in fncval.dat


tool: D24: Data file fncval.dat not found


tool: D136: %d %*s

tool: D29: 
%s


tool: D17: beta(w,z)

tool: D60: actual

tool: D48: z

tool: D53: w

tool: D35: %5s %6s %16s %20s


tool: D73: %f %f %f

tool: D113: %6.2f %6.2f %18.6e %18.6e


assistant: ```c
int main(void) {
  char txt[80];
  int i, nval;
  float val, w, z;
  FILE *fp;
  if ((fp = fopen("fncval.dat", "r")) == NULL)
    nrerror("Data file fncval.dat not found\n");
  fgets(txt, 80, fp);
  while (strncmp(txt, "Beta Function", 13)) {
    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 %6s %16s %20s\n", "w", "z", "actual", "beta(w,z)");
  for (i = 1; i <= nval; i++) {
    fscanf(fp, "%f %f %f", &w, &z, &val);
    printf("%6.2f %6.2f %18.6e %18.6e\n", w, z, val, beta(w, z));
  }
  fclose(fp);
  return 0;
}
```