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

```asm
<elapsed_time_hr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  movq   %xmm0,%r8
  mov    %rdi,%rax
  mov    $0x0,%ecx
  mov    $0x0,%ebx
  mov    %r8,%rcx
  mov    %rax,%rbx
  mov    %rcx,-0x60(%rbp)
  mov    %rbx,-0x58(%rbp)
  movapd %xmm1,%xmm0
  mov    %rsi,%rax
  mov    $0x0,%ecx
  mov    $0x0,%ebx
  movq   %xmm0,%rcx
  mov    %rax,%rbx
  mov    %rcx,-0x70(%rbp)
  mov    %rbx,-0x68(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x70(%rbp),%rdx
  lea    -0x60(%rbp),%rcx
  lea    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sub_time_hr@plt>
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x30(%rbp),%xmm1
  mov    -0x28(%rbp),%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  D71(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x60(%rbp),%xmm1
  mov    -0x58(%rbp),%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  D71(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x70(%rbp),%xmm1
  mov    -0x68(%rbp),%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  D71(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D95(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D95(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movsd  -0x48(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D71
datatype: f32[2]
name: unpack_data
arguments: label: D41
datatype: string
name: unpack_data
arguments: label: D59
datatype: string
name: unpack_data
arguments: label: D95
datatype: string
name: unpack_data
arguments: label: D91
datatype: string
name: unpack_data
arguments: label: D55
datatype: string
name: unpack_data
arguments: label: D74
datatype: string
name: unpack_data
arguments: label: D16
datatype: string

tool: {"D71": [0.0,25.725290298461914]}

tool: D41: 
--- %s


tool: D59: --- Timings ------------------------------------------------------------------------

tool: D95: |

tool: D91: | Start: %.9lf   

tool: D55: End: %.9lf   

tool: D74: Duration: %.9lf s


tool: D16: ------------------------------------------------------------------------------------

assistant: ```c
double elapsed_time_hr(struct timespec t1, struct timespec t2, char *title) {
  struct timespec elapsed;
  sub_time_hr(&elapsed, &t1, &t2);
  double elapsed_duration = 0;
  double elapsed_start = 0;
  double elapsed_end = 0;
  elapsed_duration = elapsed.tv_sec + ((double)elapsed.tv_nsec / 1000000000);
  elapsed_start = t1.tv_sec + ((double)t1.tv_nsec / 1000000000);
  elapsed_end = t2.tv_sec + ((double)t2.tv_nsec / 1000000000);
  printf("\n--- %s\n", title);
  printf("--- Timings ------------------------------------------------------------------------\n");
  printf("|\n");
  printf("| Start: %.9lf   ", elapsed_start);
  printf("End: %.9lf   ", elapsed_end);
  printf("Duration: %.9lf s\n", elapsed_duration);
  printf("|\n");
  printf("------------------------------------------------------------------------------------\n");
  return elapsed_duration;
}
```