user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xe0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  lea    D37(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  lea    D23(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L142
  lea    0x10(%rsp),%r12
  mov    %r12,%rbp
  mov    $0x0,%ebx
  lea    D49(%rip),%r14
  lea    D23(%rip),%r13
L10:
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  mov    0xc(%rsp),%eax
  add    $0x4,%rbp
  cmp    %ebx,%eax
  jg     L10
  test   %eax,%eax
  jle    L142
  lea    0x14(%rsp),%rbx
  mov    $0x1,%ebp
  mov    $0x0,%r14d
  mov    $0x1,%r13d
  add    $0x4,%r12
  jmp    L13
L11:
  sub    $0x1,%edi
  mov    %r13d,%esi
L71:
  add    $0x1,%rdx
  add    $0x4,%rcx
  cmp    %edx,%edi
  jle    L20
L63:
  mov    (%rcx),%r9d
  cmp    %r9d,-0x4(%rbx)
  jne    L71
  cmp    %edx,%edi
  jle    L11
  lea    -0x1(%rdi),%esi
  sub    %edx,%esi
  lea    (%rsi,%rdx,1),%rax
  lea    (%r12,%rax,4),%r8
  mov    %rcx,%rax
L148:
  mov    0x4(%rax),%esi
  mov    %esi,(%rax)
  add    $0x4,%rax
  cmp    %r8,%rax
  jne    L148
  jmp    L11
L20:
  test   %sil,%sil
  je     L31
  mov    %edi,0xc(%rsp)
L31:
  add    $0x1,%rbp
  add    $0x4,%rbx
  lea    -0x1(%rbp),%eax
  cmp    %eax,0xc(%rsp)
  jle    L142
L13:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0xc(%rsp),%edi
  cmp    %ebp,%edi
  jle    L142
  mov    %rbx,%rcx
  mov    %rbp,%rdx
  mov    %r14d,%esi
  jmp    L63
L142:
  lea    D64(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L60
  mov    $0x0,%ebx
  lea    D61(%rip),%rbp
L21:
  mov    0x10(%rsp,%rbx,4),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,0xc(%rsp)
  jg     L21
L60:
  lea    D44(%rip),%rdi
  call   <puts@plt>
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L108
  mov    $0x0,%eax
  add    $0xe0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L108:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D37
type_infered: string
name: retrieve_data
arguments: data_tag: D23
type_infered: string
name: retrieve_data
arguments: data_tag: D49
type_infered: string
name: retrieve_data
arguments: data_tag: D64
type_infered: string
name: retrieve_data
arguments: data_tag: D61
type_infered: string
name: retrieve_data
arguments: data_tag: D44
type_infered: string

tool: D37: Dati un numar n natural:

tool: D23: %d

tool: D49: a[%d]= 

tool: D64: Vectorul unicat:

tool: D61: %d 

tool: D44: 
Exit...

assistant: ```c
int main() {
  int a[50];
  int n;
  printf("Dati un numar n natural:\n");
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    printf("a[%d]= ", i);
    scanf("%d", &a[i]);
  }
  for (int i = 0; i < n; ++i) {
    printf("\n");
    for (int j = i + 1; j < n; ++j) {
      if (a[i] == a[j]) {
        for (int h = j; h < n; ++h) {
          a[h] = a[h + 1];
        }
        --n;
      }
    }
  }
  printf("Vectorul unicat:\n");
  for (int i = 0; i < n; ++i) {
    printf("%d ", a[i]);
  }
  printf("\nExit...\n");
  return 0;
}
```