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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    D6(%rip),%rbp
  push   %rbx
  mov    %rbp,%rdi
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rbx
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  test   %edi,%edi
  je     L37
  mov    %edi,%r13d
  xor    %ecx,%ecx
  cs nopw 0x0(%rax,%rax,1)
L38:
  movslq %r13d,%rax
  mov    %r13d,%edx
  add    $0x1,%ecx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  mov    %eax,%r13d
  jne    L38
  cmp    $0x9,%ecx
  jle    L138
  lea    D29(%rip),%r12
  nopw   0x0(%rax,%rax,1)
L95:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  mov    %edi,%edx
  test   %edi,%edi
  je     L37
  xor    %esi,%esi
  nopl   0x0(%rax,%rax,1)
L185:
  movslq %edx,%rax
  mov    %edx,%ecx
  add    $0x1,%esi
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%ecx
  sar    $0x22,%rax
  sub    %ecx,%eax
  mov    %eax,%edx
  jne    L185
  cmp    $0x9,%esi
  jg     L95
L138:
  lea    0x10(%rsp),%rbx
  mov    %edi,%eax
  mov    %rbx,%rsi
  nopl   0x0(%rax,%rax,1)
L155:
  movslq %eax,%rdx
  mov    %eax,%ecx
  mov    %r13d,%r9d
  add    $0x4,%rsi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  add    $0x1,%r13d
  sar    $0x22,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x4(%rsi)
  mov    %edx,%eax
  test   %edx,%edx
  jne    L155
  movslq %r13d,%r10
  mov    $0x1,%r8d
  lea    0x4(%rbx),%r11
  mov    %rbx,%rsi
  mov    %r13d,0xc(%rsp)
  cmp    %r8,%r10
  je     L29
  nopw   0x0(%rax,%rax,1)
L199:
  mov    %r9d,%eax
  sub    %r8d,%eax
  lea    -0x1(%r8,%rax,1),%rax
  lea    (%r11,%rax,4),%rdi
  mov    %rsi,%rax
  nopw   0x0(%rax,%rax,1)
L62:
  mov    (%rsi),%edx
  mov    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L154
  mov    %ecx,(%rsi)
  mov    %edx,0x4(%rax)
L154:
  add    $0x4,%rax
  cmp    %rax,%rdi
  jne    L62
  add    $0x1,%r8
  add    $0x4,%rsi
  cmp    %r8,%r10
  jne    L199
L29:
  xor    %eax,%eax
  lea    D28(%rip),%rbp
  nopl   (%rax)
L9:
  lea    0x1(%rax),%edi
  cmp    %r13d,%edi
  jge    L135
  cltq
  xor    %ecx,%ecx
  mov    0x10(%rsp,%rax,4),%esi
  lea    (%rbx,%rax,4),%rdx
  mov    %edi,%eax
  jmp    L176
  nopl   0x0(%rax,%rax,1)
L142:
  add    $0x1,%eax
  add    $0x4,%rdx
  mov    $0x1,%ecx
  cmp    %r13d,%eax
  je     L129
L176:
  cmp    0x4(%rdx),%esi
  je     L142
  test   %ecx,%ecx
  jne    L59
L91:
  mov    0xc(%rsp),%r13d
  cmp    %r13d,%eax
  jl     L9
L37:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L59:
  mov    %eax,%r13d
  nopl   0x0(%rax)
L129:
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13d,%eax
  jmp    L91
L135:
  mov    %edi,%eax
  jmp    L91
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D6
type: string
name: disassemble_data
arguments: label: D29
type: string
name: disassemble_data
arguments: label: D28
type: string

tool: D6: %d

tool: D29: Not valid int 

tool: D28: 
 %d 
 

assistant: ```c
int main() {
  int repeat[10];
  int n, i, a, b, c;
  scanf("%d", &n);
  c = n;
  for (i = 0; c != 0; i++) {
    c = c / 10;
  }
  while (i > 9) {
    printf("Not valid int \n");
    scanf("%d", &n);
    c = n;
    for (i = 0; c != 0; i++) {
      c = c / 10;
    }
  }
  for (i = 0; n != 0; i++) {
    a = n % 10;
    repeat[i] = a;
    n = n / 10;
  }
  n = i;
  for (b = 0; b < n; b++) {
    for (a = b + 1; a < n; a++) {
      if (repeat[b] > repeat[a]) {
        c = repeat[b];
        repeat[b] = repeat[a];
        repeat[a] = c;
      }
    }
  }
  for (b = 0, c = 0; b < n; b++) {
    for (a = b + 1; a < n; a++) {
      if (repeat[b] == repeat[a]) {
        c = 1;
      } else {
        break;
      }
    }
    if (c) {
      printf("\n %d \n ", repeat[b]);
    }
    b = a - 1;
    c = 0;
  }
  return 0;
}
```