// File: /workspace/github_cpp_makefile_star2_O1/JacobLCarter[P]2D-Portal/worldMap.cpp
// Function: World_Map::showMap()
void World_Map::showMap()
{
    std::cout << std::endl;
    std::cout << std::string(16, '-') << std::endl; 
    for (int i = 0; i < rows; i++)
    {
        for (int j = 0; j < columns; j++)
        {
            //if there is an item in the space, prints the item's identifier
            if (!testChamberMap[i][j]->getItemInSpace() == NULL)
            {
                //if the final space, print a border after the identifier
                if (j == 4)
                {
                    std::cout << " " << testChamberMap[i][j]->getItemInSpace()->
                    getItemTypeIdentifier() << " |";
                }
                else
                {
                    std::cout << " " << testChamberMap[i][j]->getItemInSpace()->
                        getItemTypeIdentifier() << " ";
                }
            }
            //if there is no item in the space, prints the spaces's identifier
            else
            {
                //if the final space, print a border after the identifier
                if (j == 4)
                {
                    std::cout << " " << testChamberMap[i][j]->getSpaceTypeIdentifier() << " |";
                }
                else
                { 
                    std::cout << " " << testChamberMap[i][j]->getSpaceTypeIdentifier() << " ";
                }
            }
        }
        std::cout << std::endl;
    }
    std::cout << std::string(16, '-') << std::endl; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x780e(%rip), %r14      # 0xcfd0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %rdi
movl $0x10, %esi
movl $0x2d, %edx
callq 0x2190
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x77b8(%rip), %r14      # 0xcfd0
movq %r14, %rdi
callq 0x2180
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5861
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
cmpl $0x0, (%rbx)
jle 0x5963
xorl %r13d, %r13d
leaq 0x21bf(%rip), %r15      # 0x7a33
cmpl $0x0, 0x4(%rbx)
jle 0x592d
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r12,8), %rdi
callq 0x3b12
movq %rax, %rbp
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2180
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r12,8), %rdi
testq %rbp, %rbp
je 0x58c5
callq 0x3b12
movq %rax, %rdi
callq 0x40f8
jmp 0x58ca
callq 0x3ad2
cmpq $0x4, %r12
jne 0x58f7
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2180
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2fc6(%rip), %rsi      # 0x88bb
jmp 0x5918
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2180
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
incq %r12
movslq 0x4(%rbx), %rax
cmpq %rax, %r12
jl 0x5881
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
incq %r13
movslq (%rbx), %rax
cmpq %rax, %r13
jl 0x5874
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r14
movq %r14, (%rdi)
movl $0x10, %esi
movl $0x2d, %edx
callq 0x2190
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x7640(%rip), %rdi      # 0xcfd0
callq 0x2180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x59d6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x59e7
movq %rax, %rbx
jmp 0x5a15
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x5a08
jmp 0x5a15
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a15
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240
nopl (%rax)