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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  lea    -0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L27
L25:
  mov    -0x38(%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,-0xc(%rbp)
  mov    -0xc(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xc(%rbp)
  mov    -0x38(%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,-0x38(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jne    L109
  addl   $0x1,-0x34(%rbp)
L109:
  cmpl   $0x1,-0xc(%rbp)
  jne    L73
  addl   $0x1,-0x30(%rbp)
L73:
  cmpl   $0x2,-0xc(%rbp)
  jne    L21
  addl   $0x1,-0x2c(%rbp)
L21:
  cmpl   $0x3,-0xc(%rbp)
  jne    L105
  addl   $0x1,-0x28(%rbp)
L105:
  cmpl   $0x4,-0xc(%rbp)
  jne    L75
  addl   $0x1,-0x24(%rbp)
L75:
  cmpl   $0x5,-0xc(%rbp)
  jne    L31
  addl   $0x1,-0x20(%rbp)
L31:
  cmpl   $0x6,-0xc(%rbp)
  jne    L51
  addl   $0x1,-0x1c(%rbp)
L51:
  cmpl   $0x7,-0xc(%rbp)
  jne    L125
  addl   $0x1,-0x18(%rbp)
L125:
  cmpl   $0x8,-0xc(%rbp)
  jne    L15
  addl   $0x1,-0x14(%rbp)
L15:
  cmpl   $0x9,-0xc(%rbp)
  jne    L27
  addl   $0x1,-0x10(%rbp)
L27:
  mov    -0x38(%rbp),%eax
  test   %eax,%eax
  jne    L25
  mov    -0x34(%rbp),%eax
  mov    %eax,%esi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D105(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D100(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L108
  call   <__stack_chk_fail@plt>
L108:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D55
datatype: string
name: retrieve_data
arguments: tag: D25
datatype: string
name: retrieve_data
arguments: tag: D7
datatype: string
name: retrieve_data
arguments: tag: D105
datatype: string
name: retrieve_data
arguments: tag: D53
datatype: string
name: retrieve_data
arguments: tag: D13
datatype: string
name: retrieve_data
arguments: tag: D49
datatype: string
name: retrieve_data
arguments: tag: D76
datatype: string
name: retrieve_data
arguments: tag: D1
datatype: string
name: retrieve_data
arguments: tag: D51
datatype: string
name: retrieve_data
arguments: tag: D100
datatype: string

tool: D55: %d

tool: D25: cifrata 0 se sreshta %d puti


tool: D7: cifrata 1 se sreshta %d puti


tool: D105: cifrata 2 se sreshta %d puti


tool: D53: cifrata 3 se sreshta %d puti


tool: D13: cifrata 4 se sreshta %d puti


tool: D49: cifrata 5 se sreshta %d puti


tool: D76: cifrata 6 se sreshta %d puti


tool: D1: cifrata 7 se sreshta %d puti


tool: D51: cifrata 8 se sreshta %d puti


tool: D100: cifrata 9 se sreshta %d puti


assistant: ```c
int main() {
  int n = 0, i = 0;
  int number0 = 0, number1 = 0, number2 = 0, number3 = 0, number4 = 0, number5 = 0, number6 = 0, number7 = 0, number8 = 0, number9 = 0;
  scanf("%d", &n);
  while (n != 0) {
    i = n % 10;
    n = n / 10;
    if (i == 0) {
      number0++;
    }
    if (i == 1) {
      number1++;
    }
    if (i == 2) {
      number2++;
    }
    if (i == 3) {
      number3++;
    }
    if (i == 4) {
      number4++;
    }
    if (i == 5) {
      number5++;
    }
    if (i == 6) {
      number6++;
    }
    if (i == 7) {
      number7++;
    }
    if (i == 8) {
      number8++;
    }
    if (i == 9) {
      number9++;
    }
  }
  printf("cifrata 0 se sreshta %d puti\n", number0);
  printf("cifrata 1 se sreshta %d puti\n", number1);
  printf("cifrata 2 se sreshta %d puti\n", number2);
  printf("cifrata 3 se sreshta %d puti\n", number3);
  printf("cifrata 4 se sreshta %d puti\n", number4);
  printf("cifrata 5 se sreshta %d puti\n", number5);
  printf("cifrata 6 se sreshta %d puti\n", number6);
  printf("cifrata 7 se sreshta %d puti\n", number7);
  printf("cifrata 8 se sreshta %d puti\n", number8);
  printf("cifrata 9 se sreshta %d puti\n", number9);
  return 0;
}
```