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

```asm
<main>:
  endbr64
  push   %r14
  lea    D72(%rip),%rdi
  push   %r13
  lea    D74(%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    L40
  lea    0x8(%r14),%rbx
  movapd %xmm1,%xmm2
  mov    $0x1,%ebp
  nopl   0x0(%rax)
L3:
  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     L3
L73:
  movapd %xmm2,%xmm0
  movq   D9(%rip),%xmm2
  movsd  D28(%rip),%xmm5
  movapd %xmm0,%xmm3
  andpd  %xmm2,%xmm3
  movapd %xmm2,%xmm4
  ucomisd %xmm3,%xmm5
  jbe    L44
  cvttsd2si %xmm0,%rax
  pxor   %xmm3,%xmm3
  movsd  D46(%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
L44:
  movq   %xmm1,%rbp
  andpd  %xmm2,%xmm1
  movapd %xmm0,%xmm3
  ucomisd %xmm1,%xmm5
  jbe    L25
  movq   %rbp,%xmm4
  pxor   %xmm1,%xmm1
  movsd  D46(%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
L25:
  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    D58(%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     L71
  nopl   0x0(%rax)
L52:
  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    L52
L71:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L70
  mov    %r12,%rbx
  xor    %ebp,%ebp
  lea    D27(%rip),%r12
  nopl   0x0(%rax)
L39:
  mov    (%rbx),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%ebp
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %ebp,0x2c(%rsp)
  jg     L39
L70:
  mov    $0xa,%edi
  call   <putchar@plt>
  imul   $0xf4240,0x40(%rsp),%eax
  mov    0x48(%rsp),%rsi
  lea    D55(%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    L48
  add    $0x60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L40:
  movapd %xmm1,%xmm2
  jmp    L73
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D72
type: string
name: parse_data
arguments: tag: D74
type: string
name: parse_data
arguments: tag: D9
type: byte[8]
name: parse_data
arguments: tag: D28
type: byte[8]
name: parse_data
arguments: tag: D46
type: byte[8]
name: parse_data
arguments: tag: D58
type: string
name: parse_data
arguments: tag: D27
type: string
name: parse_data
arguments: tag: D55
type: string

tool: D72:  %d %d %d

tool: D74:  %lf

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

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

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

tool: D58: %.2lf 

tool: D27: %d 

tool: D55: %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;
}
```