// File: /workspace/github_cpp_makefile_star2_O2/Doug0855[P]TigerZone/Board.cpp
// Function: Board::display_positions(Tile)
std::vector< std::pair<int, int> > Board::display_positions(Tile tile)
{
	// Create empty vector to store possible placement locations
	std::vector< std::pair<int, int> > places;
	// Loop through the rows of board
	for (size_t i = 0; i < m_board.size(); i++)
	{
		// Loop through column of board
		for (size_t j = 0; j < m_board[i].size(); j++)
		{
			if (m_board[i][j] != NULL && m_board[i][j]->hasOpenFace())
			{
				std::vector< std::string> tempFaces = m_board[i][j]->getOpenFaces();
				for (size_t k = 0; k < tempFaces.size(); k++)
				{
					// Check that the open faces for each location (and adjacent ones) may actually connect to the tile
					// Get back a vector of locations where we may place the tile
					std::vector< std::pair<int, int> > tempPlacements = checkPlacement(tile, i, j, tempFaces[k]);
					places.insert(places.end(), tempPlacements.begin(), tempPlacements.end());
				}
			}
		}
	}
	return places;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, -0x50(%rbp)
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rdi)
movq %rdi, -0x38(%rbp)
movups %xmm0, (%rdi)
movq %rsi, -0x30(%rbp)
movq (%rsi), %rcx
xorl %esi, %esi
leaq -0x188(%rbp), %r13
leaq -0xa0(%rbp), %r14
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rdi
idivq %rdi
cmpq %rax, %rsi
jae 0xb2a4
movq %rsi, -0x48(%rbp)
imulq $0x18, %rsi, %rax
movq %rax, -0x40(%rbp)
xorl %r12d, %r12d
movq -0x40(%rbp), %rdx
movq (%rcx,%rdx), %rax
movq 0x8(%rcx,%rdx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rdx, %r12
jae 0xb298
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0xb290
callq 0x111b2
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
testb %al, %al
je 0xb290
movq -0x40(%rbp), %rax
movq (%rcx,%rax), %rax
movq (%rax,%r12,8), %rsi
leaq -0x68(%rbp), %rdi
callq 0x11200
xorl %r15d, %r15d
xorl %ebx, %ebx
movq -0x60(%rbp), %rax
subq -0x68(%rbp), %rax
sarq $0x5, %rax
cmpq %rax, %rbx
jae 0xb280
movq %r13, %rdi
movq -0x50(%rbp), %rsi
callq 0x60b0
movq -0x68(%rbp), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x32c0
leaq -0x80(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %r13, %rdx
movq -0x48(%rbp), %rcx
movl %r12d, %r8d
movq %r14, %r9
callq 0xb30e
movq %r14, %rdi
callq 0x3120
movq %r13, %rdi
callq 0x10e3c
movq -0x38(%rbp), %rdi
movq 0x8(%rdi), %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0xec56
leaq -0x80(%rbp), %rdi
callq 0xaca8
incq %rbx
addq $0x20, %r15
jmp 0xb203
leaq -0x68(%rbp), %rdi
callq 0x8ee8
movq -0x30(%rbp), %rax
movq (%rax), %rcx
incq %r12
jmp 0xb1ab
movq -0x48(%rbp), %rsi
incq %rsi
jmp 0xb180
movq -0x38(%rbp), %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb2bc
movq %rax, %r14
jmp 0xb2fd
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0xaca8
jmp 0xb2f4
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0x3120
jmp 0xb2e8
movq %rax, %r14
jmp 0xb2f4
movq %rax, %r14
leaq -0x188(%rbp), %rdi
callq 0x10e3c
leaq -0x68(%rbp), %rdi
callq 0x8ee8
movq -0x38(%rbp), %rdi
callq 0xaca8
movq %r14, %rdi
callq 0x33c0