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

```asm
<ShowHeader>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x378,%rsp
  mov    %rdx,%rdi
  mov    %rcx,%rbx
  mov    %rcx,0x30(%rsp)
  movsd  %xmm0,0x38(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  lea    D108(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%r15
  lea    D73(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,0x28(%rsp)
  test   %r15,%r15
  je     L57
  test   %rax,%rax
  je     L57
  pxor   %xmm0,%xmm0
  movsd  D44(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rsp)
  xorpd  D49(%rip),%xmm1
  movq   %xmm1,%r12
  mov    $0x0,%ebx
  movsd  %xmm0,0x8(%rsp)
  lea    D10(%rip),%r13
L71:
  mov    %ebx,%r14d
  mov    %r15,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L56
  lea    0x38(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <fscanf@plt>
  cmp    $0x1,%eax
  jne    L56
  movq   %r12,%xmm1
  movsd  0x38(%rsp),%xmm0
  call   <max@plt>
  movq   %xmm0,%r12
  movsd  0x10(%rsp),%xmm1
  movsd  0x38(%rsp),%xmm0
  call   <min@plt>
  movsd  %xmm0,0x10(%rsp)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x40(%rsp,%rbx,8)
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x1,%rbx
  jmp    L71
L57:
  lea    D81(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L10
L56:
  test   %r14d,%r14d
  jle    L98
  lea    0x40(%rsp),%r13
  lea    -0x1(%rbx),%eax
  lea    0x48(%rsp,%rax,8),%rbp
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x18(%rsp)
L23:
  mov    0x0(%r13),%rbx
  mov    %r14d,%edi
  movsd  0x8(%rsp),%xmm0
  call   <average@plt>
  movq   %rbx,%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,0x20(%rsp)
  mov    %r14d,%edi
  movsd  0x8(%rsp),%xmm0
  call   <average@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  add    $0x8,%r13
  cmp    %rbp,%r13
  jne    L23
L73:
  lea    -0x1(%r14),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  0x18(%rsp),%xmm5
  divsd  %xmm0,%xmm5
  movq   %xmm5,%rbx
  mov    0x30(%rsp),%rdx
  lea    D87(%rip),%rsi
  mov    0x28(%rsp),%rbp
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r14d,%edi
  movsd  0x8(%rsp),%xmm0
  call   <average@plt>
  lea    D45(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movq   %r12,%xmm0
  lea    D47(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movsd  0x10(%rsp),%xmm0
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movq   %rbx,%xmm0
  call   <stdDev@plt>
  lea    D17(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
L10:
  mov    %r15,%rdi
  call   <fclose@plt>
  mov    0x28(%rsp),%rdi
  call   <fclose@plt>
  mov    0x368(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L78
  add    $0x378,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L98:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
  jmp    L73
L78:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D108
type: string
name: disassemble_data
arguments: data_tag: D73
type: string
name: disassemble_data
arguments: data_tag: D44
type: f64
name: disassemble_data
arguments: data_tag: D49
type: f32[4]
name: disassemble_data
arguments: data_tag: D10
type: string
name: disassemble_data
arguments: data_tag: D81
type: string
name: disassemble_data
arguments: data_tag: D87
type: string
name: disassemble_data
arguments: data_tag: D45
type: string
name: disassemble_data
arguments: data_tag: D47
type: string
name: disassemble_data
arguments: data_tag: D53
type: string
name: disassemble_data
arguments: data_tag: D17
type: string

tool: D108: r

tool: D73: w

tool: D44: 1

tool: {"D49": [0.0,-0.0,0.0,0.0]}

tool: D10: %lf

tool: D81: Unable to open


tool: D87: Program by Jonathan Buch
File Name: %s



tool: D45: Average: %lf


tool: D47: Maximum: %lf


tool: D53: Minimum: %lf


tool: D17: Standard Deviation: %lf


assistant: ```c
void ShowHeader(FILE *file1, FILE *file2, char inum[], char onum[], double val) {
  file1 = fopen(inum, "r");
  file2 = fopen(onum, "w");
  if (file1 == NULL || file2 == NULL) {
    printf("Unable to open\n");
    exit(-1);
  } else {
    int count = 0;
    double sum = 0;
    double vari[100];
    double final;
    double secValMax = -(1.0 / 0.0);
    double secValMin = (1.0 / 0.0);
    while (!feof(file1)) {
      if (fscanf(file1, "%lf", &val) != 1)
        break;
      secValMax = max(val, secValMax);
      secValMin = min(val, secValMin);
      vari[count] = val;
      sum += val;
      count++;
    }
    double result = 0;
    int i = 0;
    int count2 = 0;
    while (i < count) {
      result += ((vari[count2] - average(sum, count)) * (vari[count2] - average(sum, count)));
      i++;
      count2++;
    }
    final = (result / (count - 1));
    fprintf(file2, "Program by Jonathan Buch\nFile Name: %s\n\n", onum);
    fprintf(file2, "Average: %lf\n", average(sum, count));
    fprintf(file2, "Maximum: %lf\n", secValMax);
    fprintf(file2, "Minimum: %lf\n", secValMin);
    fprintf(file2, "Standard Deviation: %lf\n", stdDev(final));
  }
  fclose(file1);
  fclose(file2);
}
```