user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x14(%rsp)
  lea    0x14(%rsp),%rsi
  lea    D44(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  test   %edx,%edx
  je     L158
  movl   $0x0,0x4(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  mov    $0x0,%ebx
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  mov    $0x0,%edi
  jmp    L84
L119:
  cmp    $0x1,%eax
  jne    L66
  add    $0x1,%r15d
L37:
  cmp    $0x4,%eax
  jne    L65
  add    $0x1,%r12d
L108:
  cmp    $0x7,%eax
  jne    L10
  addl   $0x1,0x8(%rsp)
L131:
  test   %esi,%esi
  je     L143
L84:
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%esi
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %esi,%edx
  jne    L119
  add    $0x1,%edi
L14:
  cmp    $0x3,%eax
  jne    L37
  add    $0x1,%r13d
L128:
  cmp    $0x6,%eax
  jne    L108
  add    $0x1,%ebx
L13:
  cmp    $0x9,%eax
  jne    L131
  addl   $0x1,0x4(%rsp)
  jmp    L131
L66:
  cmp    $0x2,%eax
  jne    L14
  add    $0x1,%r14d
L65:
  cmp    $0x5,%eax
  jne    L128
  add    $0x1,%ebp
L10:
  cmp    $0x8,%eax
  jne    L13
  addl   $0x1,0xc(%rsp)
  jmp    L131
L143:
  movl   $0x0,0x14(%rsp)
L51:
  mov    %edi,%esi
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D76(%rip),%rdi
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D39(%rip),%rdi
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D66(%rip),%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D96(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D37(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D95(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D56(%rip),%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D104(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D69(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L158:
  mov    %edx,0x4(%rsp)
  mov    %edx,0xc(%rsp)
  mov    %edx,0x8(%rsp)
  mov    %edx,%ebx
  mov    %edx,%ebp
  mov    %edx,%r12d
  mov    %edx,%r13d
  mov    %edx,%r14d
  mov    %edx,%r15d
  mov    %edx,%edi
  jmp    L51
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D44
type_infered: string
name: disassemble_data
arguments: label: D6
type_infered: string
name: disassemble_data
arguments: label: D76
type_infered: string
name: disassemble_data
arguments: label: D39
type_infered: string
name: disassemble_data
arguments: label: D66
type_infered: string
name: disassemble_data
arguments: label: D96
type_infered: string
name: disassemble_data
arguments: label: D37
type_infered: string
name: disassemble_data
arguments: label: D95
type_infered: string
name: disassemble_data
arguments: label: D56
type_infered: string
name: disassemble_data
arguments: label: D104
type_infered: string
name: disassemble_data
arguments: label: D69
type_infered: string

tool: D44: %d

tool: D6: cifrata 0 se sreshta %d puti


tool: D76: cifrata 1 se sreshta %d puti


tool: D39: cifrata 2 se sreshta %d puti


tool: D66: cifrata 3 se sreshta %d puti


tool: D96: cifrata 4 se sreshta %d puti


tool: D37: cifrata 5 se sreshta %d puti


tool: D95: cifrata 6 se sreshta %d puti


tool: D56: cifrata 7 se sreshta %d puti


tool: D104: cifrata 8 se sreshta %d puti


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