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

```asm
<benchmark>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %esi,%r12d
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rax
  mov    %rsp,%rcx
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L86
L125:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L125
L86:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L74
L21:
  mov    %rsp,%r14
  test   %r12d,%r12d
  jle    L107
  mov    %r12d,%eax
  mov    %r14,%rbx
  lea    (%r14,%rax,8),%r15
  jmp    L131
  nopl   0x0(%rax,%rax,1)
L81:
  pxor   %xmm0,%xmm0
  add    $0x8,%rbx
  divsd  %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbx)
  cmp    %r15,%rbx
  je     L107
L131:
  xor    %eax,%eax
  call   <rand_double@plt>
  movsd  D42(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L81
  xor    %eax,%eax
  add    $0x8,%rbx
  call   <rand_double@plt>
  mulsd  D23(%rip),%xmm0
  subsd  D6(%rip),%xmm0
  movsd  %xmm0,-0x8(%rbx)
  cmp    %r15,%rbx
  jne    L131
L107:
  xor    %eax,%eax
  call   <tic@plt>
  movsd  %xmm0,-0x48(%rbp)
  test   %r13d,%r13d
  jle    L57
  xor    %ebx,%ebx
  lea    -0x40(%rbp),%r15
  jmp    L64
  nopl   (%rax)
L28:
  cmpq   $0x0,-0x40(%rbp)
  js     L47
  add    $0x1,%ebx
  cmp    %ebx,%r13d
  je     L57
L64:
  mov    %r15,%rcx
  mov    $0x1,%edx
  mov    %r14,%rsi
  mov    %r12d,%edi
  call   <stdlib_strided_dnannsum@plt>
  ucomisd %xmm0,%xmm0
  jnp    L28
  lea    D53(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <tic@plt>
  subsd  -0x48(%rbp),%xmm0
L149:
  mov    %r12,%rdi
  movsd  %xmm0,-0x48(%rbp)
  call   <printf@plt>
  movsd  -0x48(%rbp),%xmm0
L159:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L99
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L47:
  lea    D53(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
L57:
  xor    %eax,%eax
  call   <tic@plt>
  cmpq   $0x0,-0x40(%rbp)
  subsd  -0x48(%rbp),%xmm0
  jns    L159
  lea    D53(%rip),%r12
  jmp    L149
  nopl   0x0(%rax,%rax,1)
L74:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L21
L99:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D42
type: f64
name: extract_symbolic_data
arguments: data_label: D23
type: f64
name: extract_symbolic_data
arguments: data_label: D6
type: f64
name: extract_symbolic_data
arguments: data_label: D53
type: string

tool: D42: 0.2

tool: D23: 20000

tool: D6: 10000

tool: D53: should not return NaN


assistant: ```c
double benchmark(int iterations, int len) {
  double elapsed;
  double x[len];
  int64_t n;
  double v;
  double t;
  int i;
  for (i = 0; i < len; i++) {
    if (rand_double() < 0.2) {
      x[i] = 0.0 / 0.0;
    } else {
      x[i] = (rand_double() * 20000.0) - 10000.0;
    }
  }
  v = 0.0;
  t = tic();
  for (i = 0; i < iterations; i++) {
    v = stdlib_strided_dnannsum(len, x, 1, &n);
    if (v != v || n < 0) {
      printf("should not return NaN\n");
      break;
    }
  }
  elapsed = tic() - t;
  if (v != v || n < 0) {
    printf("should not return NaN\n");
  }
  return elapsed;
}
```