LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Krymancer[P]Matrix-cpp/src/Matrix.cpp
// Function: Matrix::dSigmod()
Matrix Matrix::dSigmod() {
    for (int i = 0; i < this->rows; i++) {
        for (int j = 0; j < this->cols; j++) {
            double value = this->data[i][j];
            this->data[i][j] = 1 - (value * value);
        }
    }

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
testq %rax, %rax
je 0x3c7f
movl 0x4(%rsi), %ecx
movq 0x8(%rsi), %rdx
xorl %edi, %edi
movsd 0x33c1(%rip), %xmm0     # 0x7008
testq %rcx, %rcx
je 0x3c77
leaq (%rdi,%rdi,2), %r8
movq (%rdx,%r8,8), %r8
xorl %r9d, %r9d
movsd (%r8,%r9,8), %xmm1
mulsd %xmm1, %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
movsd %xmm2, (%r8,%r9,8)
incq %r9
cmpq %r9, %rcx
jne 0x3c57
incq %rdi
cmpq %rax, %rdi
jne 0x3c47
movq %rbx, %rdi
callq 0x2946
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Krymancer[P]Matrix-cpp/src/Matrix.cpp
// Function: Matrix::map(double (*)(double))
Matrix Matrix::map(functioncall func) {
    for (int i = 0; i < this->rows; i++) {
        for (int j = 0; j < this->cols; j++) {
            double value = this->data[i][j];
            this->data[i][j] = func(value);
        }
    }

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
cmpl $0x0, (%rsi)
je 0x3cfb
movq %rdx, %r15
xorl %r12d, %r12d
cmpl $0x0, 0x4(%r14)
je 0x3cf0
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %r13
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq (%rax,%r13), %rax
movsd (%rax,%rbx,8), %xmm0
callq *%r15
movq 0x8(%r14), %rax
movq (%rax,%r13), %rax
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
movl 0x4(%r14), %eax
cmpq %rax, %rbx
jb 0x3cc7
incq %r12
movl (%r14), %eax
cmpq %rax, %r12
jb 0x3cb2
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2946
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: registerInterval::set_code(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void registerInterval::set_code(string s){
	code = s;
	registerInterval_numberOfInstructions = 0;

	int found = 0;
	found = code.find(";", found + 1, 1);
	while (found != string::npos){
		registerInterval_numberOfInstructions++;
		found = code.find(";", found + 1, 1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
movq %r14, %rdi
callq 0x2120
movl $0x0, 0x58(%rbx)
leaq 0x89b2(%rip), %rsi      # 0xb12d
movl $0x1, %edx
movl $0x1, %ecx
movq %r14, %rdi
callq 0x2360
cmpl $-0x1, %eax
je 0x27b6
leaq 0x8994(%rip), %r15      # 0xb12d
incl 0x58(%rbx)
incl %eax
movslq %eax, %rdx
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2360
cmpl $-0x1, %eax
jne 0x2799
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: registerInterval::set_register_list(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
void registerInterval::set_register_list(set<string> s){
	register_list = s;

	int pos;
	string str;
	set<string>::iterator it;
	for(int i = 0; i < 64; i++){
		register_vector.push_back(false);
	}

	for(it = register_list.begin(); it != register_list.end(); ++it){
		str = *it;
		str.erase(str.begin());
		pos = stoi(str);
		register_vector[pos] = true;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
addq $0x60, %rdi
callq 0x91ea
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rbx, -0x30(%rbp)
leaq 0x8(%rbx), %r14
movl $0x40, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x8c82
decl %ebx
jne 0x2865
movq -0x30(%rbp), %rax
movq 0x78(%rax), %r14
addq $0x68, %rax
movq %rax, -0x40(%rbp)
cmpq %rax, %r14
je 0x296c
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
leaq -0x68(%rbp), %rbx
addq $0x3f, %rax
movq %rax, -0x38(%rbp)
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2120
movl $0x1, %edx
movq %rbx, %r15
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2260
movq -0x68(%rbp), %r12
callq 0x2050
movq %rax, %r13
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r12, %rdi
leaq -0x48(%rbp), %rsi
movl $0xa, %edx
callq 0x22b0
cmpq %r12, -0x48(%rbp)
je 0x298d
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x2999
movl (%r13), %ecx
cmpl $0x22, %ecx
je 0x2999
testl %ecx, %ecx
jne 0x2910
movl %ebx, (%r13)
movslq %eax, %rcx
leaq 0x3f(%rcx), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
shlq $0x3, %rdx
movq -0x30(%rbp), %rsi
addq 0x8(%rsi), %rdx
andq -0x38(%rbp), %rcx
xorl %esi, %esi
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
cmpq %rdi, %rcx
setbe %sil
movl $0x1, %edi
movl %eax, %ecx
shlq %cl, %rdi
orq %rdi, -0x8(%rdx,%rsi,8)
movq %r14, %rdi
callq 0x2240
movq %rax, %r14
cmpq -0x40(%rbp), %rax
movq %r15, %rbx
jne 0x28a2
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x297e
callq 0x21c0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x883a(%rip), %rdi      # 0xb1ce
callq 0x2130
leaq 0x882e(%rip), %rdi      # 0xb1ce
callq 0x22c0
jmp 0x29a9
jmp 0x29a9
movq %rax, %r14
jmp 0x29bc
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x29bc
movl %ebx, (%r13)
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x29ce
callq 0x21c0
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: registerInterval::add_predecessor(registerInterval*)
void registerInterval::add_predecessor(registerInterval* i){
	bool found = false;
	for (int j = 0; j < predecessors.size(); j++){
		if (predecessors[j] == i)
			found = true;
	}

	if (!found)
		predecessors.push_back(i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rsi, %rax
movq %rsi, -0x8(%rbp)
movq 0x90(%rdi), %rcx
movq 0x98(%rdi), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x2a29
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %r9d, %r9d
movl $0x1, %r10d
xorl %r8d, %r8d
cmpq %rax, (%rcx,%r9,8)
movzbl %r8b, %r8d
cmovel %r10d, %r8d
incq %r9
cmpq %r9, %rdx
jne 0x2a13
jmp 0x2a2c
xorl %r8d, %r8d
testb $0x1, %r8b
jne 0x2a58
cmpq 0xa0(%rdi), %rsi
je 0x2a48
movq %rax, (%rsi)
addq $0x8, 0x98(%rdi)
jmp 0x2a58
addq $0x90, %rdi
leaq -0x8(%rbp), %rdx
callq 0x9bb6
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: registerInterval::add_successors(registerInterval*)
void registerInterval::add_successors(registerInterval* i){
	bool found = false;
	for (int j = 0; j < successors.size(); j++){
		if (successors[j] == i)
			found = true;
	}

	if (!found)
		successors.push_back(i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rsi, %rax
movq %rsi, -0x8(%rbp)
movq 0xa8(%rdi), %rcx
movq 0xb0(%rdi), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x2ab1
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %r9d, %r9d
movl $0x1, %r10d
xorl %r8d, %r8d
cmpq %rax, (%rcx,%r9,8)
movzbl %r8b, %r8d
cmovel %r10d, %r8d
incq %r9
cmpq %r9, %rdx
jne 0x2a9b
jmp 0x2ab4
xorl %r8d, %r8d
testb $0x1, %r8b
jne 0x2ae0
cmpq 0xb8(%rdi), %rsi
je 0x2ad0
movq %rax, (%rsi)
addq $0x8, 0xb0(%rdi)
jmp 0x2ae0
addq $0xa8, %rdi
leaq -0x8(%rbp), %rdx
callq 0x9bb6
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::basicBlock()
basicBlock::basicBlock(){
	ID = IDgenerator++;
	NumberOfInstructions = 0;
	controlBB = false;
	controling_basicBlock = nullptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
leaq 0x98(%rdi), %rcx
movl %eax, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq %rcx, 0xa8(%rdi)
movq %rcx, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
leaq 0xc8(%rdi), %rcx
movl %eax, 0xc8(%rdi)
movq %rax, 0xd0(%rdi)
movq %rcx, 0xd8(%rdi)
movq %rcx, 0xe0(%rdi)
movq %rax, 0xe8(%rdi)
movl 0xc640(%rip), %ecx      # 0xf208
leal 0x1(%rcx), %edx
movl %edx, 0xc637(%rip)      # 0xf208
movl %ecx, (%rdi)
movl %eax, 0x48(%rdi)
movb %al, 0x50(%rdi)
movq %rax, 0x58(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::basicBlock(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
basicBlock::basicBlock(string s){
	ID = IDgenerator++;
	name = s;
	NumberOfInstructions = 0;
	controlBB = false;
	controling_basicBlock = nullptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %r13
movq %r13, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %r15
movq %r15, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
leaq 0x60(%rdi), %r12
leaq 0x98(%rdi), %rcx
movl %eax, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq %rcx, 0xa8(%rdi)
movq %rcx, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
leaq 0xc8(%rdi), %rcx
movl %eax, 0xc8(%rdi)
movq %rax, 0xd0(%rdi)
movq %rcx, 0xd8(%rdi)
movq %rcx, 0xe0(%rdi)
movq %rax, 0xe8(%rdi)
movl 0xc518(%rip), %eax      # 0xf208
leal 0x1(%rax), %ecx
movl %ecx, 0xc50f(%rip)      # 0xf208
movl %eax, (%rdi)
movq %rbx, %rdi
callq 0x2120
movl $0x0, 0x48(%r14)
movb $0x0, 0x50(%r14)
movq $0x0, 0x58(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, -0x38(%rbp)
leaq 0xc0(%r14), %rdi
leaq 0x90(%r14), %rax
movq %rax, -0x30(%rbp)
callq 0x8f66
movq -0x30(%rbp), %rdi
callq 0x8f66
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x2d59
callq 0x21c0
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2d67
callq 0x21c0
movq 0x28(%r14), %rdi
cmpq %r15, %rdi
je 0x2d75
callq 0x21c0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x2d82
callq 0x21c0
movq -0x38(%rbp), %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::basicBlock(int)
basicBlock::basicBlock(int i){
	ID = IDgenerator2++;
	ABB = i;
	NumberOfInstructions = 0;
	controlBB = false;
	exit_state = false;
	controling_basicBlock = nullptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
leaq 0x98(%rdi), %rcx
movl %eax, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq %rcx, 0xa8(%rdi)
movq %rcx, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
leaq 0xc8(%rdi), %rcx
movl %eax, 0xc8(%rdi)
movq %rax, 0xd0(%rdi)
movq %rcx, 0xd8(%rdi)
movq %rcx, 0xe0(%rdi)
movq %rax, 0xe8(%rdi)
movl 0xc3f2(%rip), %ecx      # 0xf20c
leal 0x1(%rcx), %edx
movl %edx, 0xc3e9(%rip)      # 0xf20c
movl %ecx, (%rdi)
movl %esi, 0x4c(%rdi)
movl %eax, 0x48(%rdi)
movw $0x0, 0x50(%rdi)
movq %rax, 0x58(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::set_code(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void basicBlock::set_code(string s)
{
	code = s;
	NumberOfInstructions = 0;

	int found = 0;
	found = code.find(";", found + 1, 1);
	while (found != string::npos){
		NumberOfInstructions++;
		found = code.find(";", found + 1, 1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
movq %r14, %rdi
callq 0x2120
movl $0x0, 0x48(%rbx)
leaq 0x82c0(%rip), %rsi      # 0xb12d
movl $0x1, %edx
movl $0x1, %ecx
movq %r14, %rdi
callq 0x2360
cmpl $-0x1, %eax
je 0x2ea8
leaq 0x82a2(%rip), %r15      # 0xb12d
incl 0x48(%rbx)
incl %eax
movslq %eax, %rdx
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2360
cmpl $-0x1, %eax
jne 0x2e8b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::add_predecessor(basicBlock*)
void basicBlock::add_predecessor(basicBlock* b)
{
	bool found = false;
	for (int i = 0; i < predecessors.size(); i++){
		if (predecessors[i] == b)
			found = true;
	}

	if (!found)
		predecessors.push_back(b);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rsi, %rax
movq %rsi, -0x8(%rbp)
movq 0x60(%rdi), %rcx
movq 0x68(%rdi), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x2f1d
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %r9d, %r9d
movl $0x1, %r10d
xorl %r8d, %r8d
cmpq %rax, (%rcx,%r9,8)
movzbl %r8b, %r8d
cmovel %r10d, %r8d
incq %r9
cmpq %r9, %rdx
jne 0x2f07
jmp 0x2f20
xorl %r8d, %r8d
testb $0x1, %r8b
jne 0x2f43
cmpq 0x70(%rdi), %rsi
je 0x2f36
movq %rax, (%rsi)
addq $0x8, 0x68(%rdi)
jmp 0x2f43
addq $0x60, %rdi
leaq -0x8(%rbp), %rdx
callq 0x9e62
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::add_successor(basicBlock*)
void basicBlock::add_successor(basicBlock* b)
{
	bool found = false;
	for (int i = 0; i < successors.size(); i++){
		if (successors[i] == b)
			found = true;
	}

	if (!found)
		successors.push_back(b);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rsi, %rax
movq %rsi, -0x8(%rbp)
movq 0x78(%rdi), %rcx
movq 0x80(%rdi), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x2f9a
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %r9d, %r9d
movl $0x1, %r10d
xorl %r8d, %r8d
cmpq %rax, (%rcx,%r9,8)
movzbl %r8b, %r8d
cmovel %r10d, %r8d
incq %r9
cmpq %r9, %rdx
jne 0x2f84
jmp 0x2f9d
xorl %r8d, %r8d
testb $0x1, %r8b
jne 0x2fc6
cmpq 0x88(%rdi), %rsi
je 0x2fb9
movq %rax, (%rsi)
addq $0x8, 0x80(%rdi)
jmp 0x2fc6
addq $0x78, %rdi
leaq -0x8(%rbp), %rdx
callq 0x9e62
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]Register-Interval/./src/implementation/../interface/../implementation/ControlFlowGraph.cpp
// Function: basicBlock::delete_successor(basicBlock*)
void basicBlock::delete_successor(basicBlock* b){
	vector<basicBlock*>::iterator it;
	for (it = successors.begin(); it != successors.end(); it++){
		if(*it == b){
			successors.erase(it);
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x78(%rdi), %rdi
movq 0x80(%rbx), %rax
cmpq %rax, %rdi
je 0x3027
movq %rax, %rdx
subq %rdi, %rdx
addq $-0x8, %rdx
cmpq %rsi, (%rdi)
je 0x3011
addq $0x8, %rdi
addq $-0x8, %rdx
cmpq %rax, %rdi
jne 0x2ffd
jmp 0x3027
leaq 0x8(%rdi), %rsi
cmpq %rax, %rsi
je 0x301f
callq 0x2330
addq $-0x8, 0x80(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xa8c0(%rip), %rax      # 0xf218
movq 0xa8b1(%rip), %rcx      # 0xf210
subq %rcx, %rax
je 0x4994
xorl %r15d, %r15d
leaq 0xa922(%rip), %r14      # 0xf290
movq %r14, %rdi
xorl %esi, %esi
callq 0x8c82
incq %r15
movq 0xa896(%rip), %rax      # 0xf218
subq 0xa887(%rip), %rax      # 0xf210
sarq $0x3, %rax
cmpq %r15, %rax
ja 0x496e
jmp 0x4998
sarq $0x3, %rax
testq %rax, %rax
je 0x49c3
movq 0xa8ec(%rip), %rdx      # 0xf290
xorl %ecx, %ecx
movq %rcx, %rsi
movq $-0x2, %rdi
rolq %cl, %rdi
shrq $0x6, %rsi
andq %rdi, (%rdx,%rsi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x49a6
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x567a
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9c3e(%rip), %rcx      # 0xf228
movq (%rcx), %rax
movslq (%rax), %rdx
movq 0x9c39(%rip), %rax      # 0xf230
subq %rcx, %rax
sarq $0x3, %rax
addq %rdx, %rax
je 0x563d
xorl %r15d, %r15d
leaq 0x9cab(%rip), %r14      # 0xf2b8
movq %r14, %rdi
xorl %esi, %esi
callq 0x8c82
incq %r15
movq 0x9c07(%rip), %rcx      # 0xf228
movq (%rcx), %rax
movslq (%rax), %rdx
movq 0x9c02(%rip), %rax      # 0xf230
subq %rcx, %rax
sarq $0x3, %rax
addq %rdx, %rax
cmpq %r15, %rax
ja 0x560d
testq %rax, %rax
je 0x5668
movq 0x9c6f(%rip), %rdx      # 0xf2b8
xorl %ecx, %ecx
movq %rcx, %rsi
movq $-0x2, %rdi
rolq %cl, %rdi
shrq $0x6, %rsi
andq %rdi, (%rdx,%rsi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x564b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5770
// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x9bec(%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 0x8e42
movq (%rbx), %rdi
cmpq %rdi, 0x8(%rbx)
je 0x5741
xorl %ebx, %ebx
leaq 0x3f(%r14), %r15
movq (%rdi,%rbx,8), %rdi
movslq (%rdi), %rax
leaq 0x3f(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x6, %rcx
shlq $0x3, %rcx
addq 0x9b85(%rip), %rcx      # 0xf290
movq %rax, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %r14, %rdx
setbe %sil
movq -0x8(%rcx,%rsi,8), %rcx
btq %rax, %rcx
jb 0x572a
callq 0x567a
incq %rbx
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x56ea
testq %rdi, %rdi
je 0x574b
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 0x5767
callq 0x21c0
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x9b1e(%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 0x8cd6
movq (%rbx), %rdi
cmpq %rdi, 0x8(%rbx)
je 0x583a
xorl %ebx, %ebx
leaq 0x3f(%r14), %r15
movq (%rdi,%rbx,8), %rdi
movslq (%rdi), %rax
leaq 0x3f(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x6, %rcx
shlq $0x3, %rcx
addq 0x9ab4(%rip), %rcx      # 0xf2b8
movq %rax, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %r14, %rdx
setbe %sil
movq -0x8(%rcx,%rsi,8), %rcx
btq %rax, %rcx
jb 0x5823
callq 0x5770
incq %rbx
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0x57e3
testq %rdi, %rdi
je 0x5844
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 0x5860
callq 0x21c0
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/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 0x38(%rsp), %r15
leaq 0x50(%rsp), %r13
leaq 0x20(%rsp), %rbp
movq %r15, %rdi
leaq 0x17272(%rip), %rsi     # 0x2a078
callq 0x11fd4
movq %r13, %rdi
leaq 0x16ff3(%rip), %rsi     # 0x29e08
movq %r15, %rdx
callq 0x1a4e2
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1243c
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x12e3f
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x12e56
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x11fd4
movq %rbp, %rdi
callq 0x12bbc
movl %eax, %r14d
movb $0x1, %r12b
testb %al, %al
je 0x12e8d
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x11fd4
leaq 0x8(%rsp), %rdi
callq 0x12c59
movl %eax, %r12d
testb %r14b, %r14b
je 0x12ea9
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12ea9
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x12ec0
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
testb %r12b, %r12b
jne 0x12dfc
movq %rbx, %rax
addq $0x68, %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 0x12f15
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x12f15
jmp 0x12f0d
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x12f2c
movq 0x48(%rsp), %rsi
jmp 0x12f24
movq %rax, %r14
jmp 0x12f2c
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x12f2c
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x12f40
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x5280
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O1/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, 0x16798(%rip)     # 0x2a090
leaq 0x16511(%rip), %rdi     # 0x29e10
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x1c680
leaq 0x16729(%rip), %rdi     # 0x2a038
callq 0x1d41e
movb %bl, 0x1677a(%rip)      # 0x2a094
movb %bl, 0x16775(%rip)      # 0x2a095
movq 0x16771(%rip), %rax     # 0x2a098
cmpq %rax, 0x16772(%rip)     # 0x2a0a0
je 0x13937
movq %rax, 0x16769(%rip)     # 0x2a0a0
xorps %xmm0, %xmm0
movq 0x16777(%rip), %rdi     # 0x2a0b8
movups %xmm0, 0x16768(%rip)    # 0x2a0b0
testq %rdi, %rdi
je 0x13952
callq 0x12250
xorl %ebx, %ebx
movb %bl, 0x16766(%rip)      # 0x2a0c0
leaq 0x16767(%rip), %rdi     # 0x2a0c8
callq 0x121c6
movb %bl, 0x16774(%rip)      # 0x2a0e0
movl %ebx, 0x16772(%rip)     # 0x2a0e4
movl %ebx, 0x16770(%rip)     # 0x2a0e8
movl %ebx, 0x1676e(%rip)     # 0x2a0ec
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x11fd4
movq (%r15), %rcx
movl (%rcx), %edx
movq 0x28(%r14), %rax
movl (%rax), %esi
cmpl %esi, %edx
jge 0x14e34
movl 0x4(%rcx), %edi
cmpl 0x4(%rax), %edi
jge 0x14e03
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x10(%rdi)
addq $0x18, %rdi
jmp 0x14e4f
cmpl %esi, %edx
jge 0x14e34
movl 0x4(%rcx), %edi
cmpl 0x4(%rax), %edi
jle 0x14e20
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x70(%rdi)
addq $0x78, %rdi
jmp 0x14e4f
cmpl %esi, %edx
jge 0x14e34
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
jmp 0x14e4f
cmpl %esi, %edx
jle 0x14e8a
movl 0x4(%rcx), %edi
cmpl 0x4(%rax), %edi
jge 0x14e58
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x30(%rdi)
addq $0x38, %rdi
addq $0x8, %rbx
movq %rbx, %rsi
jmp 0x14eaf
cmpl %esi, %edx
jle 0x14e8a
movl 0x4(%rcx), %edi
cmpl 0x4(%rax), %edi
jle 0x14e75
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x50(%rdi)
addq $0x58, %rdi
jmp 0x14e4f
cmpl %esi, %edx
jle 0x14e8a
movq 0x40(%r14), %rdi
movq (%rbx), %rax
movq %rax, 0x40(%rdi)
addq $0x48, %rdi
jmp 0x14e4f
movl 0x4(%rcx), %edx
leaq 0x8(%rbx), %rsi
movq 0x40(%r14), %rdi
movq (%rbx), %rcx
cmpl 0x4(%rax), %edx
jle 0x14ea7
movq %rcx, 0x60(%rdi)
addq $0x68, %rdi
jmp 0x14eaf
movq %rcx, 0x20(%rdi)
addq $0x28, %rdi
callq 0x122c0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x14ecb
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x14f9e
movl %edx, %eax
leaq 0xb0d4(%rip), %rcx      # 0x2004c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq (%rax), %rcx
movq %rcx, (%rbx)
movq 0x8(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x70(%rax), %rcx
movq %rcx, (%rbx)
movq 0x78(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x50(%rax), %rcx
movq %rcx, (%rbx)
movq 0x58(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x10(%rax), %rcx
movq %rcx, (%rbx)
movq 0x18(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x30(%rax), %rcx
movq %rcx, (%rbx)
movq 0x38(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x20(%rax), %rcx
movq %rcx, (%rbx)
movq 0x28(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x60(%rax), %rcx
movq %rcx, (%rbx)
movq 0x68(%rax), %rax
jmp 0x1505f
movq %rsp, %r14
movq %r14, %rdi
callq 0x15720
movq (%r14), %rax
movq 0x40(%rax), %rcx
movq %rcx, (%rbx)
movq 0x48(%rax), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x1507d
movq 0x13f39(%rip), %rcx     # 0x28fa8
cmpb $0x0, (%rcx)
je 0x15079
incl 0x8(%rax)
jmp 0x1507d
lock
incl 0x8(%rax)
movq %rsp, %rdi
callq 0x1212c
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1a366
cmpl $0x1, %eax
je 0x1761d
testl %eax, %eax
jne 0x176a8
movq (%r14), %rdi
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x17649
movq 0x11996(%rip), %rax     # 0x28fa8
cmpb $0x0, (%rax)
je 0x17644
incl 0x8(%r15)
jmp 0x17649
movq (%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x17682
movq 0x1196e(%rip), %rcx     # 0x28fa8
cmpb $0x0, (%rcx)
je 0x1767e
incl 0x8(%rax)
jmp 0x17682
lock
incl 0x8(%r15)
callq 0x1a344
movl %eax, %ebp
testq %r15, %r15
je 0x1765d
movq %r15, %rdi
callq 0x12250
testb %bpl, %bpl
jne 0x176a8
movq (%r14), %rdi
callq 0x1a36a
movq %rbx, %rdi
movl %eax, %esi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1770c
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1585c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x176a8
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x12250
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %r15
jmp 0x176c0
movq %rax, %rbx
testq %r15, %r15
je 0x176cd
movq %r15, %rdi
callq 0x12250
movq %rbx, %rdi
callq 0x53e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x12325(%rip), %rsi     # 0x2b500
jmp 0x5180
// File: /workspace/github_cpp_makefile_star2_O1/XxAdi101xX[P]ChamberCrawler/Character/Character.cc
// Function: Character::getInfo() const
Info Character::getInfo() const {
	Info characterInfo;

	// sets fields with proper info
	characterInfo.race = this->getRace();
	characterInfo.gold = this->wallet;
	characterInfo.HP = this->getHP();
	characterInfo.attackValue = this->getTotalAttack();
	characterInfo.defenceValue = this->getTotalDefence();

	characterInfo.coordinates = (this->currentCell)->getCoords();

	if (this->getRace() == Race::Dragon) {
		characterInfo.displayChar = CHAR_DRAGON;
	}

	else if (this->getRace() == Race::Drow) {
		characterInfo.displayChar = CHAR_DROW;
	}

    else if (this->getRace() == Race::Dwarf) {
        characterInfo.displayChar = CHAR_DWARF;
    }

    else if (this->getRace() == Race::Elf) {
        characterInfo.displayChar = CHAR_ELF;
    }

    else if (this->getRace() == Race::Goblin) {
        characterInfo.displayChar = CHAR_GOBLIN;
    }

    else if (this->getRace() == Race::Halfling) {
        characterInfo.displayChar = CHAR_HALFLING;
    }

    else if (this->getRace() == Race::Human) {
        characterInfo.displayChar = CHAR_HUMAN;
    }

    else if (this->getRace() == Race::Merchant) {
        characterInfo.displayChar = CHAR_MERCHANT;
    }

    else if (this->getRace() == Race::Orc) {
        characterInfo.displayChar = CHAR_ORC;
    }

    else if (this->getRace() == Race::Shade) {
        characterInfo.displayChar = CHAR_SHADE;
    }

    else if (this->getRace() == Race::Troll) {
        characterInfo.displayChar = CHAR_TROLL;
    }
    
	else if (this->getRace() == Race::Vampire) {
        characterInfo.displayChar = CHAR_VAMPIRE;
    }

    else {
        characterInfo.displayChar = CHAR_PLAYER;
    }

	characterInfo.lastAction = this->lastAction;

	return characterInfo;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
leaq 0x48(%rdi), %rcx
movq %rcx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
movb %al, 0x48(%rdi)
movb %al, 0x58(%rdi)
movl 0x4c(%rsi), %eax
movl %eax, (%rdi)
movl 0x60(%rsi), %eax
movl %eax, 0x4(%rdi)
movl 0x34(%rsi), %eax
movl %eax, 0x8(%rdi)
movl 0x38(%rsi), %r15d
movl 0x3c(%rsi), %ebp
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x58(%rax)
addl %r15d, %ebp
addl %eax, %ebp
movl %ebp, 0xc(%rbx)
movl 0x40(%r14), %r15d
movl 0x44(%r14), %ebp
movq (%r14), %rax
movq %r14, %rdi
callq *0x60(%rax)
addl %r15d, %ebp
addl %eax, %ebp
movl %ebp, 0x10(%rbx)
movq 0x50(%r14), %rsi
movq %rsp, %rdi
callq 0x14ed6
leaq 0x18(%rbx), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x1243c
movq (%r15), %rdi
testq %rdi, %rdi
je 0x192e9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
leaq 0x38(%rbx), %rdi
movl 0x4c(%r14), %eax
movb $0x40, %cl
cmpq $0xc, %rax
jae 0x19303
leaq 0x6daf(%rip), %rcx      # 0x200af
movb (%rax,%rcx), %cl
movb %cl, 0x30(%rbx)
addq $0x68, %r14
movq %r14, %rsi
callq 0x5180
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x19322
movq %rax, %r14
movq %rbx, %rdi
callq 0x120f8
movq %r14, %rdi
callq 0x53e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x19ae0
movq %rcx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x1921c
cmpl $0x1, %eax
jne 0x19af1
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 0x17b30
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rdi, %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17532
movq (%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x15090
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x19c7e
callq 0x12250
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq %rax, %r12
je 0x19dc2
xorl %ebp, %ebp
movq (%r12), %r15
movq 0x8(%r12), %rbx
testq %rbx, %rbx
je 0x19cbb
movq 0xf2fb(%rip), %rax      # 0x28fa8
cmpb $0x0, (%rax)
je 0x19cb7
incl 0x8(%rbx)
jmp 0x19cbb
lock
incl 0x8(%rbx)
testq %r15, %r15
je 0x19cd9
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x14f30
cmpq $0x0, 0x18(%rsp)
je 0x19d92
xorl %r13d, %r13d
xorl %r14d, %r14d
testb %r13b, %r13b
je 0x19cf3
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x19cf3
callq 0x12250
testq %r15, %r15
je 0x19d07
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x19d07
callq 0x12250
testb %r14b, %r14b
je 0x19d6f
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x64d5(%rip), %rcx      # 0x20200
callq 0x1255c
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x30(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0x14ee8
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x19d5e
callq 0x12250
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19d6d
callq 0x12250
incl %ebp
testq %rbx, %rbx
je 0x19d7c
movq %rbx, %rdi
callq 0x12250
cmpl $0x2, %ebp
je 0x19dc2
addq $0x10, %r12
cmpq 0x28(%rsp), %r12
jne 0x19c98
jmp 0x19dc2
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x150a2
movb $0x1, %r13b
cmpq $0x0, 0x40(%rsp)
jne 0x19cdc
movq %r15, %rdi
callq 0x14f2c
cmpl $0x1, %eax
sete %r14b
jmp 0x19cdf
leaq 0x50(%rsp), %rdi
callq 0x1212c
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 0x19e4c
callq 0x12250
jmp 0x19e4c
movq %rax, %r14
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x19e06
callq 0x12250
jmp 0x19e06
movq %rax, %r14
movq 0x20(%rsp), %rdi
jmp 0x19e26
jmp 0x19e32
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x19e21
callq 0x12250
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19e35
callq 0x12250
jmp 0x19e35
movq %rax, %r14
testq %rbx, %rbx
je 0x19e42
movq %rbx, %rdi
callq 0x12250
leaq 0x50(%rsp), %rdi
callq 0x1212c
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x101e5(%rip), %r14     # 0x2a095
cmpb $0x1, (%r14)
jne 0x19ec3
movq %rbx, %rdi
movl $0x1, %esi
callq 0x17706
movq %rbx, %rdi
callq 0x15ac6
cmpl $0x1e, %eax
jne 0x19ed8
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 0x17706
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rdi, %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x17532
movq (%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x15090
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x19f2a
callq 0x12250
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq %rax, %r12
je 0x1a06e
xorl %ebp, %ebp
movq (%r12), %r15
movq 0x8(%r12), %rbx
testq %rbx, %rbx
je 0x19f67
movq 0xf04f(%rip), %rax      # 0x28fa8
cmpb $0x0, (%rax)
je 0x19f63
incl 0x8(%rbx)
jmp 0x19f67
lock
incl 0x8(%rbx)
testq %r15, %r15
je 0x19f85
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x14f30
cmpq $0x0, 0x18(%rsp)
je 0x1a03e
xorl %r13d, %r13d
xorl %r14d, %r14d
testb %r13b, %r13b
je 0x19f9f
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x19f9f
callq 0x12250
testq %r15, %r15
je 0x19fb3
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x19fb3
callq 0x12250
testb %r14b, %r14b
je 0x1a01b
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x6235(%rip), %rcx      # 0x2020c
callq 0x1255c
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x30(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0x14ee8
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1a00a
callq 0x12250
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1a019
callq 0x12250
incl %ebp
testq %rbx, %rbx
je 0x1a028
movq %rbx, %rdi
callq 0x12250
cmpl $0x1, %ebp
je 0x1a078
addq $0x10, %r12
cmpq 0x28(%rsp), %r12
jne 0x19f44
jmp 0x1a06e
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x150a2
movb $0x1, %r13b
cmpq $0x0, 0x40(%rsp)
jne 0x19f88
movq %r15, %rdi
callq 0x14f2c
cmpl $0x1, %eax
sete %r14b
jmp 0x19f8b
leaq 0x10020(%rip), %rax     # 0x2a095
movb $0x1, (%rax)
leaq 0x50(%rsp), %rdi
callq 0x1212c
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0bc
callq 0x12250
jmp 0x1a0bc
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1a102
callq 0x12250
jmp 0x1a102
movq %rax, %r14
movq 0x20(%rsp), %rdi
jmp 0x1a0da
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0d5
callq 0x12250
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0eb
callq 0x12250
jmp 0x1a0eb
jmp 0x1a0e8
movq %rax, %r14
testq %rbx, %rbx
je 0x1a0f8
movq %rbx, %rdi
callq 0x12250
leaq 0x50(%rsp), %rdi
callq 0x1212c
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1921c
cmpl $0x4, %eax
jne 0x1a181
cvtsi2sdl (%rbx), %xmm0
mulsd 0x60a5(%rip), %xmm0     # 0x20220
cvttsd2si %xmm0, %eax
movl %eax, (%rbx)
movb $0x1, %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1921c
testl %ebp, %ebp
je 0x1a2d4
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 0x1695e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5dd4(%rip), %xmm0     # 0x20274
addss 0x5de0(%rip), %xmm0     # 0x20288
movss 0x5ddc(%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_O1/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
cmpl $0x7, %eax
ja 0x1a5bf
leaq 0x5d1c(%rip), %rcx      # 0x20290
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
jmp 0x1a5b8
movq (%rbx), %rax
incl (%rax)
jmp 0x1a5b4
movq (%rbx), %rax
jmp 0x1a59f
movq (%rbx), %rax
jmp 0x1a5b4
movq (%rbx), %rax
decl (%rax)
jmp 0x1a59f
movq (%rbx), %rax
incl (%rax)
addq $0x4, %rax
jmp 0x1a5a8
movq (%rbx), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x1a5bd
movq (%rbx), %rax
decl (%rax)
addq $0x4, %rax
movl $0x1, %ecx
addl %ecx, (%rax)
movq (%rbx), %rax
movq %rax, (%r14)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop