user: Converte this assembly snippet into its equivalent C code:

```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
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  lea    D83(%rip),%rdi
  call   <puts@plt>
  lea    0x14(%rsp),%rsi
  lea    D7(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0x14(%rsp)
  jle    L35
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  lea    D26(%rip),%rbp
  jmp    L41
L44:
  add    $0x1,%r12d
L73:
  add    $0x1,%ebx
  cmp    %ebx,0x14(%rsp)
  jle    L21
L41:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,2),%ecx
  add    %ecx,%ecx
  sub    %ecx,%eax
  je     L44
  cmp    $0x5,%eax
  ja     L73
  mov    %eax,%edx
  movslq 0x0(%rbp,%rdx,4),%rax
  add    %rbp,%rax
  notrack jmp *%rax
  add    $0x1,%r15d
  jmp    L73
  add    $0x1,%r14d
  jmp    L73
  add    $0x1,%r13d
  jmp    L73
  addl   $0x1,0x8(%rsp)
  jmp    L73
  addl   $0x1,0xc(%rsp)
  jmp    L73
L35:
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  mov    $0x0,%r13d
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  mov    $0x0,%r12d
L21:
  mov    %r12d,%esi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15d,%esi
  lea    D56(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D64(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13d,%esi
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D83
type_infered: string
name: extract_symbolic_data
arguments: label: D7
type_infered: string
name: extract_symbolic_data
arguments: label: D8
type_infered: string
name: extract_symbolic_data
arguments: label: D56
type_infered: string
name: extract_symbolic_data
arguments: label: D64
type_infered: string
name: extract_symbolic_data
arguments: label: D72
type_infered: string
name: extract_symbolic_data
arguments: label: D87
type_infered: string
name: extract_symbolic_data
arguments: label: D6
type_infered: string

tool: D83:  How many times you want to roll a die?

tool: D7: %d

tool: D8: Ones = %d


tool: D56: Twos = %d


tool: D64: Threes = %d


tool: D72: Fours = %d


tool: D87: Fives = %d


tool: D6: Sixes = %d


assistant: ```c
int main() {
  int x;
  int counter = 0;
  int roll;
  int ones = 0;
  int twos = 0;
  int threes = 0;
  int fours = 0;
  int fives = 0;
  int sixes = 0;
  srand(time(NULL));
  printf(" How many times you want to roll a die?\n");
  scanf("%d", &x);
  while (counter < x) {
    roll = rand() % 6 + 1;
    if (roll == 1) {
      ones++;
    } else if (roll == 2) {
      twos++;
    } else if (roll == 3) {
      threes++;
    } else if (roll == 4) {
      fours++;
    } else if (roll == 5) {
      fives++;
    } else if (roll == 6) {
      sixes++;
    }
    counter++;
  }
  printf("Ones = %d\n", ones);
  printf("Twos = %d\n", twos);
  printf("Threes = %d\n", threes);
  printf("Fours = %d\n", fours);
  printf("Fives = %d\n", fives);
  printf("Sixes = %d\n", sixes);
  return 0;
}
```