user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r14
  lea    D4(%rip),%rdi
  push   %r13
  lea    D25(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%rcx
  lea    0x28(%rsp),%rdx
  lea    0x24(%rsp),%rsi
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  mov    $0x4,%esi
  lea    0x1(%rax),%edi
  call   <calloc@plt>
  mov    0x28(%rsp),%edi
  mov    $0x8,%esi
  mov    %rax,%r12
  call   <calloc@plt>
  mov    %r13,%rdi
  mov    %rax,%r14
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <scanf@plt>
  cmpl   $0x1,0x28(%rsp)
  movsd  (%r14),%xmm1
  jle    L80
  lea    0x8(%r14),%rbx
  movapd %xmm1,%xmm2
  mov    $0x1,%ebp
  nopl   0x0(%rax)
L97:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  add    $0x1,%ebp
  add    $0x8,%rbx
  call   <scanf@plt>
  movsd  -0x8(%rbx),%xmm0
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm2
  movapd %xmm0,%xmm7
  maxsd  %xmm1,%xmm7
  minsd  %xmm2,%xmm0
  movapd %xmm7,%xmm1
  movapd %xmm0,%xmm2
  cmp    %ebp,0x28(%rsp)
  jg     L97
L21:
  movapd %xmm2,%xmm0
  movq   D21(%rip),%xmm2
  movsd  D67(%rip),%xmm5
  movapd %xmm0,%xmm3
  andpd  %xmm2,%xmm3
  movapd %xmm2,%xmm4
  ucomisd %xmm3,%xmm5
  jbe    L17
  cvttsd2si %xmm0,%rax
  pxor   %xmm3,%xmm3
  movsd  D77(%rip),%xmm7
  andnpd %xmm0,%xmm4
  cvtsi2sd %rax,%xmm3
  movapd %xmm3,%xmm6
  cmpnlesd %xmm0,%xmm6
  andpd  %xmm7,%xmm6
  subsd  %xmm6,%xmm3
  orpd   %xmm4,%xmm3
  movapd %xmm3,%xmm0
L17:
  movq   %xmm1,%rbp
  andpd  %xmm2,%xmm1
  movapd %xmm0,%xmm3
  ucomisd %xmm1,%xmm5
  jbe    L57
  movq   %rbp,%xmm4
  pxor   %xmm1,%xmm1
  movsd  D77(%rip),%xmm5
  cvttsd2si %xmm4,%rax
  cvtsi2sd %rax,%xmm1
  cmpnlesd %xmm1,%xmm4
  andpd  %xmm5,%xmm4
  addsd  %xmm4,%xmm1
  movq   %rbp,%xmm4
  andnpd %xmm4,%xmm2
  orpd   %xmm2,%xmm1
  movq   %xmm1,%rbp
L57:
  pxor   %xmm1,%xmm1
  movq   %rbp,%xmm2
  lea    0x30(%rsp),%rdi
  xor    %esi,%esi
  cvtsi2sdl 0x2c(%rsp),%xmm1
  subsd  %xmm0,%xmm2
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm0,0x8(%rsp)
  lea    D52(%rip),%rbx
  divsd  %xmm1,%xmm2
  movsd  %xmm2,0x10(%rsp)
  call   <gettimeofday@plt>
  mov    0x28(%rsp),%ecx
  mov    0x2c(%rsp),%esi
  mov    %r14,%rdx
  movsd  0x8(%rsp),%xmm0
  mov    0x24(%rsp),%r8d
  mov    %r12,%rdi
  movq   %rbp,%xmm1
  movsd  0x10(%rsp),%xmm2
  call   <parallel_count@plt>
  xor    %esi,%esi
  lea    0x40(%rsp),%rdi
  call   <gettimeofday@plt>
  movsd  0x8(%rsp),%xmm0
  movq   %rbp,%xmm4
  movsd  0x18(%rsp),%xmm3
  comisd %xmm0,%xmm4
  jb     L18
  nopl   0x0(%rax)
L11:
  movapd %xmm3,%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  movsd  %xmm3,0x8(%rsp)
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm3
  movq   %rbp,%xmm5
  addsd  0x10(%rsp),%xmm3
  comisd %xmm3,%xmm5
  jae    L11
L18:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L56
  mov    %r12,%rbx
  xor    %ebp,%ebp
  lea    D79(%rip),%r12
  nopl   0x0(%rax)
L63:
  mov    (%rbx),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%ebp
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %ebp,0x2c(%rsp)
  jg     L63
L56:
  mov    $0xa,%edi
  call   <putchar@plt>
  imul   $0xf4240,0x40(%rsp),%eax
  mov    0x48(%rsp),%rsi
  lea    D42(%rip),%rdi
  sub    0x38(%rsp),%rsi
  cltq
  add    %rax,%rsi
  imul   $0xf4240,0x30(%rsp),%eax
  cltq
  sub    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L98
  add    $0x60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L80:
  movapd %xmm1,%xmm2
  jmp    L21
L98:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D4
datatype: string
name: unpack_data
arguments: data_tag: D25
datatype: string
name: unpack_data
arguments: data_tag: D21
datatype: byte[8]
name: unpack_data
arguments: data_tag: D67
datatype: byte[8]
name: unpack_data
arguments: data_tag: D77
datatype: byte[8]
name: unpack_data
arguments: data_tag: D52
datatype: string
name: unpack_data
arguments: data_tag: D79
datatype: string
name: unpack_data
arguments: data_tag: D42
datatype: string

tool: D4:  %d %d %d

tool: D25:  %lf

tool: {"D21": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: {"D67": [0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x43]}

tool: {"D77": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D52: %.2lf 

tool: D79: %d 

tool: D42: %lu


assistant: ```c
int main() {
  int nthreads, n, bins, i;
  struct timeval start, end;
  scanf(" %d %d %d", &nthreads, &n, &bins);
  int *bin = (int *)calloc(bins + 1, sizeof(int));
  double *vet = (double *)calloc(n, sizeof(double));
  double max, min;
  double gap;
  long unsigned duration;
  double j;
  scanf(" %lf", &vet[0]);
  max = min = vet[0];
  for (i = 1; i < n; i++) {
    scanf(" %lf", &vet[i]);
    if (max < vet[i]) {
      max = vet[i];
    }
    if (min > vet[i]) {
      min = vet[i];
    }
  }
  min = floor(min);
  max = ceil(max);
  gap = (max - min) / bins;
  gettimeofday(&start, NULL);
  parallel_count(min, max, bin, bins, gap, vet, n, nthreads);
  gettimeofday(&end, NULL);
  for (j = min; j <= max; j += gap) {
    printf("%.2lf ", j);
  }
  printf("\n");
  for (i = 0; i < bins; i++) {
    printf("%d ", bin[i]);
  }
  printf("\n");
  duration = ((end.tv_sec * 1000000 + end.tv_usec) - (start.tv_sec * 1000000 + start.tv_usec));
  printf("%lu\n", duration);
  return 0;
}
```