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

```asm
<benchmark>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  movslq %esi,%r15
  push   %r14
  push   %r13
  mov    %r15,%r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,-0x48(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(%r15),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L140
L5:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L5
L140:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L119
L30:
  lea    0xf(,%r15,4),%rax
  mov    %rsp,%rcx
  mov    %rsp,%rbx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L155
L27:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L27
L155:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L125
L109:
  mov    %rsp,%r12
  test   %r13d,%r13d
  jle    L56
  xor    %r14d,%r14d
  nopl   (%rax)
L158:
  xor    %eax,%eax
  call   <rand_float@plt>
  movss  D22(%rip),%xmm1
  comiss %xmm0,%xmm1
  seta   (%rbx,%r14,1)
  xor    %eax,%eax
  call   <rand_float@plt>
  mulss  D26(%rip),%xmm0
  subss  D15(%rip),%xmm0
  movss  %xmm0,(%r12,%r14,4)
  add    $0x1,%r14
  cmp    %r14,%r15
  jne    L158
L56:
  xor    %eax,%eax
  call   <tic@plt>
  mov    -0x48(%rbp),%eax
  movsd  %xmm0,-0x50(%rbp)
  test   %eax,%eax
  jle    L3
  xor    %r15d,%r15d
  jmp    L45
  nopl   0x0(%rax)
L63:
  add    $0x1,%r15d
  cmp    %r15d,-0x48(%rbp)
  je     L3
L45:
  mov    $0x1,%r8d
  mov    %rbx,%rcx
  mov    %r12,%rsi
  mov    %r13d,%edi
  mov    $0x1,%edx
  call   <stdlib_strided_snanmskmax@plt>
  ucomiss %xmm0,%xmm0
  jnp    L63
  lea    D23(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <tic@plt>
  subsd  -0x50(%rbp),%xmm0
  mov    %r12,%rdi
  movsd  %xmm0,-0x48(%rbp)
  call   <printf@plt>
  movsd  -0x48(%rbp),%xmm0
L61:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L153
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L119:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L3:
  xor    %eax,%eax
  call   <tic@plt>
  subsd  -0x50(%rbp),%xmm0
  jmp    L61
L125:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L109
L153:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D22
datatype: byte[4]
name: disassemble_data
arguments: data_label: D26
datatype: byte[4]
name: disassemble_data
arguments: data_label: D15
datatype: byte[4]
name: disassemble_data
arguments: data_label: D23
datatype: string

tool: {"D22": [0xcd,0xcc,0x4c,0x3e]}

tool: {"D26": [0x00,0x40,0x9c,0x46]}

tool: {"D15": [0x00,0x40,0x1c,0x46]}

tool: D23: should not return NaN


assistant: ```c
double benchmark(int iterations, int len) {
  unsigned char mask[len];
  double elapsed;
  float x[len];
  float v;
  double t;
  int i;
  for (i = 0; i < len; i++) {
    if (rand_float() < 0.2f) {
      mask[i] = 1;
    } else {
      mask[i] = 0;
    }
    x[i] = (rand_float() * 20000.0f) - 10000.0f;
  }
  v = 0.0f;
  t = tic();
  for (i = 0; i < iterations; i++) {
    v = stdlib_strided_snanmskmax(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;
}
```