// File: /workspace/github_cpp_makefile_star2_O2/angelapwen[P]text-based-game/game.cpp
// Function: Game::updateMap()
void Game::updateMap() {
	// Place the user's * on map depending on the new room
	if (current->getName() == "study") {
		map->placeStudy();
	}
	else if (current->getName() == "library") {
		map->placeLibrary();
	}
	else if (current->getName() == "conservatory") {
		map->placeConservatory();
	}
	else if (current->getName() == "billiard room") {
		map->placeBilliards();
	}
	else if (current->getName() == "dining room") {
		map->placeDining();
	}
	else if (current->getName() == "ballroom") {
		map->placeBallroom();
	}
	else if (current->getName() == "lounge") {
		map->placeLounge();
	}
	else if (current->getName() == "kitchen") {
		map->placeKitchen();
	}
	else if (current->getName() == "hall") {
		map->placeHall();
	}
	else {
		cout << "Invalid room name." << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4b67(%rip), %rsi      # 0x96c4
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4b81
movq (%rbx), %rdi
callq 0x5efe
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4b48(%rip), %rsi      # 0x96df
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4bbb
movq (%rbx), %rdi
callq 0x5f10
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4b2e(%rip), %rsi      # 0x96ff
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4bf5
movq (%rbx), %rdi
callq 0x5f34
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4b14(%rip), %rsi      # 0x971f
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4c2f
movq (%rbx), %rdi
callq 0x5f22
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4b32(%rip), %rsi      # 0x9777
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4c69
movq (%rbx), %rdi
callq 0x5f7c
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4abe(%rip), %rsi      # 0x973d
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4ca3
movq (%rbx), %rdi
callq 0x5f46
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4adb(%rip), %rsi      # 0x9794
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4cdd
movq (%rbx), %rdi
callq 0x5f6a
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4a73(%rip), %rsi      # 0x9766
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4d14
movq (%rbx), %rdi
callq 0x5f8e
jmp 0x4d66
movq 0x18(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x73b2
leaq 0x4a2c(%rip), %rsi      # 0x9756
movq %r14, %rdi
callq 0x2aab
movl %eax, %ebp
movq %r14, %rdi
callq 0x20b0
testb %bpl, %bpl
je 0x4d4b
movq (%rbx), %rdi
callq 0x5f58
jmp 0x4d66
movq 0xc27e(%rip), %rdi      # 0x10fd0
leaq 0x6919(%rip), %rsi      # 0xb672
callq 0x21a0
movq %rax, %rdi
callq 0x20c0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop