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

```asm
<aggregate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  cmp    %eax,-0x2c(%rbp)
  jle    L11
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  add    $0x1,%eax
  jmp    L15
L11:
  mov    -0x2c(%rbp),%eax
L15:
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  add    $0x5,%eax
  add    %eax,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  cvttsd2si %xmm0,%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  movl   $0x1,-0x1c(%rbp)
  jmp    L9
L31:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L20
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L55
L20:
  addl   $0x1,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  cvttsd2si %xmm0,%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
L55:
  addl   $0x1,-0x1c(%rbp)
L9:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L31
  mov    -0x18(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
int *aggregate(double *reads, int n_reads, int *num_pos) {
  int *reads_dist, pos_min, pos_max, size;
  int i, j;
  pos_min = (int)reads[0];
  pos_max = (int)reads[n_reads - 1];
  size = (n_reads < pos_max - pos_min + 1) ? n_reads : pos_max - pos_min + 1;
  reads_dist = (int *)malloc(sizeof(int) * (size * 2 + 10));
  j = 0;
  i = 0;
  reads_dist[2 * j] = (int)reads[i];
  reads_dist[2 * j + 1] = 1;
  for (i = 1; i < n_reads; i++) {
    if ((int)reads[i] == reads_dist[2 * j]) {
      reads_dist[2 * j + 1]++;
    } else {
      j++;
      reads_dist[2 * j] = (int)reads[i];
      reads_dist[2 * j + 1] = 1;
    }
  }
  *num_pos = j + 1;
  return reads_dist;
}
```