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

```asm
<main>:
  endbr64
  push   %r15
  lea    D16(%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    D41(%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    L184
  jmp    L125
  nopl   0x0(%rax)
L69:
  add    $0x1,%esi
  nopl   0x0(%rax,%rax,1)
L209:
  test   %eax,%eax
  je     L210
L184:
  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     L69
  cmp    $0x1,%ecx
  jne    L130
  add    $0x1,%r10d
  test   %eax,%eax
  jne    L184
L210:
  movl   $0x0,0x14(%rsp)
L125:
  lea    D8(%rip),%rdi
  xor    %eax,%eax
  mov    %r8d,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D78(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D37(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D24(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D76(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D107(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D88(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D20(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L166
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L130:
  cmp    $0x2,%ecx
  jne    L216
  add    $0x1,%r9d
  jmp    L209
L216:
  cmp    $0x3,%ecx
  jne    L65
  add    $0x1,%r8d
  jmp    L209
L65:
  cmp    $0x4,%ecx
  jne    L39
  add    $0x1,%ebx
  jmp    L209
L39:
  cmp    $0x5,%ecx
  jne    L121
  add    $0x1,%r15d
  jmp    L209
L121:
  cmp    $0x6,%ecx
  jne    L107
  add    $0x1,%r14d
  jmp    L209
L107:
  cmp    $0x7,%ecx
  jne    L212
  add    $0x1,%r13d
  jmp    L209
L212:
  cmp    $0x8,%ecx
  jne    L211
  add    $0x1,%r12d
  jmp    L209
L211:
  cmp    $0x9,%ecx
  jne    L209
  add    $0x1,%ebp
  jmp    L209
L166:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D16
type_infered: string
name: unpack_data
arguments: label: D41
type_infered: string
name: unpack_data
arguments: label: D8
type_infered: string
name: unpack_data
arguments: label: D51
type_infered: string
name: unpack_data
arguments: label: D27
type_infered: string
name: unpack_data
arguments: label: D78
type_infered: string
name: unpack_data
arguments: label: D37
type_infered: string
name: unpack_data
arguments: label: D24
type_infered: string
name: unpack_data
arguments: label: D76
type_infered: string
name: unpack_data
arguments: label: D107
type_infered: string
name: unpack_data
arguments: label: D88
type_infered: string
name: unpack_data
arguments: label: D20
type_infered: string

tool: D16: 
 Vuvedi chislo:

tool: D41: %d

tool: D8: 
broi 0: %d

tool: D51: 
broi 1: %d

tool: D27: 
broi 2: %d

tool: D78: 
broi 3: %d

tool: D37: 
broi 4: %d

tool: D24: 
broi 5: %d

tool: D76: 
broi 6: %d

tool: D107: 
broi 7: %d

tool: D88: 
broi 8: %d

tool: D20: 
broi 9: %d

assistant: ```c
int main() {
  int n = 0, i = 0;
  int br0 = 0, br1 = 0, br2 = 0, br3 = 0, br4 = 0, br5 = 0, br6 = 0, br7 = 0, br8 = 0, br9 = 0;
  printf("\n Vuvedi chislo:");
  scanf("%d", &n);
  while (n != 0) {
    i = n % 10;
    n = n / 10;
    if (i == 0) {
      br0++;
    }
    if (i == 1) {
      br1++;
    }
    if (i == 2) {
      br2++;
    }
    if (i == 3) {
      br3++;
    }
    if (i == 4) {
      br4++;
    }
    if (i == 5) {
      br5++;
    }
    if (i == 6) {
      br6++;
    }
    if (i == 7) {
      br7++;
    }
    if (i == 8) {
      br8++;
    }
    if (i == 9) {
      br9++;
    }
  }
  printf("\nbroi 0: %d", br0);
  printf("\nbroi 1: %d", br1);
  printf("\nbroi 2: %d", br2);
  printf("\nbroi 3: %d", br3);
  printf("\nbroi 4: %d", br4);
  printf("\nbroi 5: %d", br5);
  printf("\nbroi 6: %d", br6);
  printf("\nbroi 7: %d", br7);
  printf("\nbroi 8: %d", br8);
  printf("\nbroi 9: %d", br9);
  return 0;
}
```