user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D19(%rip),%r15
  push   %r14
  lea    D57(%rip),%r14
  push   %r13
  lea    D52(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x1,0x4(%rsp)
  lea    0x4(%rsp),%r12
  cs nopw 0x0(%rax,%rax,1)
L89:
  xor    %eax,%eax
  call   <clrscr@plt>
  xor    %eax,%eax
  call   <divider@plt>
  mov    %r15,%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  xor    %eax,%eax
  call   <rollDice@plt>
  mov    %eax,%ebp
  lea    -0x7(%rax),%eax
  and    $0xfffffffb,%eax
  je     L29
  lea    -0x2(%rbp),%eax
  cmp    $0x1,%eax
  jbe    L26
  cmp    $0xc,%ebp
  je     L26
  test   %ebp,%ebp
  je     L29
  nopl   0x0(%rax)
L91:
  xor    %eax,%eax
  call   <rollDice@plt>
  cmp    %eax,%ebp
  je     L29
  cmp    $0x7,%eax
  jne    L91
  cmp    %eax,%ebp
  je     L29
L26:
  xor    %eax,%eax
  sub    $0x1,%ebx
  call   <divider@plt>
  lea    D0(%rip),%rdi
  call   <puts@plt>
L57:
  xor    %eax,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  mov    %ebx,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D38(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x1,0x4(%rsp)
  je     L89
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L29:
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <divider@plt>
  lea    D29(%rip),%rdi
  call   <puts@plt>
  jmp    L57
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D19
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D57
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D52
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D0
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D38
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D29
type_guessed: string

tool: D19: Bet: $1

tool: D57: Winnings: $%d


tool: D52: Would you like to continue? (1 = yes, 0 = no) 

tool: D0: You lose.

tool: D38: %d

tool: D29: You win!

assistant: ```c
void main() {
  int cont = 1;
  int points, roll;
  int winnings = 0;
  while (cont == 1) {
    clrscr();
    divider();
    printf("Bet: $1\n");
    divider();
    sleep((unsigned int)1);
    roll = rollDice();
    if ((roll == 7) || (roll == 11)) {
      winnings += 1;
      divider();
      printf("You win!\n");
    } else if ((roll == 2) || (roll == 3) || (roll == 12)) {
      winnings -= 1;
      divider();
      printf("You lose.\n");
    } else {
      points = roll;
      roll = 0;
      while ((roll != points) && (roll != 7)) {
        roll = rollDice();
      }
      if (roll == points) {
        winnings += 1;
        divider();
        printf("You win!\n");
      } else {
        winnings -= 1;
        divider();
        printf("You lose.\n");
      }
    }
    divider();
    sleep((unsigned int)1);
    printf("Winnings: $%d\n", winnings);
    divider();
    sleep((unsigned int)1);
    printf("Would you like to continue? (1 = yes, 0 = no) ");
    scanf("%d", &cont);
  }
}
```