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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movq   $0x0,-0x50(%rbp)
  lea    -0x68(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x68(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  mov    %rax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  mov    %rax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L87:
  cmp    %rdx,%rsp
  je     L64
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L87
L64:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L92
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L92:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  movq   $0x0,-0x60(%rbp)
  jmp    L3
L78:
  mov    -0x60(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addq   $0x1,-0x60(%rbp)
L3:
  mov    -0x68(%rbp),%rax
  cmp    %rax,-0x60(%rbp)
  jl     L78
  mov    -0x68(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x40(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <quicksort@plt>
  movq   $0x0,-0x60(%rbp)
  jmp    L65
L68:
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%rdx
  mov    (%rax,%rdx,8),%rax
  cmp    $0xffffffffffffffff,%rax
  je     L99
  mov    -0x60(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  jmp    L50
L51:
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%rdx
  mov    (%rax,%rdx,8),%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%rdx
  mov    (%rax,%rdx,8),%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  cmp    $0x4,%rax
  jg     L45
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%rdx
  movq   $0xffffffffffffffff,(%rax,%rdx,8)
L45:
  addq   $0x1,-0x58(%rbp)
L50:
  mov    -0x68(%rbp),%rax
  cmp    %rax,-0x58(%rbp)
  jl     L51
  addq   $0x1,-0x50(%rbp)
L99:
  addq   $0x1,-0x60(%rbp)
L65:
  mov    -0x68(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x60(%rbp)
  jl     L68
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%rdx
  mov    (%rax,%rdx,8),%rax
  cmp    $0xffffffffffffffff,%rax
  je     L15
  addq   $0x1,-0x50(%rbp)
L15:
  mov    -0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L116
  call   <__stack_chk_fail@plt>
L116:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: tag: D21
type_infered: string

tool: D21: %ld

assistant: ```c
int main() {
  long int k, n, i, j, s = 0;
  scanf("%ld", &n);
  long int a[n];
  for (i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  quicksort(a, 0, n - 1);
  for (i = 0; i < n - 1; i++) {
    if (a[i] != -1) {
      for (j = i + 1; j < n; j++) {
        if (a[j] - a[i] <= 4) {
          a[j] = -1;
        }
      }
      s++;
    }
  }
  if (a[i] != -1)
    s++;
  printf("%ld", s);
  return 0;
}
```