user: Converte this assembly snippet into its equivalent C code:

```asm
<benchmark>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,-0x84(%rbp)
  mov    %esi,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x88(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L179:
  cmp    %rdx,%rsp
  je     L103
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L179
L103:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L42
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L42:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0x88(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x68(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L112:
  cmp    %rdx,%rsp
  je     L184
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L112
L184:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L72
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L72:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x88(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L153:
  cmp    %rdx,%rsp
  je     L27
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L153
L27:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L43
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L43:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x7c(%rbp)
  jmp    L55
L144:
  movsd  D26(%rip),%xmm0
  movapd %xmm0,%xmm1
  mov    D3(%rip),%rax
  movq   %rax,%xmm0
  call   <rand_uniform@plt>
  movq   %xmm0,%rax
  mov    -0x60(%rbp),%rdx
  mov    -0x7c(%rbp),%ecx
  movslq %ecx,%rcx
  mov    %rax,(%rdx,%rcx,8)
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    -0x70(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdx
  movq   $0x0,(%rax,%rdx,8)
  addl   $0x1,-0x7c(%rbp)
L55:
  mov    -0x7c(%rbp),%eax
  cmp    -0x88(%rbp),%eax
  jl     L144
  mov    $0x0,%eax
  call   <tic@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x48(%rbp)
  movl   $0x0,-0x7c(%rbp)
  jmp    L24
L173:
  mov    -0x50(%rbp),%rcx
  mov    -0x70(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  mov    -0x88(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x1
  mov    %rcx,%r9
  mov    $0x1,%r8d
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    %eax,%edi
  call   <stdlib_strided_dmsksqrt@plt>
  add    $0x10,%rsp
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L125
  ucomisd %xmm1,%xmm0
  je     L147
L125:
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L30
L147:
  addl   $0x1,-0x7c(%rbp)
L24:
  mov    -0x7c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L173
L30:
  mov    $0x0,%eax
  call   <tic@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  subsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L50
  ucomisd %xmm1,%xmm0
  je     L174
L50:
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L174:
  movsd  -0x40(%rbp),%xmm0
  mov    %rbx,%rsp
  movq   %xmm0,%rax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L183
  call   <__stack_chk_fail@plt>
L183:
  movq   %rax,%xmm0
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: label: D26
data_type: f64
name: unpack_data
arguments: label: D3
data_type: f64
name: unpack_data
arguments: label: D9
data_type: string

tool: D26: 200

tool: D3: 0

tool: D9: should not return NaN


assistant: ```c
double benchmark(int iterations, int len) {
  double elapsed;
  uint8_t m[len];
  double x[len];
  double y[len];
  double t;
  int i;
  for (i = 0; i < len; i++) {
    x[i] = rand_uniform(0.0, 200.0);
    y[i] = 0.0;
    m[i] = 0;
  }
  t = tic();
  for (i = 0; i < iterations; i++) {
    stdlib_strided_dmsksqrt(len, x, 1, m, 1, y, 1);
    if (y[0] != y[0]) {
      printf("should not return NaN\n");
      break;
    }
  }
  elapsed = tic() - t;
  if (y[0] != y[0]) {
    printf("should not return NaN\n");
  }
  return elapsed;
}
```