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

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  lea    D84(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movq   $0x0,0x40(%rsp)
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D122(%rip),%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%edx
  test   %edx,%edx
  je     L38
  xor    %esi,%esi
  lea    0x50(%rsp),%rax
  nop
L426:
  movslq %edx,%rcx
  mov    %edx,%edi
  imul   $0x66666667,%rcx,%rcx
  sar    $0x1f,%edi
  sar    $0x22,%rcx
  sub    %edi,%ecx
  lea    (%rcx,%rcx,4),%r8d
  mov    %ecx,%edi
  add    %r8d,%r8d
  sub    %r8d,%edx
  mov    %edx,(%rax,%rsi,4)
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %rsi,%rdi
  add    $0x1,%rsi
  test   %edx,%edx
  jne    L426
  mov    %ecx,0x1c(%rsp)
  lea    0x54(%rsp,%rdi,4),%rdi
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  movl   $0x0,0xc(%rsp)
  xor    %r10d,%r10d
  xor    %r11d,%r11d
  xor    %ebp,%ebp
  movb   $0x0,0x4(%rsp)
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  xor    %r14d,%r14d
  movb   $0x0,0x5(%rsp)
  xor    %ebx,%ebx
  xor    %r15d,%r15d
  lea    D62(%rip),%rsi
  movb   $0x0,0x6(%rsp)
  movb   $0x0,0x7(%rsp)
  movb   $0x0,0x8(%rsp)
  movb   $0x0,0x9(%rsp)
  movb   $0x0,0xa(%rsp)
  movb   $0x0,0xb(%rsp)
  nop
L358:
  cmpl   $0x9,(%rax)
  ja     L184
  mov    (%rax),%ecx
  movslq (%rsi,%rcx,4),%rcx
  add    %rsi,%rcx
  notrack jmp *%rcx
  nopl   0x0(%rax)
  add    $0x1,%r9d
  mov    $0x1,%r15d
  nopw   0x0(%rax,%rax,1)
L184:
  add    $0x4,%rax
  cmp    %rdi,%rax
  jne    L358
  test   %bl,%bl
  je     L223
  mov    %r8d,0x44(%rsp)
L223:
  test   %r15b,%r15b
  je     L120
  mov    %r9d,0x40(%rsp)
L120:
  cmpb   $0x0,0x4(%rsp)
  je     L359
  mov    %r10d,0x3c(%rsp)
L359:
  cmpb   $0x0,0x5(%rsp)
  je     L62
  mov    %r11d,0x38(%rsp)
L62:
  cmpb   $0x0,0x6(%rsp)
  je     L280
  mov    %ebp,0x34(%rsp)
L280:
  cmpb   $0x0,0x7(%rsp)
  je     L239
  mov    %r12d,0x30(%rsp)
L239:
  cmpb   $0x0,0x8(%rsp)
  je     L301
  mov    %r13d,0x2c(%rsp)
L301:
  cmpb   $0x0,0x9(%rsp)
  je     L264
  mov    %r14d,0x28(%rsp)
L264:
  cmpb   $0x0,0xa(%rsp)
  je     L315
  mov    0xc(%rsp),%eax
  mov    %eax,0x24(%rsp)
L315:
  cmpb   $0x0,0xb(%rsp)
  je     L38
  mov    %edx,0x20(%rsp)
  nopl   (%rax)
L38:
  mov    0x20(%rsp),%edx
  test   %edx,%edx
  jne    L237
L206:
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jne    L125
L319:
  mov    0x28(%rsp),%edx
  test   %edx,%edx
  jne    L312
L405:
  mov    0x2c(%rsp),%edx
  test   %edx,%edx
  jne    L213
L84:
  mov    0x30(%rsp),%edx
  test   %edx,%edx
  jne    L269
L132:
  mov    0x34(%rsp),%edx
  test   %edx,%edx
  jne    L363
L20:
  mov    0x38(%rsp),%edx
  test   %edx,%edx
  jne    L133
L257:
  mov    0x3c(%rsp),%edx
  test   %edx,%edx
  jne    L254
L330:
  mov    0x40(%rsp),%edx
  test   %edx,%edx
  jne    L423
L310:
  mov    0x44(%rsp),%edx
  test   %edx,%edx
  jne    L201
L5:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L142
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  movb   $0x1,0x5(%rsp)
  add    $0x1,%r11d
  jmp    L184
  xchg   %ax,%ax
  movb   $0x1,0x6(%rsp)
  add    $0x1,%ebp
  jmp    L184
  nopl   (%rax)
  movb   $0x1,0x4(%rsp)
  add    $0x1,%r10d
  jmp    L184
  xchg   %ax,%ax
  movb   $0x1,0x7(%rsp)
  add    $0x1,%r12d
  jmp    L184
  xchg   %ax,%ax
  movb   $0x1,0x8(%rsp)
  add    $0x1,%r13d
  jmp    L184
  xchg   %ax,%ax
  movb   $0x1,0xb(%rsp)
  add    $0x1,%edx
  jmp    L184
  nopl   (%rax)
  add    $0x1,%r8d
  mov    $0x1,%ebx
  jmp    L184
  xchg   %ax,%ax
  movb   $0x1,0x9(%rsp)
  add    $0x1,%r14d
  jmp    L184
  xchg   %ax,%ax
  addl   $0x1,0xc(%rsp)
  movb   $0x1,0xa(%rsp)
  jmp    L184
L201:
  mov    $0x9,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L5
L423:
  mov    $0x8,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L310
L254:
  mov    $0x7,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L330
L133:
  mov    $0x6,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L257
L363:
  mov    $0x5,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L20
L269:
  mov    $0x4,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L132
L213:
  mov    $0x3,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L84
L312:
  mov    $0x2,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L405
L125:
  mov    $0x1,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L319
L237:
  xor    %esi,%esi
  lea    D95(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L206
L142:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D84
type_guessed: string
name: retrieve_data
arguments: data_tag: D122
type_guessed: string
name: retrieve_data
arguments: data_tag: D95
type_guessed: string

tool: D84: Input a number : 

tool: D122: %d

tool: D95: 
%d - %d

assistant: ```c
int main() {
  int arr[50];
  int i;
  int arra2[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  int y;
  int n;
  printf("Input a number : ");
  scanf("%d", &n);
  int x = n;
  for (i = 0; x != 0; i++) {
    n = x % 10;
    arr[i] = n;
    x = x / 10;
  }
  y = i;
  for (i = 0; i < y; i++) {
    switch (arr[i]) {
    case 0:
      arra2[0]++;
      break;
    case 1:
      arra2[1]++;
      break;
    case 2:
      arra2[2]++;
      break;
    case 3:
      arra2[3]++;
      break;
    case 4:
      arra2[4]++;
      break;
    case 5:
      arra2[5]++;
      break;
    case 6:
      arra2[6]++;
      break;
    case 7:
      arra2[7]++;
      break;
    case 8:
      arra2[8]++;
      break;
    case 9:
      arra2[9]++;
      break;
    }
  }
  for (i = 0; i < 10; i++) {
    if (arra2[i] != 0) {
      printf("\n%d - %d", i, arra2[i]);
    }
  }
  return 0;
}
```