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

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  movsd  %xmm1,(%rsp)
  movsd  %xmm1,0x8(%rsp)
L2:
  movsd  D4(%rip),%xmm4
  addsd  (%rsp),%xmm4
  movsd  %xmm4,(%rsp)
  pxor   %xmm3,%xmm3
  ucomisd %xmm4,%xmm3
  ja     L55
L0:
  movsd  D4(%rip),%xmm5
  addsd  0x8(%rsp),%xmm5
  movsd  %xmm5,0x8(%rsp)
  movsd  D124(%rip),%xmm3
  comisd %xmm5,%xmm3
  ja     L2
  lea    0x1c(%rsp),%rbx
  lea    0x30(%rsp),%rdi
  mov    %rbx,%rsi
  call   <gettimeofday@plt>
  movsd  0x30(%rsp),%xmm0
  subsd  0x20(%rsp),%xmm0
  movsd  D154(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  0x38(%rsp),%xmm1
  subsd  0x28(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  divsd  D124(%rip),%xmm0
  lea    D135(%rip),%rdi
  call   <printf@plt>
  lea    0x20(%rsp),%rdi
  mov    %rbx,%rsi
  call   <gettimeofday@plt>
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0x8(%rsp)
L49:
  movsd  D4(%rip),%xmm6
  addsd  (%rsp),%xmm6
  movsd  %xmm6,(%rsp)
  mov    D12(%rip),%rax
  movq   %rax,%xmm1
  movapd %xmm6,%xmm0
  call   <pow@plt>
  movsd  D4(%rip),%xmm7
  addsd  0x8(%rsp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  D124(%rip),%xmm3
  comisd %xmm7,%xmm3
  ja     L49
  lea    0x1c(%rsp),%rbx
  lea    0x30(%rsp),%rdi
  mov    %rbx,%rsi
  call   <gettimeofday@plt>
  movsd  0x30(%rsp),%xmm0
  subsd  0x20(%rsp),%xmm0
  movsd  D154(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  0x38(%rsp),%xmm1
  subsd  0x28(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  divsd  D124(%rip),%xmm0
  lea    D59(%rip),%rdi
  call   <printf@plt>
  lea    0x20(%rsp),%rdi
  mov    %rbx,%rsi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  movsd  D4(%rip),%xmm3
  movapd %xmm3,%xmm2
  movsd  D124(%rip),%xmm1
L50:
  movsd  (%rsp),%xmm6
  addsd  %xmm3,%xmm6
  movsd  %xmm6,(%rsp)
  addsd  %xmm2,%xmm0
  comisd %xmm0,%xmm1
  ja     L50
  lea    0x1c(%rsp),%rsi
  lea    0x30(%rsp),%rdi
  call   <gettimeofday@plt>
  movsd  0x30(%rsp),%xmm0
  subsd  0x20(%rsp),%xmm0
  movsd  D154(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  0x38(%rsp),%xmm1
  subsd  0x28(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  divsd  D124(%rip),%xmm0
  lea    D173(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x50,%rsp
  pop    %rbx
  ret
L55:
  movapd %xmm4,%xmm0
  call   <sqrt@plt>
  jmp    L0
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D4
type: f32[2]
name: extract_symbolic_data
arguments: data_label: D124
type: f32[2]
name: extract_symbolic_data
arguments: data_label: D154
type: f64
name: extract_symbolic_data
arguments: data_label: D135
type: string
name: extract_symbolic_data
arguments: data_label: D12
type: f64
name: extract_symbolic_data
arguments: data_label: D59
type: string
name: extract_symbolic_data
arguments: data_label: D173
type: string

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

tool: {"D124": [0.0,6.1103515625]}

tool: D154: 1000

tool: D135: Sqrt: %f us per sqrt


tool: D12: 0.51

tool: D59: Pow:  %f us per sqrt


tool: D173: Min:  %f us per sqrt


assistant: ```c
int main() {
  struct timeval tv1, tv2;
  struct timezone tz;
  int iterations = 10000;
  double i;
  double v = 1000.0;
  double y = 0.0;
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = sqrt(y);
  }
  gettimeofday(&tv2, &tz);
  printf("Sqrt: %f us per sqrt\n", ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 + (tv2.tv_usec - tv1.tv_usec)) / iterations);
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = pow(y, 0.51);
  }
  gettimeofday(&tv2, &tz);
  printf("Pow:  %f us per sqrt\n", ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 + (tv2.tv_usec - tv1.tv_usec)) / iterations);
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = (v < y ? v : y);
  }
  gettimeofday(&tv2, &tz);
  printf("Min:  %f us per sqrt\n", ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 + (tv2.tv_usec - tv1.tv_usec)) / iterations);
}
```