// File: 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
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x9732(%rip), %rdi      # 0x12fd0
movq 0x971b(%rip), %rsi      # 0x12fc0
callq 0x3240
leaq -0x29(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x33c0
movq -0x78(%rbp), %rcx
leaq -0x28(%rbp), %rdi
movl $0x10, %esi
movl $0x2d, %edx
callq 0x9c10
jmp 0x98d0
movq 0x96f9(%rip), %rdi      # 0x12fd0
leaq -0x28(%rbp), %rsi
callq 0x31f0
movq %rax, -0x88(%rbp)
jmp 0x98e9
movq -0x88(%rbp), %rdi
movq 0x96c9(%rip), %rsi      # 0x12fc0
callq 0x3240
jmp 0x98fe
leaq -0x28(%rbp), %rdi
callq 0x3140
leaq -0x29(%rbp), %rdi
callq 0x3260
movl $0x0, -0x40(%rbp)
movq -0x80(%rbp), %rcx
movl -0x40(%rbp), %eax
cmpl (%rcx), %eax
jge 0x9b62
movl $0x0, -0x44(%rbp)
movq -0x80(%rbp), %rcx
movl -0x44(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0x9b41
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5620
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpq $0x0, %rax
jne 0x9a77
cmpl $0x4, -0x44(%rbp)
jne 0x9a12
movq 0x964d(%rip), %rdi      # 0x12fd0
leaq 0x31c1(%rip), %rsi      # 0xcb4b
callq 0x3210
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq 0x8(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5620
movq %rax, %rdi
callq 0x63c0
movq -0x90(%rbp), %rdi
movsbl %al, %esi
callq 0x32b0
movq %rax, %rdi
leaq 0x400f(%rip), %rsi      # 0xd9e6
callq 0x3210
jmp 0x9a72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x9a04
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3140
leaq -0x29(%rbp), %rdi
callq 0x3260
jmp 0x9c03
movq 0x95b7(%rip), %rdi      # 0x12fd0
leaq 0x312b(%rip), %rsi      # 0xcb4b
callq 0x3210
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq 0x8(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5620
movq %rax, %rdi
callq 0x63c0
movq -0x98(%rbp), %rdi
movsbl %al, %esi
callq 0x32b0
movq %rax, %rdi
leaq 0x30de(%rip), %rsi      # 0xcb4b
callq 0x3210
jmp 0x9b31
cmpl $0x4, -0x44(%rbp)
jne 0x9ad7
movq 0x954c(%rip), %rdi      # 0x12fd0
leaq 0x30c0(%rip), %rsi      # 0xcb4b
callq 0x3210
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq 0x8(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x54e0
movq -0xa0(%rbp), %rdi
movsbl %al, %esi
callq 0x32b0
movq %rax, %rdi
leaq 0x3f16(%rip), %rsi      # 0xd9e6
callq 0x3210
jmp 0x9b2f
movq 0x94f2(%rip), %rdi      # 0x12fd0
leaq 0x3066(%rip), %rsi      # 0xcb4b
callq 0x3210
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0xa8(%rbp)
movq 0x8(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x54e0
movq -0xa8(%rbp), %rdi
movsbl %al, %esi
callq 0x32b0
movq %rax, %rdi
leaq 0x3021(%rip), %rsi      # 0xcb4b
callq 0x3210
jmp 0x9b31
jmp 0x9b33
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x992d
movq 0x9488(%rip), %rdi      # 0x12fd0
movq 0x9471(%rip), %rsi      # 0x12fc0
callq 0x3240
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x9917
leaq -0x69(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x33c0
movq -0xb0(%rbp), %rcx
leaq -0x68(%rbp), %rdi
movl $0x10, %esi
movl $0x2d, %edx
callq 0x9c10
jmp 0x9b8e
movq 0x943b(%rip), %rdi      # 0x12fd0
leaq -0x68(%rbp), %rsi
callq 0x31f0
movq %rax, -0xb8(%rbp)
jmp 0x9ba7
movq -0xb8(%rbp), %rdi
movq 0x940b(%rip), %rsi      # 0x12fc0
callq 0x3240
jmp 0x9bbc
leaq -0x68(%rbp), %rdi
callq 0x3140
leaq -0x69(%rbp), %rdi
callq 0x3260
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x9bfa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3140
leaq -0x69(%rbp), %rdi
callq 0x3260
movq -0x38(%rbp), %rdi
callq 0x33b0
nopl (%rax)