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

```asm
<print_summary>:
  endbr64
  push   %r14
  xor    %eax,%eax
  mov    %rsi,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdx,%r12
  mov    %rsi,%rdx
  lea    D84(%rip),%rsi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %r8,%rbx
  call   <fprintf@plt>
  test   %r14,%r14
  je     L79
  mov    %r14,%rax
  pxor   %xmm7,%xmm7
  pxor   %xmm0,%xmm0
  movsd  D60(%rip),%xmm4
  sub    %rbx,%rax
  cvtsi2sd %r12,%xmm0
  movq   D95(%rip),%xmm3
  movsd  D6(%rip),%xmm6
  cvtsi2sd %rax,%xmm7
  movapd %xmm3,%xmm2
  divsd  %xmm7,%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm3,%xmm1
  ucomisd %xmm1,%xmm6
  ja     L24
L54:
  pxor   %xmm1,%xmm1
  movsd  D51(%rip),%xmm5
  cvtsi2sd %r13,%xmm1
  divsd  %xmm5,%xmm0
  divsd  %xmm7,%xmm1
  movapd %xmm3,%xmm7
  mulsd  %xmm4,%xmm1
  movapd %xmm1,%xmm2
  andpd  %xmm3,%xmm2
  ucomisd %xmm2,%xmm6
  ja     L16
L46:
  divsd  %xmm5,%xmm1
  pxor   %xmm2,%xmm2
  pxor   %xmm7,%xmm7
  cvtsi2sd %rbx,%xmm2
  cvtsi2sd %r14,%xmm7
  divsd  %xmm7,%xmm2
  mulsd  %xmm4,%xmm2
  movapd %xmm2,%xmm4
  andpd  %xmm3,%xmm4
  ucomisd %xmm4,%xmm6
  ja     L53
L64:
  divsd  %xmm5,%xmm2
L49:
  mov    %rbx,%r8
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D43(%rip),%rsi
  mov    $0x3,%eax
  call   <fprintf@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  xchg   %ax,%ax
L79:
  pxor   %xmm2,%xmm2
  movsd  D51(%rip),%xmm0
  movapd %xmm2,%xmm1
  jmp    L49
  nopw   0x0(%rax,%rax,1)
L53:
  cvttsd2si %xmm2,%rax
  pxor   %xmm4,%xmm4
  movapd %xmm2,%xmm6
  movsd  D68(%rip),%xmm7
  andnpd %xmm2,%xmm3
  cvtsi2sd %rax,%xmm4
  cmpnlesd %xmm4,%xmm6
  andpd  %xmm7,%xmm6
  addsd  %xmm6,%xmm4
  orpd   %xmm3,%xmm4
  movapd %xmm4,%xmm2
  jmp    L64
  nopl   (%rax)
L16:
  cvttsd2si %xmm1,%rax
  pxor   %xmm2,%xmm2
  movapd %xmm1,%xmm8
  movsd  D68(%rip),%xmm9
  andnpd %xmm1,%xmm7
  cvtsi2sd %rax,%xmm2
  cmpnlesd %xmm2,%xmm8
  andpd  %xmm9,%xmm8
  addsd  %xmm8,%xmm2
  movapd %xmm2,%xmm1
  orpd   %xmm7,%xmm1
  jmp    L46
  nopl   (%rax)
L24:
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  andnpd %xmm0,%xmm2
  movsd  D68(%rip),%xmm8
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm5
  cmpnlesd %xmm0,%xmm5
  andpd  %xmm8,%xmm5
  subsd  %xmm5,%xmm1
  movapd %xmm1,%xmm0
  orpd   %xmm2,%xmm0
  jmp    L54
```

tool_calls: name: retrieve_data
arguments: label: D84
data_type: string
name: retrieve_data
arguments: label: D60
data_type: f64
name: retrieve_data
arguments: label: D95
data_type: byte[8]
name: retrieve_data
arguments: label: D6
data_type: f32[2]
name: retrieve_data
arguments: label: D51
data_type: f64
name: retrieve_data
arguments: label: D43
data_type: string
name: retrieve_data
arguments: label: D68
data_type: f32[2]

tool: D84: Total:  %ld


tool: D60: 10000

tool: {"D95": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: {"D6": [0.0,176.0]}

tool: D51: 100

tool: D43: Passed: %ld (%0.2lf%%)
Failed: %ld (%0.2lf%%)
Skipped: %ld (%0.2lf%%)



tool: {"D68": [0.0,1.875]}

assistant: ```c
int print_summary(FILE *f, long total, long pass, long fail, long skip) {
  double dpass = 100.0, dfail = 0.0, dskip = 0.0;
  fprintf(f, "Total:  %ld\n", total);
  if (total) {
    dpass = ((double)pass / (double)(total - skip)) * 10000.0;
    dpass = floor(dpass) / 100.0;
    dfail = ((double)fail / (double)(total - skip)) * 10000.0;
    dfail = ceil(dfail) / 100.0;
    dskip = ((double)skip / (double)total) * 10000.0;
    dskip = ceil(dskip) / 100.0;
  }
  fprintf(f, "Passed: %ld (%0.2lf%%)\nFailed: %ld (%0.2lf%%)\nSkipped: %ld (%0.2lf%%)\n\n", pass, dpass, fail, dfail, skip, dskip);
  return 0;
}
```