// File: tyhsu[P]Ewn/game.cpp
// Function: Game::Game(Game const&)
Game::Game(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 = (this->is_switch == false) ? this->chs_list_A :  this->chs_list_B;
	this->cur_exist_bitwise_ptr = (this->is_switch == false) ? this->exist_bitwise_A :  this->exist_bitwise_B;
	this->exist_chs_num_A = game.exist_chs_num_A;
	this->exist_chs_num_B = game.exist_chs_num_B;
}

// 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 0xa592
movl $0x0, -0x18(%rbp)
cmpl $0x5, -0x18(%rbp)
jge 0xa585
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 0xa548
jmp 0xa587
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa53b
movl $0x0, -0x1c(%rbp)
cmpl $0x2, -0x1c(%rbp)
jge 0xa5dc
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 0xa599
movl $0x0, -0x20(%rbp)
cmpl $0x6, -0x20(%rbp)
jge 0xa65c
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 0xa5e3
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)
movb 0xe4(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xa6b1
movq -0x28(%rbp), %rax
addq $0x3c, %rax
movq %rax, -0x30(%rbp)
jmp 0xa6bf
movq -0x28(%rbp), %rax
addq $0x84, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0xd0(%rax)
movb 0xe4(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0xa6ed
movq -0x28(%rbp), %rax
movl 0xd8(%rax), %eax
movl %eax, -0x34(%rbp)
jmp 0xa6fa
movq -0x28(%rbp), %rax
movl 0xdc(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x28(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %ecx, 0xe0(%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
nopl (%rax)