// File: tyhsu[P]Ewn/game.cpp
// Function: Game::operator=(Game const&)
void Game::operator=(const Game& game)
{
	for(int i=0; i<5; i++) {
		for(int j=0; j<5; j++) {
			this->board[i][j] = game.board[i][j];
		}
	}
	for(int i=0; i<2; i++) {
		this->movable_chs_list[i] = game.movable_chs_list[i];
	}
	for(int i=0; i<6; i++) {
		this->chs_list_A[i] = game.chs_list_A[i];
		this->chs_list_B[i] = game.chs_list_B[i];
	}
	this->exist_bitwise_A = game.exist_bitwise_A;
	this->exist_bitwise_B = game.exist_bitwise_B;
	this->is_switch = game.is_switch;
	this->cur_chs_list_ptr = (game.is_switch) ? this->chs_list_B : this->chs_list_A;
	this->exist_chs_num_A = game.exist_chs_num_A;
	this->exist_chs_num_B = game.exist_chs_num_B;
//	cout << "calling copy : "  << this->is_switch << " " << this->cur_chs_list_ptr << "  " << this->chs_list_A << "  " << this->chs_list_B << "  " << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x5, -0x14(%rbp)
jge 0xa792
movl $0x0, -0x18(%rbp)
cmpl $0x5, -0x18(%rbp)
jge 0xa785
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq -0x14(%rbp), %rdx
imulq $0x5, %rdx, %rdx
addq %rdx, %rcx
movslq -0x18(%rbp), %rdx
movb (%rcx,%rdx), %dl
movslq -0x14(%rbp), %rcx
imulq $0x5, %rcx, %rcx
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xa748
jmp 0xa787
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa73b
movl $0x0, -0x1c(%rbp)
cmpl $0x2, -0x1c(%rbp)
jge 0xa7dc
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
addq $0x1c, %rcx
movslq -0x1c(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rcx
addq $0x1c, %rax
movslq -0x1c(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa799
movl $0x0, -0x20(%rbp)
cmpl $0x6, -0x20(%rbp)
jge 0xa85c
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rdx
addq $0x3c, %rdx
movslq -0x20(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rdx
movq %rax, %rcx
addq $0x3c, %rcx
movslq -0x20(%rbp), %rsi
imulq $0xc, %rsi, %rsi
addq %rsi, %rcx
movq (%rdx), %rsi
movq %rsi, (%rcx)
movl 0x8(%rdx), %edx
movl %edx, 0x8(%rcx)
movq -0x10(%rbp), %rcx
addq $0x84, %rcx
movslq -0x20(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rcx
addq $0x84, %rax
movslq -0x20(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xa7e3
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0xd8(%rcx), %ecx
movl %ecx, 0xd8(%rax)
movq -0x10(%rbp), %rcx
movl 0xdc(%rcx), %ecx
movl %ecx, 0xdc(%rax)
movq -0x10(%rbp), %rcx
movb 0xe4(%rcx), %cl
andb $0x1, %cl
movb %cl, 0xe4(%rax)
movq -0x10(%rbp), %rax
testb $0x1, 0xe4(%rax)
je 0xa8b0
movq -0x28(%rbp), %rax
addq $0x84, %rax
movq %rax, -0x30(%rbp)
jmp 0xa8bc
movq -0x28(%rbp), %rax
addq $0x3c, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0xd0(%rax)
movq -0x10(%rbp), %rcx
movl 0x34(%rcx), %ecx
movl %ecx, 0x34(%rax)
movq -0x10(%rbp), %rcx
movl 0x38(%rcx), %ecx
movl %ecx, 0x38(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)