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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  lea    D25(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D26(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L69
  lea    0x10(%rsp),%rbp
  mov    $0x0,%ebx
  lea    D26(%rip),%r12
L155:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0xc(%rsp)
  jg     L155
L69:
  lea    D64(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0xc(%rsp)
  je     L87
  mov    $0x0,%ebx
  lea    D20(%rip),%rbp
L112:
  mov    0x10(%rsp,%rbx,4),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  mov    0xc(%rsp),%eax
  movslq %eax,%rdx
  cmp    %rbx,%rdx
  ja     L112
  cmp    $0x1,%eax
  je     L46
L87:
  mov    0xc(%rsp),%esi
  lea    0x10(%rsp),%rbx
  mov    %rbx,%r8
  mov    $0x0,%ecx
  mov    $0x0,%r9d
  mov    $0x1,%r11d
  jmp    L123
L179:
  sub    $0x1,%esi
  sub    $0x1,%rdx
  mov    %r11d,%ecx
L62:
  add    $0x1,%rdx
  movslq %esi,%rax
  cmp    %rdx,%rax
  jbe    L29
L162:
  mov    0x10(%rsp,%rdx,4),%edi
  cmp    %edi,(%r8)
  jne    L62
  cmp    %r10,%rax
  jbe    L179
  lea    (%rbx,%rax,4),%rdi
  mov    %r8,%rax
L21:
  mov    0x4(%rax),%ecx
  mov    %ecx,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdi
  jne    L21
  jmp    L179
L29:
  add    $0x4,%r8
  lea    -0x1(%rsi),%eax
  cltq
  cmp    %r9,%rax
  jbe    L126
L123:
  mov    %r9,%r10
  add    $0x1,%r9
  movslq %esi,%rax
  cmp    %rax,%r9
  jae    L29
  mov    %r9,%rdx
  jmp    L162
L126:
  test   %cl,%cl
  je     L46
  mov    %esi,0xc(%rsp)
L46:
  lea    D44(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0xc(%rsp)
  je     L4
  mov    $0x0,%ebx
  lea    D20(%rip),%rbp
L54:
  mov    0x10(%rsp,%rbx,4),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  movslq 0xc(%rsp),%rax
  cmp    %rbx,%rax
  ja     L54
L4:
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L55
  mov    $0x0,%eax
  add    $0x1b0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L55:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D25
type_infered: string
name: read_data
arguments: label: D26
type_infered: string
name: read_data
arguments: label: D64
type_infered: string
name: read_data
arguments: label: D20
type_infered: string
name: read_data
arguments: label: D44
type_infered: string

tool: D25: Enter a number of array: 

tool: D26: %d

tool: D64: Before: 

tool: D20: %d 

tool: D44: After: 

assistant: ```c
int main(void) {
  int arr[100], number, i;
  printf("Enter a number of array: ");
  scanf("%d", &number);
  for (i = 0; i < number; i++) {
    scanf("%d", &arr[i]);
  }
  printf("Before: ");
  for (size_t i = 0; i < number; i++) {
    printf("%d ", arr[i]);
  }
  for (size_t i = 0; i < number - 1; i++) {
    for (size_t j = i + 1; j < number; j++) {
      if (arr[i] == arr[j]) {
        for (size_t k = i; k < number; k++) {
          arr[k] = arr[k + 1];
        }
        number--;
        j--;
      }
    }
  }
  printf("After: ");
  for (size_t i = 0; i < number; i++) {
    printf("%d ", arr[i]);
  }
  return 0;
}
```