user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<benchmark>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%r14d
  mov    %esi,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rdx
  lea    0xf(%rdx),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L123:
  cmp    %rcx,%rsp
  je     L16
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L123
L16:
  mov    %rsi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L126
  orq    $0x0,-0x8(%rsp,%rax,1)
L126:
  mov    %rsp,%r12
  lea    0xf(,%rdx,8),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L27:
  cmp    %rdx,%rsp
  je     L115
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L27
L115:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L11
  orq    $0x0,-0x8(%rsp,%rax,1)
L11:
  mov    %rsp,%r13
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jle    L52
  mov    %eax,%r15d
  mov    $0x0,%ebx
L28:
  mov    $0x0,%eax
  call   <rand_double@plt>
  movsd  D16(%rip),%xmm1
  comisd %xmm0,%xmm1
  seta   (%r12,%rbx,1)
  mov    $0x0,%eax
  call   <rand_double@plt>
  mulsd  D11(%rip),%xmm0
  subsd  D20(%rip),%xmm0
  movsd  %xmm0,0x0(%r13,%rbx,8)
  add    $0x1,%rbx
  cmp    %r15,%rbx
  jne    L28
L52:
  mov    $0x0,%eax
  call   <tic@plt>
  movq   %xmm0,%r15
  test   %r14d,%r14d
  jle    L95
  mov    $0x0,%ebx
L110:
  mov    $0x1,%r8d
  mov    %r12,%rcx
  mov    $0x1,%edx
  mov    %r13,%rsi
  mov    -0x44(%rbp),%edi
  call   <stdlib_strided_dmskmax@plt>
  ucomisd %xmm0,%xmm0
  jp     L60
  add    $0x1,%ebx
  cmp    %ebx,%r14d
  jne    L110
L95:
  mov    $0x0,%eax
  call   <tic@plt>
  movq   %r15,%xmm2
  subsd  %xmm2,%xmm0
  movq   %xmm0,%rbx
L90:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  movq   %rbx,%xmm0
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L60:
  lea    D18(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <tic@plt>
  movq   %r15,%xmm3
  subsd  %xmm3,%xmm0
  movq   %xmm0,%rbx
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L90
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D16
datatype: f64
name: extract_symbolic_data
arguments: tag: D11
datatype: f64
name: extract_symbolic_data
arguments: tag: D20
datatype: f64
name: extract_symbolic_data
arguments: tag: D18
datatype: string

tool: D16: 0.2

tool: D11: 20000

tool: D20: 10000

tool: D18: should not return NaN


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