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

```asm
<play_game>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  xor    %edi,%edi
  push   %r14
  push   %r13
  lea    D54(%rip),%r13
  push   %r12
  lea    D37(%rip),%r12
  push   %rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movl   $0x0,0x30(%rsp)
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  nopl   (%rax)
L122:
  xor    %eax,%eax
  call   <getchar@plt>
  cmp    $0xa,%al
  jne    L122
  xor    %eax,%eax
  call   <roll_dice@plt>
  mov    %eax,%ebp
  cmp    $0xb,%eax
  je     L15
  jg     L8
  cmp    $0x3,%eax
  jg     L50
  cmp    $0x1,%eax
  jg     L111
L94:
  movslq %ebp,%r15
  mov    %ebp,%esi
  mov    (%rsp,%r15,4),%r14d
  cmp    $0x1,%r14d
  je     L21
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movl   $0x1,(%rsp,%r15,4)
  jmp    L122
  nopl   0x0(%rax,%rax,1)
L8:
  cmp    $0xc,%eax
  jne    L94
L111:
  mov    %ebp,%esi
  lea    D85(%rip),%rdi
L97:
  xor    %eax,%eax
  xor    %r14d,%r14d
  call   <printf@plt>
  lea    D89(%rip),%rdi
  call   <puts@plt>
L60:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x48,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L50:
  cmp    $0x7,%eax
  jne    L94
L15:
  cmp    $0x1,%ebx
  jne    L59
  mov    %ebp,%esi
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  mov    $0x1,%r14d
  call   <printf@plt>
  lea    D21(%rip),%rdi
  call   <puts@plt>
  jmp    L60
L21:
  lea    D54(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D21(%rip),%rdi
  call   <puts@plt>
  jmp    L60
L59:
  mov    %ebp,%esi
  lea    D70(%rip),%rdi
  jmp    L97
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D54
data_type: string
name: unpack_data
arguments: data_label: D37
data_type: string
name: unpack_data
arguments: data_label: D85
data_type: string
name: unpack_data
arguments: data_label: D89
data_type: string
name: unpack_data
arguments: data_label: D55
data_type: string
name: unpack_data
arguments: data_label: D21
data_type: string
name: unpack_data
arguments: data_label: D70
data_type: string

tool: D54: you rolled %d


tool: D37: you point is %d


tool: D85: you rolled: %d



tool: D89: you lose

tool: D55: you rolled %d on first roll.



tool: D21: you win

tool: D70: you rolled %d more than once


assistant: ```c
bool play_game() {
  int trial, sum;
  bool points_table[6 + 6 + 1] = {0};
  srand((unsigned)time(NULL));
  for (trial = 1;; trial++) {
    while (getchar() != '\n') {
    }
    sum = roll_dice();
    switch (sum) {
    case 2:
    case 3:
    case 12: {
      printf("you rolled: %d\n\n", sum);
      printf("you lose\n");
      return false;
    }
    case 7:
    case 11: {
      if (trial == 1) {
        printf("you rolled %d on first roll.\n\n", sum);
        printf("you win\n");
        return true;
      } else if ((sum == 7 || sum == 11) && trial != 1) {
        printf("you rolled %d more than once\n", sum);
        printf("you lose\n");
        return false;
      }
    }
    default: {
      if (points_table[sum] == true) {
        printf("you rolled %d\n", sum);
        printf("you win\n");
        return true;
      } else {
        printf("you rolled %d\n", sum);
        printf("you point is %d\n", sum);
        points_table[sum] = true;
      }
    }
    }
  }
}
```