// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6b19(%rip), %rsi      # 0xd738
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
leaq 0x18(%rsp), %r15
cmpq %r15, %rdi
je 0x6c43
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e64
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6af0(%rip), %rsi      # 0xd753
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6c82
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e6e
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6ad1(%rip), %rsi      # 0xd773
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6cc1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e78
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6ab2(%rip), %rsi      # 0xd793
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6d00
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e82
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6acb(%rip), %rsi      # 0xd7eb
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6d3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e8c
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6a52(%rip), %rsi      # 0xd7b1
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6d7e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6e96
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x6a6a(%rip), %rsi      # 0xd808
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6dbd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6ea0
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x69fd(%rip), %rsi      # 0xd7da
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6dfc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6eaa
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa43c
leaq 0x69ae(%rip), %rsi      # 0xd7ca
movq %r14, %rdi
callq 0x2070
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x6e3b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
testl %ebp, %ebp
je 0x6eb4
movq 0xe18a(%rip), %rbx      # 0x14fd0
leaq 0x8899(%rip), %rsi      # 0xf6e6
movl $0x12, %edx
movq %rbx, %rdi
callq 0x21c0
movq %rbx, %rdi
callq 0x20a0
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8a2a
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8a5a
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8aba
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8a8a
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8b7a
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8aea
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8b4a
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8baa
jmp 0x6ebc
movq (%rbx), %rdi
callq 0x8b1a
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop