user: Please show me the C implementation that matches the assembly code listed below:

```asm
<benchmark>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %edi,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rax
  mov    %rsp,%rcx
  mov    %rax,-0x48(%rbp)
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L128
L12:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L12
L128:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L146
L46:
  mov    %rax,%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rbx
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L84
L69:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L69
L84:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L155
L103:
  mov    %rsp,%r12
  test   %r13d,%r13d
  jle    L40
  xor    %r15d,%r15d
  nopl   0x0(%rax)
L1:
  xor    %eax,%eax
  call   <rand_float@plt>
  mulss  D40(%rip),%xmm0
  xor    %eax,%eax
  subss  D33(%rip),%xmm0
  movss  %xmm0,(%rbx,%r15,4)
  call   <rand_float@plt>
  mulss  D40(%rip),%xmm0
  subss  D33(%rip),%xmm0
  movss  %xmm0,(%r12,%r15,4)
  add    $0x1,%r15
  cmp    %r15,-0x48(%rbp)
  jne    L1
L40:
  xor    %eax,%eax
  call   <tic@plt>
  movsd  %xmm0,-0x48(%rbp)
  test   %r14d,%r14d
  jle    L23
  xor    %r15d,%r15d
  jmp    L72
  xchg   %ax,%ax
L45:
  add    $0x1,%r15d
  cmp    %r15d,%r14d
  je     L23
L72:
  mov    $0x1,%r8d
  mov    %r12,%rcx
  mov    %rbx,%rsi
  mov    %r13d,%edi
  mov    $0x1,%edx
  call   <c_sdot@plt>
  ucomiss %xmm0,%xmm0
  jnp    L45
  lea    D34(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <tic@plt>
  subsd  -0x48(%rbp),%xmm0
  mov    %r12,%rdi
  movsd  %xmm0,-0x48(%rbp)
  call   <printf@plt>
  movsd  -0x48(%rbp),%xmm0
L20:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L146:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L23:
  xor    %eax,%eax
  call   <tic@plt>
  subsd  -0x48(%rbp),%xmm0
  jmp    L20
L155:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L103
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D40
type_infered: byte[4]
name: retrieve_data
arguments: data_tag: D33
type_infered: byte[4]
name: retrieve_data
arguments: data_tag: D34
type_infered: string

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

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

tool: D34: should not return NaN


assistant: ```c
double benchmark(int iterations, int len) {
  double elapsed;
  float x[len];
  float y[len];
  float z;
  double t;
  int i;
  for (i = 0; i < len; i++) {
    x[i] = (rand_float() * 20000.0f) - 10000.0f;
    y[i] = (rand_float() * 20000.0f) - 10000.0f;
  }
  z = 0.0f;
  t = tic();
  for (i = 0; i < iterations; i++) {
    z = c_sdot(len, x, 1, y, 1);
    if (z != z) {
      printf("should not return NaN\n");
      break;
    }
  }
  elapsed = tic() - t;
  if (z != z) {
    printf("should not return NaN\n");
  }
  return elapsed;
}
```