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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xf8,%rsp
  movsd  D64(%rip),%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  lea    0x90(%rsp),%rdx
  movq   $0x1,0x28(%rsp)
  nopl   0x0(%rax)
L48:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    $0x15,%rax
  jne    L48
  lea    0x30(%rsp),%rdx
  mov    $0xa,%ecx
  xor    %eax,%eax
  mov    $0x2710,%ebx
  mov    %rdx,%rdi
  lea    0x28(%rsp),%r13
  lea    0x34(%rsp),%rbp
  rep stos %rax,%es:(%rdi)
  lea    0x94(%rsp),%r12
  lea    0x84(%rsp),%r14
  movl   $0x0,(%rdi)
  xchg   %ax,%ax
L16:
  mov    %r13,%rdi
  mov    %r12,%r15
  call   <expdev@plt>
  mov    %rbp,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rax
  nopl   0x0(%rax)
L55:
  movss  (%rdx),%xmm1
  comiss %xmm0,%xmm1
  jbe    L71
  comiss -0x4(%rdx),%xmm0
  jbe    L71
  addl   $0x1,(%rax)
L71:
  add    $0x4,%rax
  add    $0x4,%rdx
  cmp    %r14,%rax
  jne    L55
  sub    $0x1,%ebx
  jne    L16
  xor    %ebx,%ebx
L63:
  add    0x0(%rbp),%ebx
  add    $0x4,%rbp
  cmp    %r14,%rbp
  jne    L63
  mov    $0x2710,%esi
  lea    D41(%rip),%rdi
  xor    %eax,%eax
  mov    %rcx,(%rsp)
  call   <printf@plt>
  lea    D26(%rip),%rdi
  call   <puts@plt>
  pxor   %xmm6,%xmm6
  mov    (%rsp),%rcx
  cvtsi2ss %ebx,%xmm6
  lea    D12(%rip),%rbx
  movss  %xmm6,0x1c(%rsp)
L56:
  movss  -0x4(%r15),%xmm4
  movss  (%r15),%xmm1
  pxor   %xmm2,%xmm2
  mov    %rcx,0x10(%rsp)
  cvtsi2ssl (%rcx),%xmm2
  divss  0x1c(%rsp),%xmm2
  movss  %xmm2,0x18(%rsp)
  add    $0x4,%r15
  movaps %xmm4,%xmm0
  movss  %xmm4,0xc(%rsp)
  addss  %xmm1,%xmm0
  xorps  D55(%rip),%xmm0
  movss  %xmm1,(%rsp)
  mulss  D10(%rip),%xmm0
  call   <exp@plt>
  pxor   %xmm3,%xmm3
  movss  0xc(%rsp),%xmm4
  mov    %rbx,%rdi
  cvtss2sd %xmm0,%xmm3
  movss  0x18(%rsp),%xmm2
  movss  (%rsp),%xmm1
  pxor   %xmm0,%xmm0
  mulsd  D16(%rip),%xmm3
  mov    $0x4,%eax
  cvtss2sd %xmm4,%xmm0
  cvtss2sd %xmm2,%xmm2
  cvtss2sd %xmm1,%xmm1
  cvtsd2ss %xmm3,%xmm3
  cvtss2sd %xmm3,%xmm3
  call   <printf@plt>
  mov    0x10(%rsp),%rcx
  add    $0x4,%rcx
  cmp    %r14,%rcx
  jne    L56
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  add    $0xf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D64
datatype: f64
name: disassemble_data
arguments: data_label: D41
datatype: string
name: disassemble_data
arguments: data_label: D26
datatype: string
name: disassemble_data
arguments: data_label: D12
datatype: string
name: disassemble_data
arguments: data_label: D55
datatype: byte[16]
name: disassemble_data
arguments: data_label: D10
datatype: byte[4]
name: disassemble_data
arguments: data_label: D16
datatype: byte[8]

tool: D64: 20

tool: D41: 
exponential distribution with %7d points


tool: D26:     interval      observed     expected


tool: D12: %6.2f %6.2f %12.6f %12.6f 


tool: {"D55": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D10": [0x00,0x00,0x00,0x3f]}

tool: {"D16": [0x58,0x3a,0xfc,0x3e,0xd2,0x3f,0xb4,0x3f]}

assistant: ```c
int main(void) {
  long idum = (1);
  int i, j, total = 0, x[21];
  float expect, xx, y, trig[21];
  for (i = 0; i <= 20; i++) {
    trig[i] = i / 20.0;
    x[i] = 0;
  }
  for (i = 1; i <= 10000; i++) {
    y = expdev(&idum);
    for (j = 1; j <= 20; j++)
      if ((y < trig[j]) && (y > trig[j - 1]))
        ++x[j];
  }
  for (i = 1; i <= 20; i++)
    total += x[i];
  printf("\nexponential distribution with %7d points\n", 10000);
  printf("    interval      observed     expected\n\n");
  for (i = 1; i <= 20; i++) {
    xx = (float)x[i] / total;
    expect = exp(-(trig[i - 1] + trig[i]) / 2.0);
    expect *= (0.05 * 2.718281828 / (2.718281828 - 1));
    printf("%6.2f %6.2f %12.6f %12.6f \n", trig[i - 1], trig[i], xx, expect);
  }
  return 0;
}
```