user: What is the c source code of the assembly code below:

```asm
<sampleStats>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rcx
  mov    %rdx,%r15
  mov    $0x0,%eax
L115:
  mov    %eax,%ebp
  add    $0x1,%rax
  cmpl   $0x0,-0x4(%rcx,%rax,4)
  je     L115
  sub    $0x1,%esi
  movslq %esi,%rax
L112:
  mov    %eax,%ebx
  sub    $0x1,%rax
  cmpl   $0x0,0x4(%rcx,%rax,4)
  je     L112
  cmp    %ebx,%ebp
  jg     L68
  movslq %ebp,%r9
  mov    %r9,%rax
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r12d
  mov    $0x0,%r8d
  jmp    L70
L163:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jl     L123
L70:
  mov    (%rcx,%rax,4),%edx
  test   %edx,%edx
  je     L163
  add    %edx,%r12d
  mov    %edx,%esi
  imul   %eax,%esi
  movslq %esi,%rsi
  add    %rsi,%r13
  cmp    %r8d,%edx
  jle    L163
  mov    %eax,%r14d
  mov    %edx,%r8d
  jmp    L163
L123:
  test   $0x1,%r12b
  je     L189
  lea    -0x1(%r12),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  mov    $0x0,%esi
  jmp    L77
L1:
  movsd  %xmm0,0x8(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  0x8(%rsp),%xmm0
  mulsd  D2(%rip),%xmm0
  movsd  %xmm0,0x8(%rsp)
  jmp    L203
L9:
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  movsd  %xmm5,0x8(%rsp)
  jmp    L203
L218:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jl     L188
L3:
  mov    (%rcx,%rax,4),%edx
  test   %edx,%edx
  je     L218
  test   %r8b,%r8b
  jne    L1
  add    %edx,%esi
  cmp    %esi,%r10d
  jg     L218
  cmp    %esi,%r9d
  jl     L9
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    %r11d,%r8d
  jmp    L218
L188:
  movsd  %xmm0,0x8(%rsp)
  jmp    L203
L208:
  add    $0x1,%r9
  cmp    %r9d,%ebx
  jl     L203
L77:
  mov    (%rcx,%r9,4),%eax
  test   %eax,%eax
  je     L208
  add    %eax,%esi
  cmp    %esi,%edx
  jg     L208
  pxor   %xmm3,%xmm3
  cvtsi2sd %r9d,%xmm3
  movsd  %xmm3,0x8(%rsp)
L203:
  mov    $0x28,%edi
  call   <malloc@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebp,%xmm0
  movsd  %xmm0,(%rax)
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  movsd  %xmm0,0x8(%rax)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm2,0x18(%rax)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  movsd  %xmm0,0x20(%rax)
  movl   $0x5,(%r15)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L68:
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r12d
  jmp    L203
L189:
  mov    %r12d,%r9d
  shr    $0x1f,%r9d
  add    %r12d,%r9d
  sar    %r9d
  lea    -0x1(%r9),%r10d
  movslq %ebp,%rax
  mov    $0x0,%r8d
  mov    $0x0,%esi
  mov    $0x1,%r11d
  movsd  0x8(%rsp),%xmm0
  jmp    L3
```

tool_calls: name: disassemble_data
arguments: tag: D2
datatype: byte[8]

tool: {"D2": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
double *sampleStats(int *count, int countSize, int *returnSize) {
  int min, max, max_cnt = 0, cnt = 0, most = 0;
  long sum = 0;
  double *ret;
  double middle;
  int i = 0;
  while (count[i++] == 0)
    ;
  min = i - 1;
  i = countSize - 1;
  while (count[i--] == 0)
    ;
  max = i + 1;
  for (i = min; i <= max; i++) {
    if (count[i] != 0) {
      cnt += count[i];
      sum += i * count[i];
      if (max_cnt < count[i]) {
        max_cnt = count[i];
        most = i;
      }
    }
  }
  if (cnt % 2 == 0) {
    int mid1 = cnt / 2 - 1, mid2 = cnt / 2, tmp_cnt = 0;
    unsigned char found = 0;
    for (i = min; i <= max; i++) {
      if (count[i] != 0) {
        if (found) {
          middle += (double)i;
          middle /= 2.0;
          break;
        }
        tmp_cnt += count[i];
        if (tmp_cnt < mid1) {
          continue;
        } else if (tmp_cnt > mid2) {
          middle = (double)i;
          break;
        } else {
          found = 1;
          middle = (double)i;
        }
      }
    }
  } else {
    int mid = (cnt - 1) / 2, tmp_cnt = 0;
    for (i = min; i <= max; i++) {
      if (count[i] != 0) {
        tmp_cnt += count[i];
        if (tmp_cnt < mid) {
          continue;
        } else {
          middle = (double)i;
          break;
        }
      }
    }
  }
  ret = (double *)malloc(sizeof(double) * 5);
  ret[0] = (double)min;
  ret[1] = (double)max;
  ret[2] = (double)sum / (double)cnt;
  ret[3] = (double)middle;
  ret[4] = (double)most;
  *returnSize = 5;
  return ret;
}
```