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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D23(%rip),%rdi
  mov    %rsp,%rbp
  push   %r14
  lea    D22(%rip),%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    -0x2c(%rbp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  movslq -0x2c(%rbp),%rax
  mov    %rsp,%rcx
  mov    %rax,%rsi
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L117
L187:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L187
L117:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L7
L50:
  lea    D4(%rip),%rdi
  xor    %eax,%eax
  mov    %rsp,%rbx
  call   <printf@plt>
  mov    -0x2c(%rbp),%r10d
  test   %r10d,%r10d
  jle    L153
  mov    %rbx,%r13
  xor    %r12d,%r12d
  nop
L179:
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  mov    -0x2c(%rbp),%r10d
  cmp    %r12d,%r10d
  jg     L179
L153:
  mov    %r10d,%edi
  sub    $0x1,%edi
  js     L163
  movslq %edi,%r9
  mov    %r9,%r8
  nopw   0x0(%rax,%rax,1)
L248:
  mov    (%rbx,%r8,4),%r12d
  lea    -0x1(%rdi),%esi
  xor    %eax,%eax
  mov    %rsi,%r11
  mov    %r12d,%ecx
  test   %r8d,%r8d
  jg     L183
  jmp    L185
  nopl   0x0(%rax)
L92:
  mov    %rdx,%rax
L183:
  mov    (%rbx,%rax,4),%edx
  cmp    %ecx,%edx
  jle    L151
  mov    %edx,%ecx
  mov    %eax,%edi
L151:
  lea    0x1(%rax),%rdx
  cmp    %rsi,%rax
  jne    L92
  movslq %edi,%rdi
  mov    %ecx,(%rbx,%r8,4)
  mov    %r12d,(%rbx,%rdi,4)
L118:
  sub    $0x1,%r8
  mov    %r11d,%edi
  jmp    L248
  nopl   0x0(%rax,%rax,1)
L29:
  test   %sil,%sil
  je     L163
  mov    %r10d,-0x2c(%rbp)
L163:
  mov    -0x2c(%rbp),%eax
  xor    %r12d,%r12d
  lea    D30(%rip),%r13
  test   %eax,%eax
  jle    L70
  nopw   0x0(%rax,%rax,1)
L166:
  mov    (%rbx,%r12,4),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x2c(%rbp)
  jg     L166
L70:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L79
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L185:
  test   %r11d,%r11d
  jns    L118
  lea    (%rbx,%r9,4),%rcx
  xor    %esi,%esi
  jmp    L93
  nopl   (%rax)
L243:
  sub    $0x1,%r9
  sub    $0x4,%rcx
  test   %r9d,%r9d
  js     L29
L93:
  mov    (%rcx),%edx
  cmp    -0x4(%rcx),%edx
  jne    L243
  cmp    %r9d,%r10d
  jle    L30
  sub    $0x1,%r10d
  mov    %r10d,%esi
  sub    %r9d,%esi
  lea    (%rsi,%r9,1),%rax
  lea    (%rbx,%rax,4),%rsi
  mov    %rcx,%rax
  jmp    L201
L36:
  mov    0x4(%rax),%edx
  add    $0x4,%rax
L201:
  mov    %edx,-0x4(%rax)
  cmp    %rsi,%rax
  jne    L36
L94:
  mov    $0x1,%esi
  jmp    L243
L7:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L50
L30:
  sub    $0x1,%r10d
  jmp    L94
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D23
datatype: string
name: disassemble_data
arguments: label: D22
datatype: string
name: disassemble_data
arguments: label: D4
datatype: string
name: disassemble_data
arguments: label: D30
datatype: string

tool: D23: Enter n= 

tool: D22: %d

tool: D4: Enter %d data (divide with space)= 

tool: D30: %d 

assistant: ```c
int main(void) {
  int n;
  printf("Enter n= ");
  scanf("%d", &n);
  int data[n];
  printf("Enter %d data (divide with space)= ", n);
  for (int i = 0; i < n; ++i)
    scanf("%d", &data[i]);
  for (int i = n - 1; i >= 0; --i) {
    int max = i;
    for (int j = 0; j < i; ++j)
      if (data[j] > data[max])
        max = j;
    int tmp = data[i];
    data[i] = data[max];
    data[max] = tmp;
  }
  for (int i = n - 1; i >= 0; --i) {
    if (data[i] == data[i - 1]) {
      for (int j = i; j < n; ++j)
        data[j - 1] = data[j];
      --n;
    }
  }
  for (int i = 0; i < n; ++i)
    printf("%d ", data[i]);
  printf("\n");
  return 0;
}
```