user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  lea    D79(%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
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    0x14(%rsp),%ecx
  xor    %r8d,%r8d
  xor    %r9d,%r9d
  xor    %r10d,%r10d
  xor    %r11d,%r11d
  mov    $0xcccccccd,%esi
  test   %ecx,%ecx
  jg     L66
  jmp    L177
  xchg   %ax,%ax
L106:
  add    $0x1,%r11d
  nopl   0x0(%rax)
L82:
  imul   %rsi,%rdx
  shr    $0x23,%rdx
  cmp    $0x9,%ecx
  jle    L81
L151:
  mov    %edx,%ecx
L66:
  mov    %ecx,%edx
  mov    %rdx,%rax
  imul   %rsi,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%edi
  mov    %ecx,%eax
  add    %edi,%edi
  sub    %edi,%eax
  je     L106
  cmp    $0x1,%eax
  jne    L85
  imul   %rsi,%rdx
  add    $0x1,%r10d
  shr    $0x23,%rdx
  cmp    $0x9,%ecx
  jg     L151
L81:
  mov    %edx,0x14(%rsp)
L177:
  mov    %r11d,%esi
  lea    D57(%rip),%rdi
  mov    %r8d,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D87(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D45(%rip),%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D25(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D72(%rip),%rdi
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D89(%rip),%rdi
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D54(%rip),%rdi
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D81(%rip),%rdi
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D46(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D94(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L85:
  cmp    $0x2,%eax
  jne    L36
  add    $0x1,%r9d
  jmp    L82
L36:
  cmp    $0x3,%eax
  jne    L191
  add    $0x1,%r8d
  jmp    L82
L191:
  cmp    $0x4,%eax
  jne    L104
  add    $0x1,%ebx
  jmp    L82
L104:
  cmp    $0x5,%eax
  jne    L62
  add    $0x1,%r15d
  jmp    L82
L62:
  cmp    $0x6,%eax
  jne    L19
  add    $0x1,%r14d
  jmp    L82
L19:
  cmp    $0x7,%eax
  jne    L44
  add    $0x1,%r13d
  jmp    L82
L44:
  cmp    $0x8,%eax
  jne    L54
  add    $0x1,%r12d
  jmp    L82
L54:
  cmp    $0x9,%eax
  jne    L82
  add    $0x1,%ebp
  jmp    L82
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D79
type: string
name: unpack_data
arguments: data_tag: D57
type: string
name: unpack_data
arguments: data_tag: D87
type: string
name: unpack_data
arguments: data_tag: D45
type: string
name: unpack_data
arguments: data_tag: D25
type: string
name: unpack_data
arguments: data_tag: D72
type: string
name: unpack_data
arguments: data_tag: D89
type: string
name: unpack_data
arguments: data_tag: D54
type: string
name: unpack_data
arguments: data_tag: D81
type: string
name: unpack_data
arguments: data_tag: D46
type: string
name: unpack_data
arguments: data_tag: D94
type: string

tool: D79: %d

tool: D57: 
 0li = %d

tool: D87: 
 1ci = %d

tool: D45: 
 2ki = %d

tool: D25: 
 3ki = %d

tool: D72: 
 4ki = %d

tool: D89: 
 5ci = %d

tool: D54: 
 6ci = %d

tool: D81: 
 7ci = %d

tool: D46: 
 8ci = %d

tool: D94: 
 9ki = %d

assistant: ```c
int main() {
  int n, v;
  int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, k = 0, l = 0;
  scanf("%d", &n);
  while (n > 0) {
    v = n % 10;
    if (v == 0)
      a++;
    if (v == 1)
      b++;
    if (v == 2)
      c++;
    if (v == 3)
      d++;
    if (v == 4)
      e++;
    if (v == 5)
      f++;
    if (v == 6)
      g++;
    if (v == 7)
      h++;
    if (v == 8)
      k++;
    if (v == 9)
      l++;
    n = n / 10;
  }
  printf("\n 0li = %d", a);
  printf("\n 1ci = %d", b);
  printf("\n 2ki = %d", c);
  printf("\n 3ki = %d", d);
  printf("\n 4ki = %d", e);
  printf("\n 5ci = %d", f);
  printf("\n 6ci = %d", g);
  printf("\n 7ci = %d", h);
  printf("\n 8ci = %d", k);
  printf("\n 9ki = %d", l);
}
```