// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e44
movq %rbx, %rdi
callq 0x7d9c
movq 0xa33c(%rip), %r14      # 0xcfc8
leaq 0x689c(%rip), %r12      # 0x952f
leaq -0x3c0(%rbp), %r15
movq %rbx, %rdi
callq 0x7fe4
movl %eax, -0x2c(%rbp)
movl $0x6, %edx
movq %r14, %rdi
leaq 0x6481(%rip), %rsi      # 0x9135
callq 0x2170
movl -0x2c(%rbp), %esi
incl %esi
movq %r14, %rdi
callq 0x21f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x872e
testb %al, %al
je 0x2d1a
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x28ac
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x818e
jmp 0x2d47
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7a74
movl -0x2c(%rbp), %edx
leaq -0x2d8(%rbp), %rdi
movq %r15, %rsi
callq 0x5478
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x818e
movl %eax, %r13d
movq %rbx, %rdi
callq 0x7d9c
testl %r13d, %r13d
je 0x2e19
movl $0x24, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
xorl %edx, %edx
cmpl $0x1, %r13d
sete %dl
leaq 0x63ad(%rip), %rsi      # 0x914f
leaq 0x6577(%rip), %rax      # 0x9320
cmoveq %rax, %rsi
orq $0x12, %rdx
movq %r14, %rdi
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movl $0x24, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2170
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
jmp 0x2e21
movq %rbx, %rdi
callq 0x8316
testl %r13d, %r13d
je 0x2c9a
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x6090
leaq 0x9f3b(%rip), %r14      # 0xcd78
addq $0x10, %r14
movq %r14, -0x80(%rbx)
leaq -0x88(%rbp), %rdi
callq 0x4de6
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
callq 0x4de6
movq %r14, -0x98(%rbx)
leaq -0x108(%rbp), %rdi
callq 0x4de6
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
callq 0x4de6
movq %r14, -0x98(%rbx)
leaq -0x188(%rbp), %rdi
callq 0x4de6
leaq -0x1b8(%rbp), %rbx
movq %rbx, %rdi
callq 0x4de6
movq %r14, -0x98(%rbx)
leaq -0x208(%rbp), %rdi
callq 0x4de6
leaq -0x238(%rbp), %rbx
movq %rbx, %rdi
callq 0x4de6
movq %r14, -0x98(%rbx)
leaq -0x288(%rbp), %rdi
callq 0x4de6
leaq -0x2b8(%rbp), %rdi
callq 0x4de6
addq $0x398, %rsp            # imm = 0x398
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2eff
jmp 0x2eff
jmp 0x2eff
jmp 0x2eff
movq %rax, %rbx
leaq -0x2d8(%rbp), %rdi
callq 0x4d2c
movq %rbx, %rdi
callq 0x2200