// File: /workspace/github_cpp_makefile_star2_O3/tyhsu[P]Ewn/play.cpp
// Function: Play::player_AI_mode()
void Play::player_AI_mode()
{
    EwnAI ewnAI;
    this->game.print_board();
    while (1) {
        int dice = this->game.roll_dice();
        cout << "dice: " << dice+1 << endl;
        int game_status;
        if (this->game.get_is_switch() == true) {
            game_status = this->game.update_game_status(player_move(dice));
        }
        else
            game_status = this->game.update_game_status(ewnAI.AI_move(this->game, dice));

        this->game.print_board();
        //update: 0(game continues), 1(A wins), 2(B wins)
        if (game_status != 0) {
            cout << "====================================" << endl;
            if (game_status == 1) cout << "AI is the winner!!!" << endl;
            else cout << "B is the winner!!!" << endl;
            cout << "====================================" << endl;
            return;
        }
        this->game.switch_player();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x398, %rsp            # imm = 0x398
movq %rdi, %rbx
leaq -0x2d8(%rbp), %rdi
callq 0x4e6c
movq %rbx, %rdi
callq 0x7be2
movq 0xa340(%rip), %r14      # 0xcfc8
leaq -0x38(%rbp), %r13
leaq -0x3c0(%rbp), %r12
movq %rbx, %rdi
callq 0x7e2a
movl %eax, -0x2c(%rbp)
movl $0x6, %edx
movq %r14, %rdi
leaq 0x6488(%rip), %rsi      # 0x9135
callq 0x2170
movl -0x2c(%rbp), %esi
incl %esi
movq %r14, %rdi
callq 0x21f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x855c
testb %al, %al
je 0x2d12
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x28ac
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7fea
jmp 0x2d3e
movq %r12, %rdi
movq %rbx, %rsi
callq 0x78e2
movl -0x2c(%rbp), %edx
leaq -0x2d8(%rbp), %rdi
movq %r12, %rsi
callq 0x54a0
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7fea
movl %eax, %r15d
movq %rbx, %rdi
callq 0x7be2
testl %r15d, %r15d
jne 0x2d5b
movq %rbx, %rdi
callq 0x8150
jmp 0x2c93
movq 0xa266(%rip), %rbx      # 0xcfc8
leaq 0x67c6(%rip), %rsi      # 0x952f
movl $0x24, %edx
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0xa234(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
xorl %edx, %edx
cmpl $0x1, %r15d
sete %dl
leaq 0x656f(%rip), %rax      # 0x9320
leaq 0x6397(%rip), %rsi      # 0x914f
cmoveq %rax, %rsi
orq $0x12, %rdx
movq 0xa201(%rip), %rbx      # 0xcfc8
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0xa1db(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq 0xa1c7(%rip), %rbx      # 0xcfc8
leaq 0x6727(%rip), %rsi      # 0x952f
movl $0x24, %edx
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0xa195(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x5fa0
leaq 0x9f25(%rip), %r14      # 0xcd78
addq $0x10, %r14
movq %r14, -0x80(%rbx)
leaq -0x88(%rbp), %rdi
callq 0x4e0e
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
callq 0x4e0e
movq %r14, -0x98(%rbx)
leaq -0x108(%rbp), %rdi
callq 0x4e0e
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
callq 0x4e0e
movq %r14, -0x98(%rbx)
leaq -0x188(%rbp), %rdi
callq 0x4e0e
leaq -0x1b8(%rbp), %rbx
movq %rbx, %rdi
callq 0x4e0e
movq %r14, -0x98(%rbx)
leaq -0x208(%rbp), %rdi
callq 0x4e0e
leaq -0x238(%rbp), %rbx
movq %rbx, %rdi
callq 0x4e0e
movq %r14, -0x98(%rbx)
leaq -0x288(%rbp), %rdi
callq 0x4e0e
leaq -0x2b8(%rbp), %rdi
callq 0x4e0e
addq $0x398, %rsp            # imm = 0x398
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f17
jmp 0x2f17
jmp 0x2f17
jmp 0x2f17
jmp 0x2f17
movq %rax, %rbx
leaq -0x2d8(%rbp), %rdi
callq 0x4d54
movq %rbx, %rdi
callq 0x2200