// File: /workspace/github_cpp_makefile_star2_O1/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, -0x68(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x38(%rbp)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0xf7c3
xorl %edx, %edx
leaq -0x188(%rbp), %r13
movq %rsi, -0x30(%rbp)
movq (%rsi), %rcx
movq %rdx, -0x48(%rbp)
leaq (%rdx,%rdx,2), %rdx
movq (%rcx,%rdx,8), %rax
movq %rdx, -0x40(%rbp)
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0xf796
xorl %r14d, %r14d
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0xf76f
callq 0x16f86
testb %al, %al
je 0xf76f
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%r14,8), %rsi
leaq -0x60(%rbp), %rdi
callq 0x16fd4
movq -0x58(%rbp), %rax
cmpq -0x60(%rbp), %rax
je 0xf766
movl $0x8, %r12d
xorl %r15d, %r15d
movq %r13, %rdi
movq -0x68(%rbp), %rsi
callq 0x8b34
movq -0x60(%rbp), %rax
leaq -0x78(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x9da8
leaq -0xa0(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %r13, %rdx
movq -0x48(%rbp), %rcx
movl %r14d, %r8d
movq %rbx, %r9
callq 0xf846
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xf716
callq 0x3200
movq %r13, %rdi
callq 0x16aa0
movq -0x38(%rbp), %rdi
movq 0x8(%rdi), %rsi
movq -0xa0(%rbp), %rdx
movq -0x98(%rbp), %rcx
callq 0x144e0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0xf74a
callq 0x3200
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
incq %r15
sarq $0x5, %rax
addq $0x20, %r12
cmpq %rax, %r15
jb 0xf6ae
leaq -0x60(%rbp), %rdi
callq 0xc6c8
incq %r14
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq -0x40(%rbp), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jb 0xf661
movq -0x30(%rbp), %rsi
movq 0x8(%rsi), %rax
subq (%rsi), %rax
movq -0x48(%rbp), %rdx
incq %rdx
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0xf640
movq -0x38(%rbp), %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf7db
movq %rax, %r14
jmp 0xf82d
movq %rax, %r14
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0xf824
callq 0x3200
jmp 0xf824
movq %rax, %r14
jmp 0xf824
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xf818
callq 0x3200
jmp 0xf818
movq %rax, %r14
leaq -0x188(%rbp), %rdi
callq 0x16aa0
leaq -0x60(%rbp), %rdi
callq 0xc6c8
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xf83e
callq 0x3200
movq %r14, %rdi
callq 0x33f0