user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r15
  lea    D12(%rip),%rdi
  xor    %r15d,%r15d
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x14(%rsp)
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D39(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  xor    %r10d,%r10d
  xor    %esi,%esi
  test   %edx,%edx
  jne    L67
  jmp    L212
  nopl   0x0(%rax)
L193:
  add    $0x1,%esi
  nopl   0x0(%rax,%rax,1)
L200:
  test   %eax,%eax
  je     L144
L67:
  movslq %edx,%rax
  mov    %edx,%ecx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%ecx
  sar    $0x22,%rax
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%edi
  add    %edi,%edi
  sub    %edi,%edx
  mov    %edx,%ecx
  mov    %eax,%edx
  je     L193
  cmp    $0x1,%ecx
  jne    L91
  add    $0x1,%r10d
  test   %eax,%eax
  jne    L67
L144:
  movl   $0x0,0x14(%rsp)
L212:
  lea    D66(%rip),%rdi
  xor    %eax,%eax
  mov    %r8d,0xc(%rsp)
  mov    %r9d,0x8(%rsp)
  mov    %r10d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D65(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D6(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D69(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D114(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D94(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D91(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D83(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D107(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L91:
  cmp    $0x2,%ecx
  jne    L4
  add    $0x1,%r9d
  jmp    L200
L4:
  cmp    $0x3,%ecx
  jne    L204
  add    $0x1,%r8d
  jmp    L200
L204:
  cmp    $0x4,%ecx
  jne    L1
  add    $0x1,%ebx
  jmp    L200
L1:
  cmp    $0x5,%ecx
  jne    L66
  add    $0x1,%r15d
  jmp    L200
L66:
  cmp    $0x6,%ecx
  jne    L182
  add    $0x1,%r14d
  jmp    L200
L182:
  cmp    $0x7,%ecx
  jne    L78
  add    $0x1,%r13d
  jmp    L200
L78:
  cmp    $0x8,%ecx
  jne    L214
  add    $0x1,%r12d
  jmp    L200
L214:
  cmp    $0x9,%ecx
  jne    L200
  add    $0x1,%ebp
  jmp    L200
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D12
type: string
name: disassemble_data
arguments: data_label: D39
type: string
name: disassemble_data
arguments: data_label: D66
type: string
name: disassemble_data
arguments: data_label: D17
type: string
name: disassemble_data
arguments: data_label: D65
type: string
name: disassemble_data
arguments: data_label: D6
type: string
name: disassemble_data
arguments: data_label: D69
type: string
name: disassemble_data
arguments: data_label: D114
type: string
name: disassemble_data
arguments: data_label: D94
type: string
name: disassemble_data
arguments: data_label: D91
type: string
name: disassemble_data
arguments: data_label: D83
type: string
name: disassemble_data
arguments: data_label: D107
type: string

tool: D12: Input number:

tool: D39: %d

tool: D66: 
 Number of digit zero: %d

tool: D17: 
 Number of digit one: %d

tool: D65: 
 Number of digit two: %d

tool: D6: 
 Number of digit three: %d

tool: D69: 
 Number of digit four: %d

tool: D114: 
 Number of digit five: %d

tool: D94: 
 Number of digit six: %d

tool: D91: 
 Number of digit seven: %d

tool: D83: 
 Number of digit eight: %d

tool: D107: 
 Number of digit nine: %d

assistant: ```c
void main(void) {
  int x = 0, y = 0, zero = 0, one = 0, two = 0, three = 0, four = 0, five = 0, six = 0, seven = 0, eight = 0, nine = 0;
  printf("Input number:");
  scanf("%d", &x);
  while (x != 0) {
    y = x % 10;
    x = x / 10;
    if (y == 0)
      zero++;
    if (y == 1)
      one++;
    if (y == 2)
      two++;
    if (y == 3)
      three++;
    if (y == 4)
      four++;
    if (y == 5)
      five++;
    if (y == 6)
      six++;
    if (y == 7)
      seven++;
    if (y == 8)
      eight++;
    if (y == 9)
      nine++;
  }
  printf("\n Number of digit zero: %d", zero);
  printf("\n Number of digit one: %d", one);
  printf("\n Number of digit two: %d", two);
  printf("\n Number of digit three: %d", three);
  printf("\n Number of digit four: %d", four);
  printf("\n Number of digit five: %d", five);
  printf("\n Number of digit six: %d", six);
  printf("\n Number of digit seven: %d", seven);
  printf("\n Number of digit eight: %d", eight);
  printf("\n Number of digit nine: %d", nine);
}
```