user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x44(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L96
L43:
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  addl   $0x1,-0x40(%rbp)
L96:
  cmpl   $0x0,-0x34(%rbp)
  jne    L43
  jmp    L48
L91:
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x44(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L187
L146:
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  addl   $0x1,-0x40(%rbp)
L187:
  cmpl   $0x0,-0x34(%rbp)
  jne    L146
L48:
  cmpl   $0x9,-0x40(%rbp)
  jg     L91
  movl   $0x0,-0x40(%rbp)
  jmp    L167
L37:
  mov    -0x44(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0x3c(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  mov    -0x3c(%rbp),%edx
  mov    %edx,-0x30(%rbp,%rax,4)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x44(%rbp)
  addl   $0x1,-0x40(%rbp)
L167:
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jne    L37
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L40
L148:
  mov    -0x38(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L184
L108:
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jle    L20
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x38(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x34(%rbp),%edx
  mov    %edx,-0x30(%rbp,%rax,4)
L20:
  addl   $0x1,-0x3c(%rbp)
L184:
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L108
  addl   $0x1,-0x38(%rbp)
L40:
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jl     L148
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L111
L161:
  mov    -0x38(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L9
L117:
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%edx
  mov    -0x3c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L174
  movl   $0x1,-0x34(%rbp)
  addl   $0x1,-0x3c(%rbp)
L9:
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L117
  jmp    L88
L174:
  nop
L88:
  cmpl   $0x0,-0x34(%rbp)
  je     L14
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L14:
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  addl   $0x1,-0x38(%rbp)
L111:
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jl     L161
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L143
  call   <__stack_chk_fail@plt>
L143:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D14
type_infered: string
name: unpack_data
arguments: label: D9
type_infered: string
name: unpack_data
arguments: label: D10
type_infered: string

tool: D14: %d

tool: D9: Not valid int 

tool: D10: 
 %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;
}
```