// File: /workspace/github_cpp_makefile_star2_O3/tyhsu[P]Ewn/play.cpp
// Function: Play::two_AIs_mode()
void Play::two_AIs_mode()
{
    cout << "==========The first AI (A)==========" << endl;
    EwnAI ewnAI1;
    cout << "==========The second AI (B)==========" << endl;
    EwnAI ewnAI2;
    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())	// the first AI (A)
            game_status = this->game.update_game_status(ewnAI1.AI_move(this->game, dice));
        else					// the second AI (B)
            game_status = this->game.update_game_status(ewnAI2.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 << "A 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 $0x718, %rsp            # imm = 0x718
movq %rdi, %r15
movq 0xa07c(%rip), %rbx      # 0xcfc8
leaq 0x620f(%rip), %rsi      # 0x9162
movl $0x24, %edx
movq %rbx, %rdi
callq 0x2170
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq -0x570(%rbp), %rdi
callq 0x4e6c
leaq 0x61ed(%rip), %rsi      # 0x9187
movl $0x25, %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 0xa003(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq -0x2d0(%rbp), %rdi
callq 0x4e6c
movq %r15, %rdi
callq 0x7be2
movq 0x9fdb(%rip), %r12      # 0xcfc8
leaq -0x740(%rbp), %r13
movq %r15, %rdi
callq 0x7e2a
movl %eax, %ebx
movl $0x6, %edx
movq %r12, %rdi
leaq 0x6128(%rip), %rsi      # 0x9135
callq 0x2170
leal 0x1(%rbx), %esi
movq %r12, %rdi
callq 0x21f0
movq %rax, %r14
movq (%rax), %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
movq %r15, %rdi
callq 0x855c
testb %al, %al
je 0x3089
leaq -0x658(%rbp), %rdi
movq %r15, %rsi
callq 0x78e2
leaq -0x2d0(%rbp), %rdi
leaq -0x658(%rbp), %rsi
movl %ebx, %edx
callq 0x54a0
movq %rax, -0x30(%rbp)
movq %r15, %rdi
leaq -0x30(%rbp), %rsi
callq 0x7fea
jmp 0x30b5
movq %r13, %rdi
movq %r15, %rsi
callq 0x78e2
leaq -0x570(%rbp), %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x54a0
movq %rax, -0x30(%rbp)
movq %r15, %rdi
leaq -0x30(%rbp), %rsi
callq 0x7fea
movl %eax, %ebx
movq %r15, %rdi
callq 0x7be2
testl %ebx, %ebx
jne 0x30d0
movq %r15, %rdi
callq 0x8150
jmp 0x2ff4
movq 0x9ef1(%rip), %r14      # 0xcfc8
leaq 0x6451(%rip), %rsi      # 0x952f
movl $0x24, %edx
movq %r14, %rdi
callq 0x2170
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0x9ebf(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
cmpl $0x1, %ebx
leaq 0x601c(%rip), %rax      # 0x913c
leaq 0x6028(%rip), %rsi      # 0x914f
cmoveq %rax, %rsi
movq 0x9e96(%rip), %rbx      # 0xcfc8
movl $0x12, %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 0x9e6b(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq 0x9e57(%rip), %rbx      # 0xcfc8
leaq 0x63b7(%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 0x9e25(%rip), %rdi      # 0xcfc8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movl $0x288, %eax            # imm = 0x288
leaq -0x2d0(%rbp), %r14
leaq (%r14,%rax), %rdi
callq 0x5fa0
leaq 0x9bac(%rip), %rbx      # 0xcd78
addq $0x10, %rbx
leaq -0x280(%rbp), %rax
movq %rbx, 0x1b8(%rax)
movq %rax, %r12
movl $0x250, %eax            # imm = 0x250
leaq (%r14,%rax), %rdi
callq 0x4e0e
movl $0x220, %r15d           # imm = 0x220
leaq (%r14,%r15), %rdi
callq 0x4e0e
movq %rbx, 0x138(%r12)
movl $0x1d0, %r12d           # imm = 0x1D0
leaq (%r14,%r12), %rdi
callq 0x4e0e
movl $0x1a0, %r13d           # imm = 0x1A0
leaq (%r14,%r13), %rdi
callq 0x4e0e
leaq -0x280(%rbp), %rax
movq %rbx, 0xb8(%rax)
movl $0x150, %eax            # imm = 0x150
leaq (%r14,%rax), %rdi
callq 0x4e0e
movl $0x120, %eax            # imm = 0x120
leaq (%r14,%rax), %rdi
callq 0x4e0e
leaq -0x280(%rbp), %rax
movq %rbx, 0x38(%rax)
movl $0xd0, %eax
leaq (%r14,%rax), %rdi
callq 0x4e0e
movl $0xa0, %eax
addq %rax, %r14
movq %r14, %rdi
callq 0x4e0e
leaq -0x280(%rbp), %rdi
movq %rbx, -0x48(%rdi)
callq 0x4e0e
leaq -0x2b0(%rbp), %rdi
callq 0x4e0e
leaq -0x570(%rbp), %r14
movl $0x288, %edi            # imm = 0x288
addq %r14, %rdi
callq 0x5fa0
leaq -0x520(%rbp), %rax
movq %rbx, 0x1b8(%rax)
movl $0x250, %edi            # imm = 0x250
addq %r14, %rdi
callq 0x4e0e
addq %r14, %r15
movq %r15, %rdi
callq 0x4e0e
leaq -0x520(%rbp), %rax
movq %rbx, 0x138(%rax)
addq %r14, %r12
movq %r12, %rdi
callq 0x4e0e
addq %r14, %r13
movq %r13, %rdi
callq 0x4e0e
leaq -0x520(%rbp), %r15
movq %rbx, 0xb8(%r15)
movl $0x150, %edi            # imm = 0x150
addq %r14, %rdi
callq 0x4e0e
movl $0x120, %edi            # imm = 0x120
addq %r14, %rdi
callq 0x4e0e
movq %rbx, 0x38(%r15)
movl $0xd0, %edi
addq %r14, %rdi
callq 0x4e0e
movl $0xa0, %eax
addq %rax, %r14
movq %r14, %rdi
callq 0x4e0e
movq %r15, %rdi
movq %rbx, -0x48(%r15)
callq 0x4e0e
leaq -0x550(%rbp), %rdi
callq 0x4e0e
addq $0x718, %rsp            # imm = 0x718
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3375
jmp 0x3368
movq %rax, %rbx
jmp 0x3384
jmp 0x3375
jmp 0x3375
jmp 0x3375
jmp 0x3375
movq %rax, %rbx
leaq -0x2d0(%rbp), %rdi
callq 0x4d54
leaq -0x570(%rbp), %rdi
callq 0x4d54
movq %rbx, %rdi
callq 0x2200