LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]Register-Interval/./src/implementation/RegisterIntervalCreation.cpp
// Function: RegisterIntervalCreationPass::visit_all_predecessors(basicBlock*)
void RegisterIntervalCreationPass::visit_all_predecessors(basicBlock* BB){
	for(int i=0; i < basic_blocks.size(); i++)
		mark.push_back(false);

	for(int i=0;i<basic_blocks.size(); i++){
		mark[i] = false;
	}

	visit_predecessors(BB);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xa82e(%rip), %rax      # 0xf218
movq 0xa81f(%rip), %rcx      # 0xf210
subq %rcx, %rax
je 0x4a26
xorl %r15d, %r15d
leaq 0xa890(%rip), %r14      # 0xf290
movq %r14, %rdi
xorl %esi, %esi
callq 0x8cfe
incq %r15
movq 0xa804(%rip), %rax      # 0xf218
subq 0xa7f5(%rip), %rax      # 0xf210
sarq $0x3, %rax
cmpq %r15, %rax
ja 0x4a00
jmp 0x4a2a
sarq $0x3, %rax
testq %rax, %rax
je 0x4a53
movq 0xa85a(%rip), %rdx      # 0xf290
xorl %ecx, %ecx
movl %ecx, %esi
movq $-0x2, %rdi
rolq %cl, %rdi
shrl $0x6, %esi
andq %rdi, (%rdx,%rsi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x4a38
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5738
nop
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]Register-Interval/./src/implementation/RegisterIntervalCreation.cpp
// Function: RegisterIntervalCreationPass::visit_registerInterval_all_predecessors(registerInterval*)
void RegisterIntervalCreationPass::visit_registerInterval_all_predecessors(registerInterval* in){
	for(int j=0; j < RegisterIntervals[0]->getID() + RegisterIntervals.size(); j++)
		registerInterval_mark.push_back(false);

	for(int i=0; i < RegisterIntervals[0]->getID() + RegisterIntervals.size(); i++){
		registerInterval_mark[i] = false;
	}

	registerInterval_visit_predecessors(in);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x9b7e(%rip), %rax      # 0xf228
movq (%rax), %rcx
movslq (%rcx), %rcx
movq 0x9b79(%rip), %rdx      # 0xf230
subq %rax, %rdx
sarq $0x3, %rdx
addq %rcx, %rdx
je 0x5726
xorl %r15d, %r15d
leaq 0x9beb(%rip), %r14      # 0xf2b8
movq %r14, %rdi
xorl %esi, %esi
callq 0x8cfe
incq %r15
movq 0x9b47(%rip), %rcx      # 0xf228
movq (%rcx), %rax
movslq (%rax), %rdx
movq 0x9b42(%rip), %rax      # 0xf230
subq %rcx, %rax
sarq $0x3, %rax
addq %rdx, %rax
cmpq %r15, %rax
ja 0x56cd
testq %rax, %rax
je 0x5726
movq 0x9baf(%rip), %rdx      # 0xf2b8
xorl %ecx, %ecx
movl %ecx, %esi
movq $-0x2, %rdi
rolq %cl, %rdi
shrl $0x6, %esi
andq %rdi, (%rdx,%rsi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x570b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5836
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]Register-Interval/./src/implementation/RegisterIntervalCreation.cpp
// Function: RegisterIntervalCreationPass::visit_predecessors(basicBlock*)
void RegisterIntervalCreationPass::visit_predecessors(basicBlock* BB){
	mark[BB->getID()] = true;
	auto P = BB->get_predecessors();
	for(int i=0;i<P.size();i++){
		if(!mark[P[i]->getID()])
			visit_predecessors(P[i]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movslq (%rdi), %rcx
leal 0x3f(%rcx), %eax
testq %rcx, %rcx
cmovnsl %ecx, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq 0x9b2f(%rip), %rax      # 0xf290
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %esi, %esi
cmpq %r14, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
leaq 0x60(%rdi), %rsi
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x8ecc
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
cmpq %rdi, %rcx
je 0x5808
xorl %ebx, %ebx
leaq 0x3f(%r14), %r15
movq (%rdi,%rbx,8), %rax
movslq (%rax), %rdx
leal 0x3f(%rdx), %esi
testq %rdx, %rdx
cmovnsl %edx, %esi
sarl $0x6, %esi
movslq %esi, %rsi
shlq $0x3, %rsi
addq 0x9ac5(%rip), %rsi      # 0xf290
movq %rdx, %r8
andq %r15, %r8
xorl %r9d, %r9d
cmpq %r14, %r8
setbe %r9b
movq -0x8(%rsi,%r9,8), %rsi
btq %rdx, %rsi
jb 0x57f6
movq %rax, %rdi
callq 0x5738
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rcx
incq %rbx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x57aa
testq %rdi, %rdi
je 0x5812
callq 0x21c0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x582e
callq 0x21c0
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]Register-Interval/./src/implementation/RegisterIntervalCreation.cpp
// Function: RegisterIntervalCreationPass::registerInterval_visit_predecessors(registerInterval*)
void RegisterIntervalCreationPass::registerInterval_visit_predecessors(registerInterval* in){
	registerInterval_mark[in->getID()] = true;
	auto P = in->get_predecessors();
	for(int i=0;i<P.size();i++){
		if(!registerInterval_mark[P[i]->getID()])
			registerInterval_visit_predecessors(P[i]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movslq (%rdi), %rcx
leal 0x3f(%rcx), %eax
testq %rcx, %rcx
cmovnsl %ecx, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq 0x9a59(%rip), %rax      # 0xf2b8
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %esi, %esi
cmpq %r14, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
leaq 0x90(%rdi), %rsi
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x8d52
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
cmpq %rdi, %rcx
je 0x5909
xorl %ebx, %ebx
leaq 0x3f(%r14), %r15
movq (%rdi,%rbx,8), %rax
movslq (%rax), %rdx
leal 0x3f(%rdx), %esi
testq %rdx, %rdx
cmovnsl %edx, %esi
sarl $0x6, %esi
movslq %esi, %rsi
shlq $0x3, %rsi
addq 0x99ec(%rip), %rsi      # 0xf2b8
movq %rdx, %r8
andq %r15, %r8
xorl %r9d, %r9d
cmpq %r14, %r8
setbe %r9b
movq -0x8(%rsi,%r9,8), %rsi
btq %rdx, %rsi
jb 0x58f7
movq %rax, %rdi
callq 0x5836
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rcx
incq %rbx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x58ab
testq %rdi, %rdi
je 0x5913
callq 0x21c0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x592f
callq 0x21c0
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Main/MainHelpers.cc
// Function: getValidCoords()
vector<int> getValidCoords() {
	// safety check no necessary assuming there is enough room for spawning
	vector<int> tempCoordinates;
	do {
		tempCoordinates = rng.genCoordinates(floorDimensions);

		// reroll if coordinates are not for a FloorTile
		// or has an occupant already
	} while (!(isValidCoordinates(tempCoordinates))
	|| isOccupied(tempCoordinates));

	return tempCoordinates;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x50(%rsp), %r15
movq %rsp, %r13
leaq 0x38(%rsp), %rbp
leaq 0x20(%rsp), %r14
movq %r15, %rdi
leaq 0x171a0(%rip), %rsi     # 0x2a078
callq 0x120b4
movq %r13, %rdi
leaq 0x16f21(%rip), %rsi     # 0x29e08
movq %r15, %rdx
callq 0x1a4ba
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x12f39
subq %rdi, %rsi
callq 0x5280
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x12f39
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x12f50
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x120b4
movq %rbp, %rdi
callq 0x12c90
movb $0x1, %r12b
testb %al, %al
je 0x12f97
movq %r14, %rdi
movq %rbx, %rsi
callq 0x120b4
movq %r14, %rdi
callq 0x12d2d
movl %eax, %r12d
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x12f97
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x12fae
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
testb %r12b, %r12b
jne 0x12ece
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x13003
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x13003
jmp 0x12ffb
movq %rax, %r14
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1301a
movq 0x60(%rsp), %rsi
jmp 0x13012
movq %rax, %r14
jmp 0x1301a
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1301a
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1302e
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x5280
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Main/MainHelpers.cc
// Function: createCharacter(Race)
shared_ptr<Character> createCharacter(Race race) {
	int tempWallet = getNormalOrSmallGoldPile();

	if (race == Race::Shade) {
		return make_shared<Shade>(tempWallet);
	}

	else if (race == Race::Drow) {
        return make_shared<Drow>(tempWallet);
	}

	else if	(race == Race::Vampire) {
        return make_shared<Vampire>(tempWallet);
	}

	else if (race == Race::Troll) {
        return make_shared<Troll>(tempWallet);
	}

	else if (race == Race::Goblin) {
        return make_shared<Goblin>(tempWallet);
	}

	else if (race == Race::Human) {
        return make_shared<Human>(tempWallet);
	}

	else if (race == Race::Dwarf) {
        return make_shared<Dwarf>(tempWallet);
	}

	else if (race == Race::Elf) {
        return make_shared<Elf>(tempWallet);
	}

	else if (race == Race::Orc) {
        return make_shared<Orc>(tempWallet);
	}

	else if (race == Race::Merchant) {
        return make_shared<Merchant>(tempWallet);
	}

	else if (race == Race::Dragon) {
        return make_shared<Dragon>(tempWallet);
	}

	else if (race == Race::Halfling) {
        return make_shared<Halfling>(tempWallet);
	}

	return nullptr;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x166ff(%rip), %r14     # 0x29e08
movq %r14, %rdi
callq 0x1a466
leal -0x3(%rax), %ecx
cmpl $-0x2, %ecx
jb 0x13709
movl %eax, 0xc(%rsp)
cmpl $0xb, %ebp
ja 0x13887
movl %ebp, %eax
leaq 0xc585(%rip), %rcx      # 0x1fcb4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x13ee6
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x14c4a
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x143fe
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x149da
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x141a6
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x142d2
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x14782
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x1407a
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x1452a
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x14656
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x14b06
jmp 0x13874
leaq 0x10(%rsp), %r14
leaq 0xb(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x148ae
movaps (%r14), %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
xorps %xmm0, %xmm0
jmp 0x13878
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Main/MainHelpers.cc
// Function: reset()
void reset() {
	floorCount = 0;
	theTextDisplay.setFloorNumber(0);
	currentFloor.resetFloorNumber();

	NPCMovementPaused = false;
	merchantsAngered = false;

	usedPotions.clear();

	player = nullptr;

	playerHasBeenPlaced = false;

	alreadyActed.clear();

	playerHasActed = false;

	numberOfSpawnedPotions = 0;
	numberOfSpawnedGoldPiles = 0;
	numberOfSpawnedNPCs = 0;

}

// Assembly:
pushq %rbx
movl $0x0, 0x167f9(%rip)     # 0x2a090
leaq 0x16572(%rip), %rdi     # 0x29e10
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x1c5e0
leaq 0x1678a(%rip), %rdi     # 0x2a038
callq 0x1d370
movb %bl, 0x167db(%rip)      # 0x2a094
movb %bl, 0x167d6(%rip)      # 0x2a095
movq 0x167d2(%rip), %rax     # 0x2a098
cmpq %rax, 0x167d3(%rip)     # 0x2a0a0
je 0x138d6
movq %rax, 0x167ca(%rip)     # 0x2a0a0
xorps %xmm0, %xmm0
movq 0x167d8(%rip), %rdi     # 0x2a0b8
movups %xmm0, 0x167c9(%rip)    # 0x2a0b0
testq %rdi, %rdi
je 0x138f1
callq 0x1235a
xorl %ebx, %ebx
movb %bl, 0x167c7(%rip)      # 0x2a0c0
leaq 0x167c8(%rip), %rdi     # 0x2a0c8
callq 0x122ca
movb %bl, 0x167d5(%rip)      # 0x2a0e0
movl %ebx, 0x167d3(%rip)     # 0x2a0e4
movl %ebx, 0x167d1(%rip)     # 0x2a0e8
movl %ebx, 0x167cf(%rip)     # 0x2a0ec
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Cell/Cell.cc
// Function: Cell::addNeighbour(std::shared_ptr<Cell>)
void Cell::addNeighbour(std::shared_ptr<Cell> neighbour) {
	std::vector<int> coords = neighbour->getCoords();
	if (coords[0] < coordinates[0] && coords[1] < coordinates[1]) {
		neighbours[1] = neighbour;
	}
	else if (coords[0] < coordinates[0] && coords[1] > coordinates[1]) {
		neighbours[7] = neighbour;
	}
	else if (coords[0] < coordinates[0]) {
		neighbours[0] = neighbour;
	}
	else if (coords[0] > coordinates[0] && coords[1] < coordinates[1]) {
		neighbours[3] = neighbour;
	}
	else if (coords[0] > coordinates[0] && coords[1] > coordinates[1]) {
		neighbours[5] = neighbour;
	}
	else if (coords[0] > coordinates[0]) {
		neighbours[4] = neighbour;
	}
	else if (coords[1] > coordinates[1]) {
		neighbours[6] = neighbour;
	}
	else {
		neighbours[2] = neighbour;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rsi
addq $0x28, %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x120b4
movq (%r15), %rax
movq 0x28(%r14), %rcx
movl (%rcx), %edx
cmpl %edx, (%rax)
jge 0x14f19
movl 0x4(%rcx), %ecx
cmpl %ecx, 0x4(%rax)
jge 0x14f36
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x10(%rdi)
addq $0x18, %rdi
jmp 0x14f82
movl 0x4(%rax), %eax
movl 0x4(%rcx), %ecx
jle 0x14f49
movq (%rbx), %rdx
cmpl %ecx, %eax
jge 0x14f62
movq 0x40(%r14), %rdi
movq %rdx, 0x30(%rdi)
addq $0x38, %rdi
jmp 0x14f82
movq 0x40(%r14), %rdi
jle 0x14f78
movq (%rbx), %rax
movq %rax, 0x70(%rdi)
addq $0x78, %rdi
jmp 0x14f82
leaq 0x8(%rbx), %rsi
movq 0x40(%r14), %rdi
movq (%rbx), %rdx
cmpl %ecx, %eax
jle 0x14faf
movq %rdx, 0x60(%rdi)
addq $0x68, %rdi
jmp 0x14f89
addq $0x8, %rbx
movq 0x40(%r14), %rdi
cmpl %ecx, %eax
jle 0x14fb9
movq %rdx, 0x50(%rdi)
addq $0x58, %rdi
jmp 0x14f86
movq (%rbx), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
addq $0x8, %rbx
movq %rbx, %rsi
callq 0x123ca
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x14fa5
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rdx, 0x20(%rdi)
addq $0x28, %rdi
jmp 0x14f89
movq %rdx, 0x40(%rdi)
addq $0x48, %rdi
jmp 0x14f86
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Cell/Cell.cc
// Function: Cell::getNeighbour(Direction) const
shared_ptr<Cell> Cell::getNeighbour(Direction direction) const {
	// The neighbours are always placed in a particular order in the vector
	if (direction == Direction::North) {
		return (getNeighbours()[0]);
	}
	else if (direction == Direction::NorthWest) {
		return (getNeighbours()[1]);
	}
	else if (direction == Direction::West) {
		return (getNeighbours()[2]);
	}
	else if (direction == Direction::SouthWest) {
		 return (getNeighbours()[3]);
	}
	else if (direction == Direction::South) {
		return (getNeighbours()[4]);
	}
	else if (direction == Direction::SouthEast) {
		return (getNeighbours()[5]);
	}
	else if (direction == Direction::East) {
		return (getNeighbours()[6]);
	}
	else {
		return (getNeighbours()[7]); // NorthEast
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
addq $0x40, %rsi
cmpl $0x7, %edx
ja 0x1508c
movl %edx, %eax
leaq 0xafe6(%rip), %rcx      # 0x2004c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq (%rax), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x70(%rax), %rcx
movq %rcx, (%rbx)
movq 0x78(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x50(%rax), %rcx
movq %rcx, (%rbx)
movq 0x58(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x10(%rax), %rcx
movq %rcx, (%rbx)
movq 0x18(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x30(%rax), %rcx
movq %rcx, (%rbx)
movq 0x38(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x20(%rax), %rcx
movq %rcx, (%rbx)
movq 0x28(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x60(%rax), %rcx
movq %rcx, (%rbx)
movq 0x68(%rax), %rax
jmp 0x1514d
movq %rsp, %r14
movq %r14, %rdi
callq 0x15778
movq (%r14), %rax
movq 0x40(%rax), %rcx
movq %rcx, (%rbx)
movq 0x48(%rax), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x1516b
movq 0x13e4b(%rip), %rcx     # 0x28fa8
cmpb $0x0, (%rcx)
je 0x15167
incl 0x8(%rax)
jmp 0x1516b
lock
incl 0x8(%rax)
movq %rsp, %rdi
callq 0x12220
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Character.cc
// Function: Character::applyItem(std::shared_ptr<Item>)
void Character::applyItem(shared_ptr<Item> item) {
    // gets the item type
    ItemType itemType = item->getItemType();

    // if item is GoldPile
    if (itemType == ItemType::GoldPile) {
        // if GoldPile is not bound
        if (!(static_pointer_cast<GoldPile>(item)->getBoundState())) {
                this->addGold(item->getValue());
        }

    }

    // if item is Potion
    else if (itemType == ItemType::Potion) {
        this->applyPotion(static_pointer_cast<Potion>(item));
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
callq 0x1a33e
cmpl $0x1, %eax
je 0x17627
testl %eax, %eax
jne 0x176b2
movq (%r14), %rdi
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x17653
movq 0x1198c(%rip), %rax     # 0x28fa8
cmpb $0x0, (%rax)
je 0x1764e
incl 0x8(%r15)
jmp 0x17653
movq (%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1768c
movq 0x11964(%rip), %rcx     # 0x28fa8
cmpb $0x0, (%rcx)
je 0x17688
incl 0x8(%rax)
jmp 0x1768c
lock
incl 0x8(%r15)
callq 0x1a31c
movl %eax, %ebp
testq %r15, %r15
je 0x17667
movq %r15, %rdi
callq 0x1235a
testb %bpl, %bpl
jne 0x176b2
movq (%r14), %rdi
callq 0x1a342
movq %rbx, %rdi
movl %eax, %esi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x17716
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x158b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x176b2
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1235a
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %r15
jmp 0x176ca
movq %rax, %rbx
testq %r15, %r15
je 0x176d7
movq %r15, %rdi
callq 0x1235a
movq %rbx, %rdi
callq 0x53e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Character.cc
// Function: Character::setPlayer()
void Character::setPlayer() {
	this->isPlayer = true;
	this->isHostile = false;
	this->wallet = 0;
	this->name = NAME_PLAYER;
}

// Assembly:
movw $0x100, 0x48(%rdi)      # imm = 0x100
movl $0x0, 0x60(%rdi)
addq $0x88, %rdi
leaq 0x12311(%rip), %rsi     # 0x2b500
jmp 0x5180
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Elf.cc
// Function: Elf::postAttackRoutine(Character&, bool, Generator&)
void Elf::postAttackRoutine(Character& defender, bool hit, Generator& rng) {
	// not attacking again if already attacked or target is Drow
	if (extraAttacks == 0 || defender.getRace() == Race::Drow) {
		this->extraAttacks = ELF_NUMBER_OF_EXTRA_ATTACKS;
		return;
	}

	--(this->extraAttacks);

	// recursive call to attack, attack will
	// call postAttackRoutine again, but
	// will get stopped by base case
	this->attack(defender, rng);

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
cmpl $0x0, 0xa8(%rdi)
je 0x19b1c
movq %rcx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x19230
cmpl $0x1, %eax
jne 0x19b2d
movl $0x1, 0xa8(%r15)
popq %rbx
popq %r14
popq %r15
retq
decl 0xa8(%r15)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x17b50
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Human.cc
// Function: Human::deathRoutine()
void Human::deathRoutine() {
	vector<shared_ptr<Cell>> neighbourHood
		= (this->getCurrentCell())->getNeighbours();

	int numberOfGoldPilesAlreadyDropped = 0;


	for (auto neighbour : neighbourHood) {
		// if there is no item or character on a neighbouring cell
		if (neighbour && !(neighbour->getItem()) && !(neighbour->getOccupant())
            && neighbour->getCellType() == CellType::FloorTile) {
			
			neighbour->setItem
				(make_shared<GoldPile>(HUMAN_DROPPED_GOLD_PILE_VALUE));

			++numberOfGoldPilesAlreadyDropped;
		}

		if (numberOfGoldPilesAlreadyDropped
			== HUMAN_NUMBER_OF_GOLD_PILES_DROPPED) {

			return;
		}

	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rsi
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x1753c
movq (%rbx), %rsi
leaq 0x30(%rsp), %rdi
callq 0x1517e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19cb8
callq 0x1235a
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rbp
cmpq %rbp, %r13
je 0x19ddb
xorl %r12d, %r12d
movq (%r13), %r14
movq 0x8(%r13), %rbx
testq %rbx, %rbx
je 0x19cf0
movq 0xf2c6(%rip), %rax      # 0x28fa8
cmpb $0x0, (%rax)
je 0x19cec
incl 0x8(%rbx)
jmp 0x19cf0
lock
incl 0x8(%rbx)
testq %r14, %r14
je 0x19dbb
movq %rsp, %rdi
movq %r14, %rsi
callq 0x1501e
cmpq $0x0, (%rsp)
je 0x19d10
xorl %r15d, %r15d
jmp 0x19d48
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x15190
cmpq $0x0, 0x10(%rsp)
je 0x19d2a
xorl %r15d, %r15d
jmp 0x19d39
movq %r14, %rdi
callq 0x1501a
cmpl $0x1, %eax
sete %r15b
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x19d48
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19d57
callq 0x1235a
testb %r15b, %r15b
je 0x19dbb
movq $0x0, (%rsp)
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
leaq 0x10(%rsp), %rdx
leaq 0x6488(%rip), %rcx      # 0x20200
callq 0x1264e
movaps (%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x14fd6
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x19da9
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19db8
callq 0x1235a
incl %r12d
testq %rbx, %rbx
je 0x19dc8
movq %rbx, %rdi
callq 0x1235a
cmpl $0x2, %r12d
je 0x19ddb
addq $0x10, %r13
cmpq %rbp, %r13
jne 0x19cce
leaq 0x30(%rsp), %rdi
callq 0x12220
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19e56
callq 0x1235a
jmp 0x19e56
movq %rax, %r14
movq 0x18(%rsp), %rdi
jmp 0x19e1f
movq %rax, %r14
jmp 0x19e29
movq %rax, %r14
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x19e29
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19e3f
callq 0x1235a
jmp 0x19e3f
jmp 0x19e3c
movq %rax, %r14
testq %rbx, %rbx
je 0x19e4c
movq %rbx, %rdi
callq 0x1235a
leaq 0x30(%rsp), %rdi
callq 0x12220
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Merchant.cc
// Function: Merchant::doStartTurnRoutine(Generator&)
void Merchant::doStartTurnRoutine(Generator& rng) {
	// makes merchant hostile if
	// player has killed a merchant before
	if (merchantsAngered) {
		this->setHostile();
	}

	if (this->getHP() != MERCHANT_HP_MAX) {
		merchantsAngered = true;
		this->setHostile();
	}

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x101d9(%rip), %r14     # 0x2a095
cmpb $0x1, (%r14)
jne 0x19ecf
movq %rbx, %rdi
movl $0x1, %esi
callq 0x17710
movq %rbx, %rdi
callq 0x15b1c
cmpl $0x1e, %eax
jne 0x19ee4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x1, (%r14)
movq %rbx, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x17710
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Merchant.cc
// Function: Merchant::deathRoutine()
void Merchant::deathRoutine() {
	vector<shared_ptr<Cell>> neighbourHood 
		= (this->getCurrentCell())->getNeighbours();

	int numberOfGoldPilesAlreadyDropped = 0;

	for (auto neighbour : neighbourHood) {
		// if there is no item or character on a neighbouring cell
		if (neighbour && !(neighbour->getItem()) && !(neighbour->getOccupant())
			&& neighbour->getCellType() == CellType::FloorTile) {

			neighbour->setItem
			(make_shared<GoldPile>(MERCHANT_DROPPED_GOLD_PILE_VALUE));

			++numberOfGoldPilesAlreadyDropped;
		}

		if (numberOfGoldPilesAlreadyDropped
			== MERCHANT_NUMBER_OF_GOLD_PILES_DROPPED) {

			return;
		}

	}

	merchantsAngered = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rsi
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x1753c
movq (%rbx), %rsi
leaq 0x30(%rsp), %rdi
callq 0x1517e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19f34
callq 0x1235a
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rbp
cmpq %rbp, %r13
je 0x1a057
xorl %r12d, %r12d
movq (%r13), %r14
movq 0x8(%r13), %rbx
testq %rbx, %rbx
je 0x19f6c
movq 0xf04a(%rip), %rax      # 0x28fa8
cmpb $0x0, (%rax)
je 0x19f68
incl 0x8(%rbx)
jmp 0x19f6c
lock
incl 0x8(%rbx)
testq %r14, %r14
je 0x1a037
movq %rsp, %rdi
movq %r14, %rsi
callq 0x1501e
cmpq $0x0, (%rsp)
je 0x19f8c
xorl %r15d, %r15d
jmp 0x19fc4
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x15190
cmpq $0x0, 0x10(%rsp)
je 0x19fa6
xorl %r15d, %r15d
jmp 0x19fb5
movq %r14, %rdi
callq 0x1501a
cmpl $0x1, %eax
sete %r15b
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x19fc4
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19fd3
callq 0x1235a
testb %r15b, %r15b
je 0x1a037
movq $0x0, (%rsp)
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
leaq 0x10(%rsp), %rdx
leaq 0x6218(%rip), %rcx      # 0x2020c
callq 0x1264e
movaps (%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x14fd6
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1a025
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a034
callq 0x1235a
incl %r12d
testq %rbx, %rbx
je 0x1a044
movq %rbx, %rdi
callq 0x1235a
cmpl $0x1, %r12d
je 0x1a061
addq $0x10, %r13
cmpq %rbp, %r13
jne 0x19f4a
leaq 0x10037(%rip), %rax     # 0x2a095
movb $0x1, (%rax)
leaq 0x30(%rsp), %rdi
callq 0x12220
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x18(%rsp), %rdi
jmp 0x1a0a7
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0dc
callq 0x1235a
jmp 0x1a0dc
movq %rax, %r14
jmp 0x1a0b1
jmp 0x1a0c2
movq %rax, %r14
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0b1
callq 0x1235a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0c5
callq 0x1235a
jmp 0x1a0c5
movq %rax, %r14
testq %rbx, %rbx
je 0x1a0d2
movq %rbx, %rdi
callq 0x1235a
leaq 0x30(%rsp), %rdi
callq 0x12220
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Orc.cc
// Function: Orc::dealDamageTo(Character&, int&, Generator&)
bool Orc::dealDamageTo(Character& defender, int& damage, Generator& rng) {
	// if race is goblin, deal 50% more damage
	if (defender.getRace() == Race::Goblin) {
		damage *= 1.5;
	}

	return true;
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq %rsi, %rdi
callq 0x19230
cmpl $0x4, %eax
jne 0x1a159
cvtsi2sdl (%rbx), %xmm0
mulsd 0x60cd(%rip), %xmm0     # 0x20220
cvttsd2si %xmm0, %eax
movl %eax, (%rbx)
movb $0x1, %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Character/Vampire.cc
// Function: Vampire::postAttackRoutine(Character&, bool, Generator&)
void Vampire::postAttackRoutine(Character& defender, bool hit, Generator& rng) {
	// calculates potential HP gain/loss
	int HPToBeAdded = defender.getRace() == Race::Dwarf
		? -1 * VAMPIRE_ON_HIT_HEAL : VAMPIRE_ON_HIT_HEAL;

	// only add if actually hit enemy
	if (hit) {
		this->addHP(HPToBeAdded);
	}

}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x19230
testl %ebp, %ebp
je 0x1a2ac
cmpl $0x6, %eax
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
movl $0x5, %esi
cmovel %eax, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x169ae
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Generator/Generator.cc
// Function: Generator::genGold()
int Generator::genGold() {
    float r = (float)rand()/INT_MAX;

    r -= GOLD_PILE_SMALL_SPAWN_CHANCE;

    if (r < 0)
        return GOLD_PILE_SMALL_VALUE;

    r -= GOLD_PILE_NORMAL_SPAWN_CHANCE;

    if (r < 0)
        return GOLD_PILE_NORMAL_VALUE;

    return GOLD_PILE_DRAGON_HOARD_VALUE;
}

// Assembly:
pushq %rax
callq 0x50d0
cvtsi2ss %eax, %xmm0
mulss 0x5dfc(%rip), %xmm0     # 0x20274
addss 0x5e08(%rip), %xmm0     # 0x20288
movss 0x5e04(%rip), %xmm1     # 0x2028c
addss %xmm0, %xmm1
xorps %xmm2, %xmm2
xorl %eax, %eax
ucomiss %xmm1, %xmm2
setbe %al
ucomiss %xmm0, %xmm2
leal 0x2(,%rax,4), %ecx
movl $0x1, %eax
cmovbel %ecx, %eax
popq %rcx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Generator/Generator.cc
// Function: Generator::genNeighbourCoord(std::vector<int, std::allocator<int>>)
std::vector<int> Generator::genNeighbourCoord(std::vector<int> base) {
    Direction d = genDirection();
    switch (d) {
        case Direction::North:
            ++base[0];
            break;
        case Direction::NorthEast:
            ++base[0];
            ++base[1];
            break;
        case Direction::East:
            ++base[1];
            break;
        case Direction::SouthEast:
            --base[0];
            ++base[1];
            break;
        case Direction::South:
            --base[0];
            break;
        case Direction::SouthWest:
            --base[0];
            --base[1];
            break;
        case Direction::West:
            --base[1];
            break;
        case Direction::NorthWest:
            ++base[0];
            --base[1];
            break;
        default:
            break;
    }
    return base;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
callq 0x50d0
leal 0x7(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x8, %ecx
subl %ecx, %eax
movq (%rbx), %rcx
cmpl $0x7, %eax
ja 0x1a584
movl $0x1, %edx
leaq 0x5d3c(%rip), %rsi      # 0x20290
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
incl (%rcx)
jmp 0x1a567
incl (%rcx)
jmp 0x1a57e
decl (%rcx)
leaq 0x4(%rcx), %rax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0x1a582
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rcx, %rax
jmp 0x1a582
decl (%rcx)
leaq 0x4(%rcx), %rax
addl %edx, (%rax)
movq %rcx, (%r14)
movups 0x8(%rbx), %xmm0
movups %xmm0, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Messaging/Messaging.cc
// Function: potionToText[abi:cxx11](std::shared_ptr<Potion>)
string potionToText(const shared_ptr<Potion> potion) {
	PotionType type = potion->getPotionType();
	bool used = false;

	// check if player has used potion
	for (auto usedPotion: usedPotions) {
		if (usedPotion == type) {
			used = true;
			break;
		}

	}

	if (used) {
		return potionTypes[type] + " " + NAME_ITEM_POTION;
	}

	return NAME_POTION_UNKNOWN + " " + NAME_ITEM_POTION;

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq (%rsi), %rdi
callq 0x1a3bc
movl %eax, 0x2c(%rsp)
leaq 0xf610(%rip), %rdx      # 0x2a098
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
cmpq %rdx, %rcx
je 0x1aa9e
cmpl %eax, (%rcx)
je 0x1aaee
addq $0x4, %rcx
jmp 0x1aa8f
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x11a92(%rip), %rsi     # 0x2c540
movq 0x11a93(%rip), %rdx     # 0x2c548
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1942c
leaq 0x504b(%rip), %rsi      # 0x1fb17
movq %r14, %rdi
callq 0x5420
movq 0x11a85(%rip), %rsi     # 0x2c560
movq 0x11a86(%rip), %rdx     # 0x2c568
leaq 0x8(%rsp), %rdi
callq 0x5100
jmp 0x1ab46
leaq 0x11b5b(%rip), %rdi     # 0x2c650
leaq 0x2c(%rsp), %rsi
callq 0x1b026
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1942c
leaq 0x4ff1(%rip), %rsi      # 0x1fb17
movq %r14, %rdi
callq 0x5420
movq 0x11a2b(%rip), %rsi     # 0x2c560
movq 0x11a2c(%rip), %rdx     # 0x2c568
leaq 0x8(%rsp), %rdi
callq 0x5100
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1ab68
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1ab6e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ab9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1abaf
jmp 0x1abaf
jmp 0x1abaf
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1abc9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq %rbx, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Messaging/Messaging.cc
// Function: itemToText[abi:cxx11](std::shared_ptr<Item>)
string itemToText(const shared_ptr<Item> item) {
    if (item == nullptr) {
        return "";
    }

    else if (item->getItemType() == ItemType::GoldPile) {
        return goldPileToText(static_pointer_cast<GoldPile>(item));
    }

    else if (item->getItemType() == ItemType::Potion) {
        return potionToText(static_pointer_cast<Potion>(item));
    }

	return "";
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x1ac23
movq %rsi, %r14
callq 0x1a33e
testl %eax, %eax
je 0x1ac3e
movq (%r14), %rdi
callq 0x1a33e
cmpl $0x1, %eax
jne 0x1ac23
movq (%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1ac81
movq 0xe38f(%rip), %rcx      # 0x28fa8
cmpb $0x0, (%rcx)
je 0x1ac7d
incl 0x8(%rax)
jmp 0x1ac81
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x5680(%rip), %rdx      # 0x202b1
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x12414
jmp 0x1ac9d
movq (%r14), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x1ac69
movq 0xe34d(%rip), %rcx      # 0x28fa8
cmpb $0x0, (%rcx)
je 0x1ac65
incl 0x8(%rax)
jmp 0x1ac69
lock
incl 0x8(%rax)
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x1aa24
movq 0x20(%rsp), %rdi
jmp 0x1ac93
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1aa69
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1ac9d
callq 0x1235a
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
jmp 0x1acba
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1acc4
callq 0x1235a
movq %rbx, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/TextDisplay/TextDisplay.cc
// Function: TextDisplay::TextDisplay(std::vector<int, std::allocator<int>>)
TextDisplay::TextDisplay(std::vector<int> gridSize):
    gridSize {gridSize}
    {
        for (int i = 0; i < gridSize[0]; ++i) {
            theDisplay.push_back(std::vector<char>());
            for (int j = 0; j < gridSize[1]; ++j) {
                theDisplay[i].push_back(' ');
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0xca81(%rip), %rax      # 0x28cf0
movq %rax, (%rdi)
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x120b4
movq %r14, (%rsp)
leaq 0x20(%rbx), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq $0x0, 0x30(%rbx)
leaq 0x38(%rbx), %rdi
movq %rdi, 0x30(%rsp)
callq 0x51d0
xorps %xmm0, %xmm0
movups %xmm0, 0x1d8(%rbx)
xorl %eax, %eax
movq %rax, 0x1e8(%rbx)
leaq 0x208(%rbx), %rcx
movq %rcx, 0x1f8(%rbx)
movq %rax, 0x200(%rbx)
movb %al, 0x208(%rbx)
movb %al, 0x218(%rbx)
movq %rbx, 0x8(%rsp)
movl $0x1, 0x220(%rbx)
movq (%r13), %rax
cmpl $0x0, (%rax)
jle 0x1c37e
movq 0x8(%rsp), %rax
addq $0x1c0, %rax            # imm = 0x1C0
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
leaq 0x10(%rsp), %rbp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
callq 0x1c9c6
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1c33e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%r13), %rax
cmpl $0x0, 0x4(%rax)
jle 0x1c373
xorl %r12d, %r12d
leaq (%r14,%r14,2), %rbx
shlq $0x3, %rbx
movq (%r15), %rdi
addq %rbx, %rdi
movb $0x20, 0x10(%rsp)
movq %rbp, %rsi
callq 0x1cbc6
incl %r12d
movq (%r13), %rax
cmpl 0x4(%rax), %r12d
jl 0x1c353
incq %r14
movslq (%rax), %rax
cmpq %rax, %r14
jl 0x1c30b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
jmp 0x1c3e2
movq %rax, %r13
jmp 0x1c402
movq %rax, %r13
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1c3b6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x1c3b6
movq %rax, %r13
movq 0x28(%rsp), %rdi
callq 0x121ec
movq 0xcbc1(%rip), %rsi      # 0x28f88
movq 0x30(%rsp), %rdi
callq 0x51f0
movq 0x8(%rsp), %rbx
leaq 0xb8(%rbx), %rdi
callq 0x5110
movq (%rsp), %r14
movq %r15, %rdi
callq 0x13b28
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1c402
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x5280
movq %rbx, %rdi
callq 0x1bedc
movq %r13, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/TextDisplay/TextDisplay.cc
// Function: TextDisplay::setGridSize(std::vector<int, std::allocator<int>>)
void TextDisplay::setGridSize(std::vector<int> size) {
    gridSize = size;
    theDisplay = std::vector<std::vector<char>>();
    for (int i = 0; i < gridSize[0]; ++i) {
        theDisplay.push_back(std::vector<char>());
        for (int j = 0; j < gridSize[1]; ++j) {
            theDisplay[i].push_back(' ');
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x15694
movq 0x30(%rbx), %rax
movups 0x20(%rbx), %xmm0
xorps %xmm1, %xmm1
movups %xmm1, 0x20(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x30(%rbx)
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
leaq 0x20(%rsp), %r15
movaps %xmm1, (%r15)
movq %rcx, 0x10(%r15)
callq 0x13b28
movq %r15, %rdi
callq 0x13b28
movq 0x8(%rbx), %rax
cmpl $0x0, (%rax)
jle 0x1c4e6
addq $0x20, %rbx
xorl %r12d, %r12d
movq %rsp, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c9c6
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1c4ac
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%r14), %rax
cmpl $0x0, 0x4(%rax)
jle 0x1c4db
xorl %ebp, %ebp
leaq (%r12,%r12,2), %r13
shlq $0x3, %r13
movq (%rbx), %rdi
addq %r13, %rdi
movb $0x20, (%rsp)
movq %r15, %rsi
callq 0x1cbc6
incl %ebp
movq (%r14), %rax
cmpl 0x4(%rax), %ebp
jl 0x1c4bf
incq %r12
movslq (%rax), %rax
cmpq %rax, %r12
jl 0x1c47b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1c50e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq %rbx, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/TextDisplay/TextDisplay.cc
// Function: TextDisplay::notify(Subject&)
void TextDisplay::notify(Subject &notifier) {
    Info i = notifier.getInfo();
    if (i.isCellInfo) {
        info.coordinates = i.coordinates;
        info.displayChar = i.displayChar;
        theDisplay[info.coordinates[0]][info.coordinates[1]] = info.displayChar;
    }
    else {

        info.lastAction = i.lastAction;
        info.race = i.race;
        info.gold = i.gold;
        info.HP = i.HP;
        info.attackValue = i.attackValue;
        info.defenceValue = i.defenceValue;
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsp, %r14
movq %r14, %rdi
callq *(%rax)
cmpb $0x1, 0x58(%r14)
jne 0x1c56c
leaq 0x18(%rsp), %rsi
leaq 0x1d8(%rbx), %rdi
callq 0x15694
movb 0x30(%rsp), %al
movb %al, 0x1f0(%rbx)
movq 0x20(%rbx), %rcx
movq 0x1d8(%rbx), %rdx
movslq (%rdx), %rsi
leaq (%rsi,%rsi,2), %rsi
movslq 0x4(%rdx), %rdx
movq (%rcx,%rsi,8), %rcx
movb %al, (%rcx,%rdx)
jmp 0x1c592
leaq 0x38(%rsp), %rsi
leaq 0x1f8(%rbx), %rdi
callq 0x5180
movaps (%rsp), %xmm0
movups %xmm0, 0x1c0(%rbx)
movl 0x10(%rsp), %eax
movl %eax, 0x1d0(%rbx)
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c5ad
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1c5c4
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x121ec
movq %rbx, %rdi
callq 0x53e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/XxAdi101xX[P]ChamberCrawler/Floor/Floor.cc
// Function: Floor::getStairCoords()
vector<int> Floor::getStairCoords() {
    for (int i = 0; i < floorDimensions[0]; ++i) {
        for (int j = 0; j < floorDimensions[1]; ++j) {
			shared_ptr<Cell> tempCell = theFloor[i][j];
			if (tempCell && tempCell->getCellType() == CellType::Stairs) {
				return vector<int>{i,j};
			}
        }
    }
	throw 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x20(%rsi), %rax
movl (%rax), %ecx
testl %ecx, %ecx
jle 0x1d41d
movq %rsi, %r14
xorl %r12d, %r12d
cmpl $0x0, 0x4(%rax)
jle 0x1d412
movl $0x8, %ebx
leaq (%r12,%r12,2), %r13
xorl %ebp, %ebp
movq (%r14), %rax
movq (%rax,%r13,8), %rax
movq -0x8(%rax,%rbx), %rdi
movq (%rax,%rbx), %r15
testq %r15, %r15
je 0x1d3e0
movq 0xbbd8(%rip), %rax      # 0x28fa8
cmpb $0x0, (%rax)
je 0x1d3db
incl 0x8(%r15)
jmp 0x1d3e0
lock
incl 0x8(%r15)
testq %rdi, %rdi
je 0x1d3ef
callq 0x1501a
cmpl $0x4, %eax
je 0x1d43e
testq %r15, %r15
je 0x1d3fc
movq %r15, %rdi
callq 0x1235a
incq %rbp
movq 0x20(%r14), %rax
movslq 0x4(%rax), %rcx
addq $0x10, %rbx
cmpq %rcx, %rbp
jl 0x1d3b4
movl (%rax), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0x1d3a3
movl $0x4, %edi
callq 0x5160
movl $0x1, (%rax)
movq 0xbb4c(%rip), %rsi      # 0x28f80
movq %rax, %rdi
xorl %edx, %edx
callq 0x53c0
leaq 0x10(%rsp), %rsi
movl %r12d, (%rsi)
movl %ebp, 0x4(%rsi)
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x12064
testq %r15, %r15
je 0x1d46d
movq %r15, %rdi
callq 0x1235a
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d481
movq %rax, %rbx
testq %r15, %r15
je 0x1d491
movq %r15, %rdi
callq 0x1235a
movq %rbx, %rdi
callq 0x53e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_import_packages.cpp
// Function: import_packages<double>::import_packages(exprtk::symbol_table<double>&)
import_packages(symbol_table_t& symbol_table)
   : igfun_t("S")
   , symbol_table_(symbol_table)
   {
      igfun_t::has_side_effects() = false;

      package_map_.emplace(
         "exprtk.rtl.io"     ,
         [&](symbol_table_t& symbtab) -> bool { return symbtab.add_package(io_package); });

      package_map_.emplace(
         "exprtk.rtl.io.file",
         [&](symbol_table_t& symbtab) -> bool { return symbtab.add_package(file_package); });

      package_map_.emplace(
         "exprtk.rtl.vecops" ,
         [&](symbol_table_t& symbtab) -> bool { return symbtab.add_package(vector_package); });
   }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x198448(%rip), %rsi    # 0x2b2b4a
leaq 0x198442(%rip), %rdx    # 0x2b2b4b
leaq 0x8(%rsp), %rdi
callq 0x11a600
movw $0x100, 0x8(%rbx)       # imm = 0x100
movq $0x0, 0x10(%rbx)
movq $-0x1, 0x18(%rbx)
leaq 0x291118(%rip), %rax    # 0x3ab848
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %r12
movq %r12, 0x20(%rbx)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
callq 0x11caba
movl $0x0, 0x40(%rbx)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11a76f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1170b0
leaq 0x291042(%rip), %rax    # 0x3ab7b8
movq %rax, (%rbx)
movq %r14, 0x48(%rbx)
leaq 0x50(%rbx), %r14
leaq 0x58(%rbx), %rax
movl $0x0, 0x58(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x60(%rbx)
movq %rax, 0x68(%rbx)
movq %rax, 0x70(%rbx)
movq %rcx, 0x78(%rbx)
leaq 0x80(%rbx), %r15
movq %r15, %rdi
callq 0x11cfe0
leaq 0x150(%rbx), %r13
movq %r13, %rdi
callq 0x11d0c0
leaq 0x2c0(%rbx), %rbp
movq %rbp, %rdi
callq 0x11d1e2
movb $0x0, 0x9(%rbx)
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x19832c(%rip), %rsi    # 0x2b2b0a
movq %r14, %rdi
callq 0x124e32
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x198323(%rip), %rsi    # 0x2b2b18
movq %r14, %rdi
callq 0x1251da
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x19831f(%rip), %rsi    # 0x2b2b2b
movq %r14, %rdi
callq 0x12667c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11a827
jmp 0x11a827
movq %rax, (%rsp)
movq %rbp, %rdi
callq 0x11d88c
jmp 0x11a839
movq %rax, (%rsp)
movq %r13, %rdi
callq 0x11dca2
jmp 0x11a847
movq %rax, (%rsp)
movq %r15, %rdi
callq 0x11dd46
movq %r14, %rdi
callq 0x1271b6
leaq 0x290fea(%rip), %rax    # 0x3ab848
movq %rax, (%rbx)
movq 0x20(%rbx), %rdi
cmpq %r12, %rdi
je 0x11a897
movq (%r12), %rsi
incq %rsi
callq 0x1170b0
jmp 0x11a897
movq %rax, (%rsp)
jmp 0x11a84f
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11a897
movq 0x18(%rsp), %rsi
jmp 0x11a86e
movq %rax, (%rsp)
movq (%rsp), %rdi
callq 0x117360
// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_import_packages.cpp
// Function: import_packages<double>::operator()(exprtk::type_store<double>::parameter_list)
inline T operator()(parameter_list_t parameters) override
   {
      const string_t package(parameters[0]);

      const auto itr = package_map_.find(exprtk::to_str(package));

      if (package_map_.end() == itr)
      {
         return T(0);
      }

      return itr->second(symbol_table_) ? T(1) : T(0);
   }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq (%rax), %rsi
leaq 0x50(%rdi), %r14
leaq 0x18(%rsp), %r12
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x11a600
movq %r14, %rdi
movq %r15, %rsi
callq 0x127212
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11de49
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1170b0
leaq 0x58(%rbx), %rax
cmpq %r14, %rax
je 0x11de6c
cmpq $0x0, 0x50(%r14)
je 0x11de85
movq %r14, %rdi
addq $0x40, %rdi
movq 0x48(%rbx), %rsi
callq *0x58(%r14)
testb %al, %al
jne 0x11de71
xorps %xmm0, %xmm0
jmp 0x11de79
movsd 0x190267(%rip), %xmm0   # 0x2ae0e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x1175a0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11dea4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1170b0
movq %rbx, %rdi
callq 0x117360
// File: /workspace/github_cpp_makefile_star2_O3/ConsoleTVs[P]VirtualMachine/src/values.cpp
// Function: VM::Value::to_float()
float Value::to_float()
{
    switch (this->type) {
        case VALUE_INTEGER: { return (float) this->ivalue; }
        case VALUE_FLOAT: { return (float) this->fvalue; }
        case VALUE_BOOLEAN: { return this->bvalue ? 1 : 0; }
        case VALUE_STRING: { return (float) this->svalue->length(); }
        case VALUE_LIST: { return (float) this->lvalue->size(); }
        default: { printf("Error converting value to int.\n"); }
    }
}

// Assembly:
movzbl (%rdi), %eax
cmpq $0x4, %rax
ja 0x2630
leaq 0xbbc(%rip), %rcx       # 0x3194
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2ssl 0x8(%rdi), %xmm0
retq
movq 0x8(%rdi), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x3, %rax
js 0x2614
cvtsi2ss %rax, %xmm0
retq
movsbl 0x8(%rdi), %eax
cvtsi2ss %eax, %xmm0
retq
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
jns 0x25f8
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
retq
movss 0x8(%rdi), %xmm0
retq
pushq %rax
callq 0x11a3