user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x64(%rbp)
  lea    D150(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D232(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L132
L2:
  lea    -0x44(%rbp),%rax
  mov    %rax,%rsi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D107(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L130
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D1(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L130
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D275(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L317
L130:
  movl   $0x1,-0x64(%rbp)
L317:
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D208(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L84
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D40(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L84
  lea    -0x44(%rbp),%rax
  mov    $0x4,%edx
  lea    D157(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L279
L84:
  movl   $0xffffffff,-0x64(%rbp)
L279:
  cmpl   $0x0,-0x64(%rbp)
  jne    L132
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L132:
  cmpl   $0x0,-0x64(%rbp)
  je     L2
  cmpl   $0xffffffff,-0x64(%rbp)
  jne    L174
  lea    D273(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L129
L174:
  movl   $0x1,-0x60(%rbp)
  lea    D245(%rip),%rax
  mov    %rax,%rsi
  lea    D249(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x50(%rbp)
  cmpq   $0x0,-0x50(%rbp)
  je     L192
  jmp    L176
L89:
  movl   $0x0,-0x5c(%rbp)
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x50(%rbp),%rdx
  lea    -0x6c(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x50(%rbp),%rdx
  lea    -0x68(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  mov    -0x58(%rbp),%ecx
  mov    %eax,%esi
  lea    D239(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x7,-0x58(%rbp)
  je     L262
  cmpl   $0xb,-0x58(%rbp)
  jne    L154
L262:
  movl   $0x1,-0x5c(%rbp)
L154:
  cmpl   $0x2,-0x58(%rbp)
  je     L33
  cmpl   $0x3,-0x58(%rbp)
  je     L33
  cmpl   $0xc,-0x58(%rbp)
  jne    L111
L33:
  movl   $0xffffffff,-0x5c(%rbp)
  jmp    L111
L354:
  mov    -0x50(%rbp),%rdx
  lea    -0x6c(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x50(%rbp),%rdx
  lea    -0x68(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%eax
  mov    -0x54(%rbp),%ecx
  mov    %eax,%esi
  lea    D298(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x7,-0x54(%rbp)
  jne    L14
  movl   $0xffffffff,-0x5c(%rbp)
L14:
  mov    -0x54(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jne    L111
  movl   $0x1,-0x5c(%rbp)
L111:
  cmpl   $0x0,-0x5c(%rbp)
  je     L354
  cmpl   $0x1,-0x5c(%rbp)
  jne    L315
  lea    D269(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L315:
  cmpl   $0xffffffff,-0x5c(%rbp)
  jne    L285
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L285:
  lea    D228(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x60(%rbp)
  jmp    L50
L245:
  lea    -0x47(%rbp),%rax
  mov    %rax,%rsi
  lea    D203(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x47(%rbp),%rax
  mov    $0x2,%edx
  lea    D79(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L357
  lea    -0x47(%rbp),%rax
  mov    $0x2,%edx
  lea    D295(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L357
  lea    -0x47(%rbp),%rax
  mov    $0x2,%edx
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L65
L357:
  movl   $0xffffffff,-0x60(%rbp)
L65:
  lea    -0x47(%rbp),%rax
  mov    $0x3,%edx
  lea    D222(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L128
  lea    -0x47(%rbp),%rax
  mov    $0x3,%edx
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L128
  lea    -0x47(%rbp),%rax
  mov    $0x3,%edx
  lea    D123(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L211
L128:
  movl   $0x1,-0x60(%rbp)
L211:
  cmpl   $0x0,-0x60(%rbp)
  jne    L50
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L50:
  cmpl   $0x0,-0x60(%rbp)
  je     L245
L176:
  cmpl   $0x1,-0x60(%rbp)
  je     L89
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D264(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L129
L192:
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L129:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L93
  call   <__stack_chk_fail@plt>
L93:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D150
type: string
name: extract_symbolic_data
arguments: data_label: D87
type: string
name: extract_symbolic_data
arguments: data_label: D49
type: string
name: extract_symbolic_data
arguments: data_label: D232
type: string
name: extract_symbolic_data
arguments: data_label: D62
type: string
name: extract_symbolic_data
arguments: data_label: D107
type: string
name: extract_symbolic_data
arguments: data_label: D1
type: string
name: extract_symbolic_data
arguments: data_label: D275
type: string
name: extract_symbolic_data
arguments: data_label: D208
type: string
name: extract_symbolic_data
arguments: data_label: D40
type: string
name: extract_symbolic_data
arguments: data_label: D157
type: string
name: extract_symbolic_data
arguments: data_label: D45
type: string
name: extract_symbolic_data
arguments: data_label: D273
type: string
name: extract_symbolic_data
arguments: data_label: D245
type: string
name: extract_symbolic_data
arguments: data_label: D249
type: string
name: extract_symbolic_data
arguments: data_label: D239
type: string
name: extract_symbolic_data
arguments: data_label: D298
type: string
name: extract_symbolic_data
arguments: data_label: D269
type: string
name: extract_symbolic_data
arguments: data_label: D116
type: string
name: extract_symbolic_data
arguments: data_label: D228
type: string
name: extract_symbolic_data
arguments: data_label: D203
type: string
name: extract_symbolic_data
arguments: data_label: D79
type: string
name: extract_symbolic_data
arguments: data_label: D295
type: string
name: extract_symbolic_data
arguments: data_label: D6
type: string
name: extract_symbolic_data
arguments: data_label: D222
type: string
name: extract_symbolic_data
arguments: data_label: D18
type: string
name: extract_symbolic_data
arguments: data_label: D123
type: string
name: extract_symbolic_data
arguments: data_label: D264
type: string
name: extract_symbolic_data
arguments: data_label: D38
type: string

tool: D150: Welcome to Bryan's Casino!

tool: D87: Please enter your name: 

tool: D49: %50s

tool: D232: %s, would you like to Play or Quit?: 

tool: D62: %4s

tool: D107: play

tool: D1: Play

tool: D275: PLAY

tool: D208: quit

tool: D40: Quit

tool: D157: QUIT

tool: D45: 
You have entered an invalid input, please try again: 

tool: D273: 
You chose to quit! Goodbye!

tool: D245: r

tool: D249: /dev/dice

tool: D239: You first rolled a: %d + %d = %d


tool: D298: Your next roll was: %d + %d = %d


tool: D269: You WIN!


tool: D116: Sorry, you lost.


tool: D228: Would you like to play again? (yes/no): 

tool: D203: %3s

tool: D79: no

tool: D295: No

tool: D6: NO

tool: D222: yes

tool: D18: Yes

tool: D123: YES

tool: D264: Goodbye %s! Hope to see you soon.



tool: D38: Unable to open the dice module, ensure it is installed.

assistant: ```c
int main() {
  int dice_roll1;
  int dice_roll2;
  int dice_total;
  int point;
  int play_flag;
  int play_again_flag;
  int win_lose_flag;
  char name_buffer[50];
  char play_buffer[4];
  char again_buffer[3];
  play_flag = 0;
  printf("Welcome to Bryan's Casino!\n");
  printf("Please enter your name: ");
  scanf("%50s", name_buffer);
  printf("%s, would you like to Play or Quit?: ");
  while (play_flag == 0) {
    scanf("%4s", play_buffer);
    if (strncmp(play_buffer, "play", 4) == 0 || strncmp(play_buffer, "Play", 4) == 0 || strncmp(play_buffer, "PLAY", 4) == 0)
      play_flag = 1;
    if (strncmp(play_buffer, "quit", 4) == 0 || strncmp(play_buffer, "Quit", 4) == 0 || strncmp(play_buffer, "QUIT", 4) == 0)
      play_flag = -1;
    if (play_flag == 0)
      printf("\nYou have entered an invalid input, please try again: ");
  }
  if (play_flag == -1) {
    printf("\nYou chose to quit! Goodbye!\n");
    return 0;
  }
  play_again_flag = 1;
  FILE *fd = fopen("/dev/dice", "r");
  if (fd != NULL) {
    while (play_again_flag == 1) {
      win_lose_flag = 0;
      printf("\n");
      fread(&dice_roll1, sizeof(char), 1, fd);
      fread(&dice_roll2, sizeof(char), 1, fd);
      dice_total = dice_roll1 + dice_roll2;
      printf("You first rolled a: %d + %d = %d\n", dice_roll1, dice_roll2, dice_total);
      if (dice_total == 7 || dice_total == 11)
        win_lose_flag = 1;
      if (dice_total == 2 || dice_total == 3 || dice_total == 12)
        win_lose_flag = -1;
      while (win_lose_flag == 0) {
        fread(&dice_roll1, sizeof(char), 1, fd);
        fread(&dice_roll2, sizeof(char), 1, fd);
        point = dice_roll1 + dice_roll2;
        printf("Your next roll was: %d + %d = %d\n", dice_roll1, dice_roll2, point);
        if (point == 7)
          win_lose_flag = -1;
        if (point == dice_total)
          win_lose_flag = 1;
      }
      if (win_lose_flag == 1)
        printf("You WIN!\n\n");
      if (win_lose_flag == -1)
        printf("Sorry, you lost.\n\n");
      printf("Would you like to play again? (yes/no): ");
      play_again_flag = 0;
      while (play_again_flag == 0) {
        scanf("%3s", again_buffer);
        if (strncmp(again_buffer, "no", 2) == 0 || strncmp(again_buffer, "No", 2) == 0 || strncmp(again_buffer, "NO", 2) == 0)
          play_again_flag = -1;
        if (strncmp(again_buffer, "yes", 3) == 0 || strncmp(again_buffer, "Yes", 3) == 0 || strncmp(again_buffer, "YES", 3) == 0)
          play_again_flag = 1;
        if (play_again_flag == 0)
          printf("\nYou have entered an invalid input, please try again: ");
      }
    }
    printf("Goodbye %s! Hope to see you soon.\n\n", name_buffer);
    return 0;
  } else
    printf("Unable to open the dice module, ensure it is installed.");
}
```