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

```asm
<ShowHeader>:
  endbr64
  push   %r15
  mov    %rdx,%rdi
  lea    D38(%rip),%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x378,%rsp
  mov    %rcx,0x30(%rsp)
  movsd  %xmm0,0x38(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  lea    D66(%rip),%rsi
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <fopen@plt>
  mov    %rax,%r14
  test   %r12,%r12
  je     L85
  test   %rax,%rax
  je     L85
  movsd  D18(%rip),%xmm0
  pxor   %xmm5,%xmm5
  xor    %ebx,%ebx
  lea    D61(%rip),%r13
  movq   $0x0,0x8(%rsp)
  divsd  %xmm5,%xmm0
  movsd  %xmm0,0x18(%rsp)
  xorpd  D39(%rip),%xmm0
  movsd  %xmm0,0x10(%rsp)
  jmp    L42
  nopl   0x0(%rax)
L20:
  lea    0x38(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <fscanf@plt>
  cmp    $0x1,%eax
  jne    L40
  movsd  0x10(%rsp),%xmm1
  movsd  0x38(%rsp),%xmm0
  call   <max@plt>
  movsd  0x18(%rsp),%xmm1
  movsd  %xmm0,0x10(%rsp)
  movsd  0x38(%rsp),%xmm0
  call   <min@plt>
  movsd  %xmm0,0x18(%rsp)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x40(%rsp,%rbx,8)
  addsd  0x8(%rsp),%xmm0
  add    $0x1,%rbx
  movsd  %xmm0,0x8(%rsp)
L42:
  mov    %r12,%rdi
  mov    %ebx,%r15d
  mov    %ebx,%ebp
  call   <feof@plt>
  test   %eax,%eax
  je     L20
L40:
  pxor   %xmm1,%xmm1
  test   %ebp,%ebp
  je     L81
  lea    -0x1(%r15),%edx
  lea    0x40(%rsp),%rbx
  pxor   %xmm1,%xmm1
  lea    0x48(%rsp,%rdx,8),%r13
  nopw   0x0(%rax,%rax,1)
L18:
  mov    (%rbx),%r15
  movsd  0x8(%rsp),%xmm0
  mov    %ebp,%edi
  add    $0x8,%rbx
  movsd  %xmm1,0x28(%rsp)
  call   <average@plt>
  movq   %r15,%xmm3
  mov    %ebp,%edi
  subsd  %xmm0,%xmm3
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm3,0x20(%rsp)
  call   <average@plt>
  movsd  0x28(%rsp),%xmm1
  movapd %xmm0,%xmm2
  movq   %r15,%xmm0
  subsd  %xmm2,%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %r13,%rbx
  jne    L18
L81:
  lea    -0x1(%rbp),%eax
  pxor   %xmm0,%xmm0
  mov    0x30(%rsp),%rdx
  mov    %r14,%rdi
  cvtsi2sd %eax,%xmm0
  lea    D6(%rip),%rsi
  xor    %eax,%eax
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x20(%rsp)
  call   <fprintf@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %ebp,%edi
  call   <average@plt>
  lea    D31(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movsd  0x10(%rsp),%xmm0
  mov    %r14,%rdi
  lea    D16(%rip),%rsi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movsd  0x18(%rsp),%xmm0
  mov    %r14,%rdi
  lea    D108(%rip),%rsi
  mov    $0x1,%eax
  call   <fprintf@plt>
  movsd  0x20(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <stdDev@plt>
  lea    D64(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
L66:
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    0x368(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x378,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L85:
  lea    D109(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L66
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D38
type_guessed: string
name: retrieve_data
arguments: label: D66
type_guessed: string
name: retrieve_data
arguments: label: D18
type_guessed: f64
name: retrieve_data
arguments: label: D61
type_guessed: string
name: retrieve_data
arguments: label: D39
type_guessed: f32[4]
name: retrieve_data
arguments: label: D6
type_guessed: string
name: retrieve_data
arguments: label: D31
type_guessed: string
name: retrieve_data
arguments: label: D16
type_guessed: string
name: retrieve_data
arguments: label: D108
type_guessed: string
name: retrieve_data
arguments: label: D64
type_guessed: string
name: retrieve_data
arguments: label: D109
type_guessed: string

tool: D38: r

tool: D66: w

tool: D18: 1

tool: D61: %lf

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

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



tool: D31: Average: %lf


tool: D16: Maximum: %lf


tool: D108: Minimum: %lf


tool: D64: Standard Deviation: %lf


tool: D109: Unable to open


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);
}
```