// File: /workspace/github_cpp_makefile_star2_O1/Doug0855[P]TigerZone/main.cpp
// Function: printBoard(Board)
void printBoard(Board gameBoard) //debugging
{
	std::cout<<"in print board"<<std::endl;
	// Print out gameboard
	std::cout << "size of gameBoard is: " << gameBoard.m_board.size() << " x " << gameBoard.m_board[0].size() << std::endl;
	for(int i = 0; i < gameBoard.m_board.size(); i++)
	{
		std::cout << std::setw(3) << i << ' ';
		for(int j = 0; j < gameBoard.m_board[i].size(); j++)
		{
				if (gameBoard.m_board[i][j] != NULL)
					std::cout << GREEN <<  gameBoard.m_board[i][j]->getRotations() << gameBoard.m_board[i][j]->getType() << WHITE << RESET;
				else
					std::cout << std::setw(2) << '.';
		}
		std::cout<<std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x1b3a0(%rip), %r12     # 0x1efc8
leaq 0x14409(%rip), %rsi     # 0x18038
movl $0xe, %edx
movq %r12, %rdi
callq 0x3280
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq 0x143dc(%rip), %rsi     # 0x18047
movl $0x16, %edx
movq %r12, %rdi
callq 0x3280
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r12, %rdi
callq 0x3170
movq %rax, %r15
leaq 0x143bb(%rip), %rsi     # 0x1805e
movl $0x3, %edx
movq %rax, %rdi
callq 0x3280
movq (%rbx), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x3, %rsi
movq %r15, %rdi
callq 0x3170
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x3e86
xorl %r14d, %r14d
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x10(%r12,%rax)
movq %r12, %rdi
movl %r14d, %esi
callq 0x33c0
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
leaq -0x29(%rbp), %rsi
callq 0x3280
movq (%rbx), %rcx
movq %r14, -0x38(%rbp)
leaq (%r14,%r14,2), %r13
movq (%rcx,%r13,8), %rax
cmpq %rax, 0x8(%rcx,%r13,8)
je 0x3e35
movq -0x38(%rbp), %rcx
leaq (,%rcx,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq %rcx, -0x40(%rbp)
xorl %r14d, %r14d
cmpq $0x0, (%rax,%r14,8)
je 0x3df0
movl $0x5, %edx
movq %r12, %rdi
leaq 0x142e6(%rip), %rsi     # 0x18062
callq 0x3280
movq (%rbx), %rax
movq -0x40(%rbp), %r15
movq (%rax,%r15), %rax
movq (%rax,%r14,8), %rax
movl (%rax), %esi
movq %r12, %rdi
callq 0x33c0
movq (%rbx), %rcx
movq (%rcx,%r15), %rcx
movq (%rcx,%r14,8), %rcx
movb 0x8(%rcx), %cl
movb %cl, -0x2a(%rbp)
movl $0x1, %edx
movq %rax, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x3280
movq %rbx, %r15
movq %r12, %rbx
movq %rax, %r12
movl $0x5, %edx
movq %rax, %rdi
leaq 0x14294(%rip), %rsi     # 0x18068
callq 0x3280
movl $0x4, %edx
movq %r12, %rdi
movq %rbx, %r12
movq %r15, %rbx
leaq 0x14280(%rip), %rsi     # 0x1806e
jmp 0x3e11
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x10(%r12,%rax)
movb $0x2e, -0x2b(%rbp)
movl $0x1, %edx
movq %r12, %rdi
leaq -0x2b(%rbp), %rsi
callq 0x3280
incq %r14
movq (%rbx), %rcx
movq (%rcx,%r13,8), %rax
movq 0x8(%rcx,%r13,8), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0x3d62
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq 0x8(%rbx), %rax
subq (%rbx), %rax
movq -0x38(%rbp), %r14
incq %r14
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r14, %rax
ja 0x3d00
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq