user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x1,0x4(%rsp)
  mov    $0x0,%ebp
  lea    D33(%rip),%r13
  lea    D22(%rip),%r14
  lea    D39(%rip),%r15
  lea    D56(%rip),%r12
  jmp    L4
L76:
  add    $0x1,%ebp
  mov    $0x0,%eax
  call   <divider@plt>
  mov    %r15,%rdi
  call   <puts@plt>
  jmp    L38
L29:
  sub    $0x1,%ebp
  mov    $0x0,%eax
  call   <divider@plt>
  mov    %r14,%rdi
  call   <puts@plt>
L38:
  mov    $0x0,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  lea    D17(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D16(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x1,0x4(%rsp)
  jne    L47
L4:
  mov    $0x0,%eax
  call   <clrscr@plt>
  mov    $0x0,%eax
  call   <divider@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <divider@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  mov    $0x0,%eax
  call   <rollDice@plt>
  mov    %eax,%ebx
  lea    -0x7(%rax),%eax
  test   $0xfffffffb,%eax
  je     L76
  lea    -0x2(%rbx),%eax
  cmp    $0x1,%eax
  jbe    L29
  cmp    $0xc,%ebx
  je     L29
  test   %ebx,%ebx
  je     L79
L89:
  mov    $0x0,%eax
  call   <rollDice@plt>
  cmp    %eax,%ebx
  je     L109
  cmp    $0x7,%eax
  jne    L89
L109:
  cmp    %eax,%ebx
  je     L79
  sub    $0x1,%ebp
  mov    $0x0,%eax
  call   <divider@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L38
L79:
  add    $0x1,%ebp
  mov    $0x0,%eax
  call   <divider@plt>
  mov    %r15,%rdi
  call   <puts@plt>
  jmp    L38
L47:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D33
type: string
name: unpack_data
arguments: tag: D22
type: string
name: unpack_data
arguments: tag: D39
type: string
name: unpack_data
arguments: tag: D56
type: string
name: unpack_data
arguments: tag: D17
type: string
name: unpack_data
arguments: tag: D16
type: string

tool: D33: Bet: $1

tool: D22: You lose.

tool: D39: You win!

tool: D56: Winnings: $%d


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

tool: D16: %d

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);
  }
}
```