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
  lea    0x14(%rsp),%rsi
  lea    D1(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  test   %edx,%edx
  je     L75
  movl   $0x0,(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0x4(%rsp)
  mov    $0x0,%ebp
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  mov    $0x0,%esi
  jmp    L108
L70:
  cmp    $0x1,%eax
  jne    L129
  add    $0x1,%r15d
L6:
  cmp    $0x4,%eax
  jne    L146
  add    $0x1,%r12d
L0:
  cmp    $0x7,%eax
  jne    L14
  addl   $0x1,0x8(%rsp)
L154:
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  mov    %eax,%edx
  je     L151
L108:
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  jne    L70
  add    $0x1,%esi
L92:
  cmp    $0x3,%eax
  jne    L6
  add    $0x1,%r13d
L114:
  cmp    $0x6,%eax
  jne    L0
  addl   $0x1,0x4(%rsp)
L130:
  cmp    $0x9,%eax
  jne    L154
  addl   $0x1,(%rsp)
  jmp    L154
L129:
  cmp    $0x2,%eax
  jne    L92
  add    $0x1,%r14d
L146:
  cmp    $0x5,%eax
  jne    L114
  add    $0x1,%ebp
L14:
  cmp    $0x8,%eax
  jne    L130
  addl   $0x1,0xc(%rsp)
  jmp    L154
L151:
  movl   $0x0,0x14(%rsp)
L32:
  lea    D10(%rip),%rbx
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r15d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r14d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r13d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    (%rsp),%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L75:
  mov    %edx,(%rsp)
  mov    %edx,0xc(%rsp)
  mov    %edx,0x8(%rsp)
  mov    %edx,0x4(%rsp)
  mov    %edx,%ebp
  mov    %edx,%r12d
  mov    %edx,%r13d
  mov    %edx,%r14d
  mov    %edx,%r15d
  mov    %edx,%esi
  jmp    L32
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D1
datatype: string
name: disassemble_data
arguments: data_label: D10
datatype: string

tool: D1: %d

tool: D10: 
%d

assistant: ```c
int main() {
  int x, n, a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0;
  scanf("%d", &n);
  while (n != 0) {
    x = n % 10;
    if (x == 0)
      a++;
    if (x == 1)
      b++;
    if (x == 2)
      c++;
    if (x == 3)
      d++;
    if (x == 4)
      e++;
    if (x == 5)
      f++;
    if (x == 6)
      g++;
    if (x == 7)
      h++;
    if (x == 8)
      i++;
    if (x == 9)
      j++;
    n = n / 10;
  }
  printf("\n%d", a);
  printf("\n%d", b);
  printf("\n%d", c);
  printf("\n%d", d);
  printf("\n%d", e);
  printf("\n%d", f);
  printf("\n%d", g);
  printf("\n%d", h);
  printf("\n%d", i);
  printf("\n%d", j);
  return 0;
}
```