user: What would the C source look like for the assembly code provided here?

```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    D77(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D2(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  test   %edx,%edx
  je     L3
  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    L49
L69:
  cmp    $0x1,%eax
  jne    L72
  add    $0x1,%r15d
L27:
  cmp    $0x4,%eax
  jne    L68
  add    $0x1,%r12d
L132:
  cmp    $0x7,%eax
  jne    L143
  addl   $0x1,0x8(%rsp)
L74:
  test   %esi,%esi
  je     L20
L49:
  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    L69
  add    $0x1,%edi
L146:
  cmp    $0x3,%eax
  jne    L27
  add    $0x1,%r13d
L166:
  cmp    $0x6,%eax
  jne    L132
  add    $0x1,%ebx
L78:
  cmp    $0x9,%eax
  jne    L74
  addl   $0x1,0x4(%rsp)
  jmp    L74
L72:
  cmp    $0x2,%eax
  jne    L146
  add    $0x1,%r14d
L68:
  cmp    $0x5,%eax
  jne    L166
  add    $0x1,%ebp
L143:
  cmp    $0x8,%eax
  jne    L78
  addl   $0x1,0xc(%rsp)
  jmp    L74
L20:
  movl   $0x0,0x14(%rsp)
L43:
  mov    %edi,%esi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D74(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D60(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D12(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D38(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D109(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D94(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  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    L43
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D77
data_type: string
name: parse_data
arguments: label: D2
data_type: string
name: parse_data
arguments: label: D118
data_type: string
name: parse_data
arguments: label: D74
data_type: string
name: parse_data
arguments: label: D76
data_type: string
name: parse_data
arguments: label: D60
data_type: string
name: parse_data
arguments: label: D12
data_type: string
name: parse_data
arguments: label: D38
data_type: string
name: parse_data
arguments: label: D7
data_type: string
name: parse_data
arguments: label: D109
data_type: string
name: parse_data
arguments: label: D91
data_type: string
name: parse_data
arguments: label: D94
data_type: string

tool: D77: 
 Vuvedi chislo:

tool: D2: %d

tool: D118: 
broi 0: %d

tool: D74: 
broi 1: %d

tool: D76: 
broi 2: %d

tool: D60: 
broi 3: %d

tool: D12: 
broi 4: %d

tool: D38: 
broi 5: %d

tool: D7: 
broi 6: %d

tool: D109: 
broi 7: %d

tool: D91: 
broi 8: %d

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