LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Atom.cpp
// Function: Atom::roll(Rotation)
void Atom::roll(Rotation direction) {
	Bond bonds_copy[4];
	unsigned diff = 3;
	if (direction) {
		diff = 1;
	}
	for (unsigned i = 0; i < 4; ++i) {
		bonds_copy[(i+diff)%4] = bonds[i];
	}
	for (unsigned i = 0; i < 4; ++i) {
		bonds[i] = bonds_copy[i];
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebp
movq %rdi, %rbx
xorl %r14d, %r14d
leaq (%rsp,%r14), %rdi
callq 0x3b48
addq $0x10, %r14
cmpq $0x40, %r14
jne 0x2736
xorl %eax, %eax
testl %ebp, %ebp
sete %al
leaq 0x1(,%rax,2), %rax
addq $0x8, %rbx
xorl %ecx, %ecx
movl %eax, %edx
andl $0x3, %edx
shll $0x4, %edx
movl 0x8(%rbx,%rcx), %esi
movl %esi, 0x8(%rsp,%rdx)
movq (%rbx,%rcx), %rsi
movq %rsi, (%rsp,%rdx)
incq %rax
addq $0x10, %rcx
cmpq $0x40, %rcx
jne 0x275e
xorl %eax, %eax
movl 0x8(%rsp,%rax), %ecx
movl %ecx, 0x8(%rbx,%rax)
movq (%rsp,%rax), %rcx
movq %rcx, (%rbx,%rax)
addq $0x10, %rax
cmpq $0x40, %rax
jne 0x2785
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Atom.cpp
// Function: Atom::rotate(Rotation)
void Atom::rotate(Rotation direction) {
	//I think there might be a better way to do this algorithm
	//Roll this (the root)
	roll(direction);
	for (unsigned i = 0; i < 4; ++i) {
		if (bonds[i].getAtom() //Check that there is a bond to a non-Null atom
		    &&
		    bonds[i].getAtom()->getBond((i+2)%4).getAtom() != this //Check that the other atom has not been rotated as well
		) {
			//recurse
			bonds[i].getAtom()->rotate(direction);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x2726
leaq 0x8(%r14), %r15
xorl %r12d, %r12d
movq (%r15), %rdi
testq %rdi, %rdi
je 0x27e2
movq %r12, %rax
xorq $0x2, %rax
shlq $0x4, %rax
cmpq %r14, 0x8(%rdi,%rax)
je 0x27e2
movl %ebx, %esi
callq 0x27a8
incq %r12
addq $0x10, %r15
cmpq $0x4, %r12
jne 0x27c1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Atom.cpp
// Function: Atom::unbond()
void Atom::unbond() {
	//Iterate through all the bonds
	for (unsigned i = 0; i < 4; ++i) {
		//Zero out the bond
		while (bonds[i].isValid()) {
			--bonds[i];
		}
		//Zero out the complement of the bond
		while (bonds[i].getAtom()->bonds[(i+2)%4].isValid()) {
			--bonds[i].getAtom()->bonds[(i+2)%4];
		}
		//Tell the conected atom to clean itself
		bonds[i].getAtom()->cleanBonds();
	}
	//Clean this atom
	this->cleanBonds();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
addq $0x8, %rbx
xorl %r15d, %r15d
movq %r15, %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %r14
cmpl $0x0, 0x8(%rbx,%rax)
je 0x285a
movq %r14, %rdi
callq 0x3b8a
cmpl $0x0, 0x8(%r14)
jne 0x284b
movl %r15d, %r13d
xorq $0x2, %r13
movq (%r14), %r12
shlq $0x4, %r13
cmpl $0x0, 0x10(%r12,%r13)
je 0x288e
leaq (%r12,%r13), %rdi
addq $0x8, %rdi
callq 0x3b8a
movq (%r14), %r12
leaq (%r12,%r13), %rdi
addq $0x8, %rdi
cmpl $0x0, 0x8(%rdi)
jne 0x2878
addq $0x8, %r12
xorl %r14d, %r14d
leaq (%r12,%r14), %rdi
callq 0x3b64
addq $0x10, %r14
cmpq $0x40, %r14
jne 0x2895
incq %r15
cmpq $0x4, %r15
jne 0x2839
xorl %r14d, %r14d
leaq (%rbx,%r14), %rdi
callq 0x3b64
addq $0x10, %r14
cmpq $0x40, %r14
jne 0x28b4
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Atom.cpp
// Function: Atom::getMolecule(Atom*, std::unordered_set<Atom*, std::hash<Atom*>, std::equal_to<Atom*>, std::allocator<Atom*>>&)
std::unordered_set<Atom*> Atom::getMolecule(Atom* root, std::unordered_set<Atom*>& found) {
	for (unsigned b = 0; b < 4; ++b) {
		if (found.end() == found.find(bonds[b].getAtom())) {
			found.insert(bonds[b].getAtom());
			getMolecule(bonds[b].getAtom(), found);
		}
	}
	return found;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, 0x10(%rsp)
leaq 0x8(%rsi), %rbx
xorl %r12d, %r12d
leaq 0x8(%rsp), %r13
leaq 0x20(%rsp), %rbp
movq %r12, %rax
shlq $0x4, %rax
movq (%rbx,%rax), %rcx
movq (%r14), %rdi
movq 0x8(%r14), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x29fa
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x29fa
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x29f8
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x29fa
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x29cd
jmp 0x29fa
xorl %eax, %eax
testq %rax, %rax
je 0x2a05
cmpq $0x0, (%rax)
jne 0x2a35
movq %rcx, 0x18(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
movq %r13, %rdx
callq 0x2cb2
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rcx
callq 0x296c
movq %rbp, %rdi
callq 0x2a92
incq %r12
cmpq $0x4, %r12
jne 0x2996
xorl %eax, %eax
movq 0x10(%rsp), %rbx
movq %rax, (%rbx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rcx
movq %rcx, 0x18(%rbx)
movups 0x20(%r14), %xmm0
movups %xmm0, 0x20(%rbx)
movq %rax, 0x30(%rbx)
leaq 0x8(%rsp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2b0c
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::Reactor(unsigned int, unsigned int, unsigned int)
Reactor:: Reactor(unsigned width, unsigned height, unsigned num_waldos)
	: w(width), h(height), waldo_num(num_waldos), sensorx(height+1), sensory(width+1),
	   board(new Tile*[height]), waldos(new Waldo[num_waldos]) {
	for (unsigned i = 0; i < height; ++i) {
		board[i] = new Tile[width];
		for (unsigned j = 0; j < width; ++j) {
			board[i][j].initialize(num_waldos);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r13d
movl %edx, %r12d
movq %rdi, %rbx
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
leal 0x1(%r12), %eax
movl %eax, 0x10(%rdi)
movq %rsi, 0x18(%rsp)
leal 0x1(%rsi), %eax
movl %eax, 0x14(%rdi)
movl %edx, %eax
movq %rax, 0x40(%rsp)
leaq (,%rax,8), %rdi
callq 0x2030
movq %rbx, 0x10(%rsp)
movq %rax, 0x18(%rbx)
movl %r13d, %r14d
movq %r14, %rbx
shlq $0x6, %rbx
leaq 0x8(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x2030
movq %rax, %rbp
movq %r14, (%rax)
movl %r13d, %r15d
testl %r13d, %r13d
je 0x2fcb
negq %rbx
movl $0x8, %r13d
movq %rbp, %rdi
addq %r13, %rdi
callq 0x4226
leaq (%rbx,%r13), %rax
addq $0x40, %rax
addq $0x40, %r13
cmpq $0x8, %rax
jne 0x2fae
addq $0x8, %rbp
movq 0x10(%rsp), %rax
movq %rbp, 0x20(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq $0x0, 0x38(%rax)
testl %r12d, %r12d
je 0x30b8
movq 0x10(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x30(%rsp)
movl 0x18(%rsp), %eax
movq %rax, 0x38(%rsp)
leaq (,%rax,8), %rax
leaq (%rax,%rax,4), %r14
leaq (%rax,%rax,4), %rax
addq $0x8, %rax
movq %rax, 0x28(%rsp)
movq %r14, %r13
negq %r13
xorl %ebp, %ebp
movq 0x28(%rsp), %rdi
callq 0x2030
movq %rax, %rcx
addq $0x8, %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rsp)
movq %rax, (%rcx)
cmpl $0x0, 0x18(%rsp)
je 0x306e
movq 0x8(%rsp), %r12
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x3bc4
addq $-0x28, %rbx
addq $0x28, %r12
cmpq %rbx, %r13
jne 0x3059
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rsp), %rcx
movq %rcx, (%rax,%rbp,8)
cmpl $0x0, 0x18(%rsp)
je 0x30aa
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax,%rbp,8), %rdi
addq %rbx, %rdi
movl %r15d, %esi
callq 0x3c38
addq $0x28, %rbx
cmpq %rbx, %r14
jne 0x3089
incq %rbp
cmpq 0x40(%rsp), %rbp
jne 0x3028
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x30ec
movq %rax, %r14
cmpq $0x8, %r13
je 0x30dd
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2211
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x21e0
jmp 0x312d
movq %rax, %r14
jmp 0x3123
movq %rax, %r14
testq %rbx, %rbx
je 0x3114
negq %rbx
movq 0x20(%rsp), %r15
addq $-0x20, %r15
leaq (%r15,%rbx), %rdi
callq 0x3cc2
addq $-0x28, %rbx
jne 0x3105
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x21e0
movq 0x30(%rsp), %rdi
callq 0x3aea
movq %r14, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::~Reactor()
Reactor::~ Reactor() {
	for (unsigned i = 0; i < h; ++i) {
		delete [] board[i];
	}
	delete [] waldos;
	delete [] board;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x4(%rdi)
je 0x31a7
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x319c
movq -0x8(%r14), %r12
testq %r12, %r12
je 0x3184
leaq -0x28(%r14), %r13
leaq (,%r12,8), %rax
leaq (%rax,%rax,4), %rbp
movq %r13, %rdi
addq %rbp, %rdi
callq 0x3cc2
addq $-0x28, %rbp
jne 0x3173
addq $-0x8, %r14
leaq (%r12,%r12,4), %rax
leaq 0x8(,%rax,8), %rsi
movq %r14, %rdi
callq 0x21e0
incq %r15
movl 0x4(%rbx), %eax
cmpq %rax, %r15
jb 0x314d
movq 0x20(%rbx), %r12
testq %r12, %r12
je 0x31fc
leaq -0x8(%r12), %r14
movq -0x8(%r12), %r15
testq %r15, %r15
je 0x31e9
addq $-0x30, %r12
movq %r15, %r13
shlq $0x6, %r13
leaq (%r12,%r13), %rax
movq -0x10(%r12,%r13), %rdi
cmpq %rdi, %rax
je 0x31e3
movq (%rax), %rsi
incq %rsi
callq 0x2140
addq $-0x40, %r13
jne 0x31ca
shlq $0x6, %r15
orq $0x8, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x320a
callq 0x2150
addq $0x28, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3aea
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::fuse()
void Reactor::fuse() {
	for (unsigned r = 0; r < getNumRows(); ++r) {
		for (unsigned c = 0; c < getNumCols()-1; ++c) {
			if (board[r][c].getMat() == FUSOR) {
				if (board[r][c+1].getMat() == TARGET) {
					//Fuse the Atom to the right
					if (board[r][c].getAtom()) {
						board[r][c].getAtom()->unbond();
						Atom newAtom = *board[r][c+1].getAtom() + *board[r][c].getAtom();
						delete board[r][c].getAtom();
						delete board[r][c+1].getAtom();
						board[r][c+1].addAtom(NULL);
						board[r][c+1].addAtom(&newAtom);
					}
				} else {
					throw 16;
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpl $0x0, 0x4(%rdi)
je 0x35f7
movq %rdi, %rbx
xorl %r12d, %r12d
leaq 0x8(%rsp), %r14
cmpl $0x1, (%rbx)
je 0x35e8
movl $0x28, %r13d
xorl %ebp, %ebp
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r13), %rdi
addq $-0x28, %rdi
callq 0x3d5a
cmpl $0x3, %eax
jne 0x35d4
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
callq 0x3d5a
cmpl $0x5, %eax
jne 0x3606
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r13), %rdi
addq $-0x28, %rdi
callq 0x3d54
testq %rax, %rax
je 0x35d4
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r13), %rdi
addq $-0x28, %rdi
callq 0x3d54
movq %rax, %rdi
callq 0x2826
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
callq 0x3d54
movq %rax, %r15
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r13), %rdi
addq $-0x28, %rdi
callq 0x3d54
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x26c0
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r13), %rdi
addq $-0x28, %rdi
callq 0x3d54
testq %rax, %rax
je 0x358d
movl $0x50, %esi
movq %rax, %rdi
callq 0x2140
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
callq 0x3d54
testq %rax, %rax
je 0x35af
movl $0x50, %esi
movq %rax, %rdi
callq 0x2140
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
xorl %esi, %esi
callq 0x3e12
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x3e12
incq %rbp
movl (%rbx), %eax
decl %eax
addq $0x28, %r13
cmpq %rax, %rbp
jb 0x34be
incq %r12
movl 0x4(%rbx), %eax
cmpq %rax, %r12
jb 0x34ad
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4, %edi
callq 0x2090
movl $0x10, (%rax)
movq 0x4983(%rip), %rsi      # 0x7fa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::split()
void Reactor::split() {
	for (unsigned r = 0; r < getNumRows(); ++r) {
		for (unsigned c = 1; c < getNumCols(); ++c) {
			if (board[r][c].getMat() == FISSOR) {
				if (board[r][c-1].getMat() == TARGET) {
					//Fuse the Atom to the right
					if (board[r][c].getAtom()) {
						Atom* substrate = board[r][c].getAtom();
						unsigned total = substrate->getValue();
						if (total == 1) return;
						if (total%2) {
							//The Atom is not evenly divisible
							substrate->setValue(total/2+1);
						} else {
							//The Atom is evenly divisible
							substrate->setValue(total/2);
						}
						board[r][c-1].addAtom(new Atom(substrate->getVariety(), total/2));
					}
				} else {
					throw 16;
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x0, 0x4(%rdi)
je 0x3770
movq %rdi, %rbx
xorl %r12d, %r12d
cmpl $0x2, (%rbx)
jb 0x3761
movl $0x1, %r13d
movq %r12, 0x8(%rsp)
movq 0x18(%rbx), %rax
leaq (,%r13,4), %r14
addq %r13, %r14
shlq $0x3, %r14
movq (%rax,%r12,8), %rdi
addq %r14, %rdi
callq 0x3d5a
cmpl $0x4, %eax
jne 0x3753
movq 0x18(%rbx), %rax
leaq -0x1(%r13), %rcx
leaq (%rcx,%rcx,4), %rbp
leaq (,%rbp,8), %rdi
addq (%rax,%r12,8), %rdi
callq 0x3d5a
cmpl $0x5, %eax
jne 0x377f
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r14, %rdi
callq 0x3d54
testq %rax, %rax
je 0x3753
movq 0x18(%rbx), %rax
addq (%rax,%r12,8), %r14
movq %r14, %rdi
callq 0x3d54
movq %rax, %r15
movl 0x4(%rax), %eax
cmpl $0x1, %eax
je 0x3770
movq %r12, %rdx
movl %eax, %r12d
shrl %r12d
leal 0x1(%r12), %ecx
testb $0x1, %al
cmovel %r12d, %ecx
movl %ecx, 0x4(%r15)
movq 0x18(%rbx), %rax
movq (%rax,%rdx,8), %rax
movq %rax, 0x10(%rsp)
movl $0x50, %edi
callq 0x2130
movq %rax, %r14
movl (%r15), %eax
movl %eax, (%r14)
movl %r12d, 0x4(%r14)
movl $0x8, %r15d
leaq (%r14,%r15), %rdi
callq 0x3b48
addq $0x10, %r15
cmpq $0x48, %r15
jne 0x3722
movq $0x0, 0x48(%r14)
movq 0x10(%rsp), %rax
leaq (%rax,%rbp,8), %rdi
movq %r14, %rsi
callq 0x3e12
movq 0x8(%rsp), %r12
incq %r13
movl (%rbx), %eax
cmpq %rax, %r13
jb 0x365a
incq %r12
movl 0x4(%rbx), %eax
cmpq %rax, %r12
jb 0x3646
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4, %edi
callq 0x2090
movl $0x10, (%rax)
movq 0x480a(%rip), %rsi      # 0x7fa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
movq %rax, %rbx
movl $0x50, %esi
movq %r14, %rdi
callq 0x2140
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::advance(unsigned int)
void Reactor::advance(unsigned cycle) {
	if (init_waldos != waldo_num) throw 7;
	//Iterate through the waldos in priority order 
	for (unsigned i = 0; i < waldo_num; ++i) {
		//Redirect
		waldos[i].setDirection(board[waldos[i].getRow()][waldos[i].getCol()].getArrow(i));
		//Perform instruction
		handleInstruction(i);
		//Move the Waldo
		waldos[i].move(*this);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl 0xc(%rdi), %eax
cmpl 0x8(%rdi), %eax
jne 0x3840
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
je 0x3834
xorl %r12d, %r12d
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
leaq (%rcx,%r12), %r15
movl 0x20(%rcx,%r12), %edx
movl 0x24(%rcx,%r12), %ecx
leaq (%rcx,%rcx,4), %rdi
shlq $0x3, %rdi
addq (%rax,%rdx,8), %rdi
movl %r14d, %esi
callq 0x3cf8
movq %r15, %rdi
movl %eax, %esi
callq 0x43cc
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3232
movq 0x20(%rbx), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x42d0
incq %r14
movl 0x8(%rbx), %eax
addq $0x40, %r12
cmpq %rax, %r14
jb 0x37d7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x4, %edi
callq 0x2090
movl $0x7, (%rax)
movq 0x4749(%rip), %rsi      # 0x7fa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::popAtom(Atom*, unsigned int, unsigned int)
void Reactor::popAtom(Atom* root, unsigned row, unsigned col) {
	if (board[row][col].getAtom()) {
		board[row][col].removeAtom();
		if (root->getBond(UP).getAtom()) {
			popAtom(root->getBond(UP).getAtom(), row-1, col);
		}
		else if (root->getBond(DOWN).getAtom()) {
			popAtom(root->getBond(DOWN).getAtom(), row+1, col);
		}
		else if (root->getBond(RIGHT).getAtom()) {
			popAtom(root->getBond(RIGHT).getAtom(), row, col+1);
		}
		else if (root->getBond(LEFT).getAtom()) {
			popAtom(root->getBond(LEFT).getAtom(), row, col-1);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rdi, %r14
movl %ebp, %r12d
movq %rsi, %r13
movq 0x18(%r14), %rax
movl %ebx, %ecx
leaq (%rcx,%rcx,4), %r15
shlq $0x3, %r15
movq (%rax,%r12,8), %rdi
addq %r15, %rdi
callq 0x3d54
testq %rax, %rax
je 0x38e0
movq 0x18(%r14), %rax
addq (%rax,%r12,8), %r15
movq %r15, %rdi
callq 0x3e44
movq 0x28(%r13), %rsi
testq %rsi, %rsi
jne 0x38d8
movq 0x48(%r13), %rsi
testq %rsi, %rsi
jne 0x38dc
movq 0x18(%r13), %rax
testq %rax, %rax
je 0x38cb
incl %ebx
movq %rax, %r13
jmp 0x387a
movq 0x38(%r13), %r13
testq %r13, %r13
je 0x38e0
decl %ebx
jmp 0x387a
decl %ebp
jmp 0x3874
incl %ebp
jmp 0x3874
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Reactor.cpp
// Function: Reactor::dropAtom(Atom*, unsigned int, unsigned int)
void Reactor::dropAtom(Atom* root, unsigned row, unsigned col) {
	if (board[row][col].getAtom() != root) {
		board[row][col].addAtom(root);
		if (root->getBond(UP).getAtom()) {
			dropAtom(root->getBond(UP).getAtom(), row-1, col);
		}
		else if (root->getBond(DOWN).getAtom()) {
			dropAtom(root->getBond(DOWN).getAtom(), row+1, col);
		}
		else if (root->getBond(RIGHT).getAtom()) {
			dropAtom(root->getBond(RIGHT).getAtom(), row, col+1);
		}
		else if (root->getBond(LEFT).getAtom()) {
			dropAtom(root->getBond(LEFT).getAtom(), row, col-1);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rdi, %r14
movl %ebp, %r13d
movq %rsi, %r15
movq 0x18(%r14), %rax
movl %ebx, %ecx
leaq (%rcx,%rcx,4), %r12
shlq $0x3, %r12
movq (%rax,%r13,8), %rdi
addq %r12, %rdi
callq 0x3d54
cmpq %r15, %rax
je 0x3971
movq 0x18(%r14), %rax
addq (%rax,%r13,8), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x3e12
movq 0x28(%r15), %rsi
testq %rsi, %rsi
jne 0x3969
movq 0x48(%r15), %rsi
testq %rsi, %rsi
jne 0x396d
movq 0x18(%r15), %rax
testq %rax, %rax
je 0x395c
incl %ebx
movq %rax, %r15
jmp 0x3908
movq 0x38(%r15), %r15
testq %r15, %r15
je 0x3971
decl %ebx
jmp 0x3908
decl %ebp
jmp 0x3902
incl %ebp
jmp 0x3902
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Bond.cpp
// Function: Bond::operator--()
Bond& Bond::operator--() {
	if (strength > 0) {
		--strength;
		update();
	}
	return *this;
}

// Assembly:
movq %rdi, %rax
movl 0x8(%rdi), %ecx
testl %ecx, %ecx
je 0x3b9b
decl %ecx
movl %ecx, 0x8(%rax)
je 0x3b9c
retq
movq $0x0, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Bond.cpp
// Function: Bond::operator--(int)
Bond Bond::operator--(int) {
	if (strength > 0) {
		Bond copy(*this);
		--strength;
		update();
		return copy;
	}
	return *this;
}

// Assembly:
movl 0x8(%rdi), %edx
movq (%rdi), %rax
testl %edx, %edx
je 0x3bb8
movl %edx, %ecx
decl %ecx
movl %ecx, 0x8(%rdi)
je 0x3bbb
retq
xorl %edx, %edx
retq
movq $0x0, (%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Tile.cpp
// Function: Tile::initialize(unsigned int)
void Tile::initialize(unsigned waldo_max) {
	assert(arrows == NULL && instructions == NULL);
	waldos = waldo_max;
	arrows = new Direction[waldo_max]();
	instructions = new Instruction[waldo_max];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdi)
jne 0x3ca2
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
jne 0x3ca2
movl %esi, %ebp
movl %esi, (%rbx)
movl %esi, %r14d
shlq $0x2, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20c0
movq %r15, 0x8(%rbx)
movq %r14, %rdi
callq 0x2030
movq %rax, %r15
testl %ebp, %ebp
je 0x3c93
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20c0
movq %r15, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x14a5(%rip), %rdi      # 0x514e
leaq 0x14c5(%rip), %rsi      # 0x5175
leaq 0x14c7(%rip), %rcx      # 0x517e
movl $0xa, %edx
callq 0x20d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Tile.cpp
// Function: Tile::setArrow(unsigned int, Direction)
void Tile::setArrow(unsigned waldo, Direction end_state) {
	assert(waldo < this->waldos);
	if (arrows[waldo]) {
		throw std::runtime_error("Attempted to assign arrow where one existed");
	}
	arrows[waldo] = end_state;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl %esi, (%rdi)
jbe 0x3dad
movq 0x8(%rdi), %rax
movl %esi, %ecx
cmpl $0x0, (%rax,%rcx,4)
jne 0x3dcc
movl %edx, (%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x13ee(%rip), %rdi      # 0x51a2
leaq 0x13ba(%rip), %rsi      # 0x5175
leaq 0x148e(%rip), %rcx      # 0x5250
movl $0x2e, %edx
callq 0x20d0
movl $0x10, %edi
callq 0x2090
movq %rax, %rbx
leaq 0x149d(%rip), %rsi      # 0x527d
movq %rax, %rdi
callq 0x2070
movq 0x4201(%rip), %rsi      # 0x7ff0
movq 0x41ca(%rip), %rdx      # 0x7fc0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Tile.cpp
// Function: Tile::debond(Reactor&, unsigned int, unsigned int)
void Tile::debond( Reactor& board, unsigned row, unsigned col) {
	//TODO Implement reprioritization of atoms
	//(Once we figure out how the hell it works)
	if (mat != BONDER) return;
	if (row > 0 && board[row-1][col].mat == BONDER) {
		Bond& bond = atom->getBond(UP);
		if (bond.getAtom()) {
			--bond;
		}
	}
	if (row+1 < board.getNumRows() && board[row+1][col].mat == BONDER) {
		Bond& bond = atom->getBond(DOWN);
		if (bond.getAtom()) {
			--bond;
		}
	}
	if (col > 0 && board[row][col-1].mat == BONDER) {
		Bond& bond = atom->getBond(LEFT);
		if (bond.getAtom()) {
			--bond;
		}
	}
	if (col+1 < board.getNumCols() && board[row][col+1].mat == BONDER) {
		Bond& bond = atom->getBond(RIGHT);
		if (bond.getAtom()) {
			--bond;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpl $0x1, 0x20(%rdi)
jne 0x4106
movl %ecx, %r14d
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %r13d
testl %edx, %edx
je 0x4051
leal -0x1(%r12), %eax
cmpl %eax, 0x4(%r15)
jbe 0x4110
movq 0x18(%r15), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rax
leaq (,%r13,4), %rcx
addq %r13, %rcx
cmpl $0x1, 0x20(%rax,%rcx,8)
jne 0x4051
movq 0x18(%rbx), %rdi
cmpq $0x0, 0x28(%rdi)
je 0x4051
addq $0x28, %rdi
callq 0x3b8a
leal 0x1(%r12), %eax
cmpl 0x4(%r15), %eax
jae 0x408c
movq 0x18(%r15), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rax
leaq (,%r13,4), %rcx
addq %r13, %rcx
cmpl $0x1, 0x20(%rax,%rcx,8)
jne 0x408c
movq 0x18(%rbx), %rdi
cmpq $0x0, 0x48(%rdi)
je 0x408c
addq $0x48, %rdi
callq 0x3b8a
movl %r12d, %r13d
testl %r14d, %r14d
je 0x40c5
cmpl %r12d, 0x4(%r15)
jbe 0x4110
movq 0x18(%r15), %rax
movq (%rax,%r13,8), %rax
leal -0x1(%r14), %ecx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x1, 0x20(%rax,%rcx,8)
jne 0x40c5
movq 0x18(%rbx), %rdi
cmpq $0x0, 0x38(%rdi)
je 0x40c5
addq $0x38, %rdi
callq 0x3b8a
incl %r14d
cmpl (%r15), %r14d
jae 0x4106
cmpl %r12d, 0x4(%r15)
jbe 0x4110
movq 0x18(%r15), %rax
movq (%rax,%r13,8), %rax
movl %r14d, %ecx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x1, 0x20(%rax,%rcx,8)
jne 0x4106
movq 0x18(%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x4106
addq $0x18, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3b8a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xef6(%rip), %rdi       # 0x500d
leaq 0xf04(%rip), %rsi       # 0x5022
leaq 0xf09(%rip), %rcx       # 0x502e
movl $0x32, %edx
callq 0x20d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Waldo.cpp
// Function: Waldo::sync(Reactor&)
void Waldo::sync( Reactor& board) {
	bool unsync = false;
	for ( unsigned i = 0; i < board.getNumWaldos(); ++i ) {
		Waldo& waldo = board.getWaldo(i);
		if (waldo.paused) {
			unsync = true;
			waldo.paused = false;
		}
	}
	this->paused = !unsync;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x8(%rsi)
je 0x419c
movq %rsi, %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x3aba
cmpb $0x1, 0x3c(%rax)
jne 0x418b
movb $0x0, 0x3c(%rax)
movb $0x1, %r15b
incl %ebp
cmpl 0x8(%r14), %ebp
jb 0x4174
notb %r15b
andb $0x1, %r15b
jmp 0x419f
movb $0x1, %r15b
movb %r15b, 0x3c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Waldo.cpp
// Function: Waldo::move(Reactor&, Direction)
void Waldo::move( Reactor& board, Direction direction) {
	if (paused) return;
	int dr = 0, dc = 0;
	switch (direction) {
		case DOWN :
			dr = (r+1 != board.getNumRows());
			break;
		case UP :
			dr = -(r != 0);
			break;
		case RIGHT :
			dc = (c+1 != board.getNumCols());
			break;
		case LEFT :
			dc = -(c != 0);
			break;
		case NO_DIRECTION :
			break;
	}
	//Pop current molecule off the board
	board.popAtom(holding, r, c);	
	//Move Waldo
	r += dr;
	c += dc;
	//Put Molecule on the board
	board.dropAtom(holding, r, c);
}

// Assembly:
cmpb $0x0, 0x3c(%rdi)
je 0x42df
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
decl %edx
cmpl $0x3, %edx
ja 0x4313
leaq 0xfbc(%rip), %rax       # 0x52b8
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl 0x24(%r14), %eax
incl %eax
xorl %ebp, %ebp
cmpl (%rbx), %eax
setne %bpl
xorl %r15d, %r15d
jmp 0x4349
xorl %r15d, %r15d
cmpl 0x24(%r14), %r15d
movl $0x0, %ebp
sbbl %ebp, %ebp
jmp 0x4349
movl 0x20(%r14), %eax
incl %eax
xorl %r15d, %r15d
cmpl 0x4(%rbx), %eax
setne %r15b
jmp 0x4349
xorl %ebp, %ebp
cmpl 0x20(%r14), %ebp
movl $0x0, %r15d
sbbl %r15d, %r15d
movq 0x30(%r14), %rsi
movl 0x20(%r14), %edx
movl 0x24(%r14), %ecx
movq %rbx, %rdi
callq 0x3862
addl 0x20(%r14), %r15d
movl %r15d, 0x20(%r14)
addl 0x24(%r14), %ebp
movl %ebp, 0x24(%r14)
movq 0x30(%r14), %rsi
movq %rbx, %rdi
movl %r15d, %edx
movl %ebp, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x38f0
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Waldo.cpp
// Function: Waldo::rotate(Reactor&, Rotation)
void Waldo::rotate( Reactor& board, Rotation direction) {
	//Pop the current molecule off the board
	board.popAtom(holding, r, c);
	//Rotate the molecule
	holding->rotate(direction);
	//Put the molecule on the board
	board.dropAtom(holding, r, c);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rsi
movl 0x20(%rdi), %edx
movl 0x24(%rdi), %ecx
movq %r14, %rdi
callq 0x3862
movq 0x30(%r15), %rdi
movl %ebx, %esi
callq 0x27a8
movq 0x30(%r15), %rsi
movl 0x20(%r15), %edx
movl 0x24(%r15), %ecx
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x38f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Environment.cpp
// Function: Environment::advance()
void Environment::advance() {
	++cycles;
	for (unsigned i = 0; i < reactors.size(); ++i) {
		reactors[i].advance(cycles);
	}
	for (unsigned i = 0; i < pipes.size(); ++i) {
		pipes[i].advance();
	}
}

// Assembly:
incl 0x30(%rdi)
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x44a9
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
xorl %edi, %edi
shlq $0x6, %rdi
addq %rax, %rdi
movl 0x30(%rbx), %esi
callq 0x37b8
movl %ebp, %edi
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x6, %rcx
incl %ebp
cmpq %rdi, %rcx
ja 0x447d
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Wheatwizard[P]Waldo/Well.cpp
// Function: Well::pop()
Capsule Well::pop() {
	Capsule result = *locationMarker;
	++locationMarker;
	//I should probably make a Well iterator
	if (locationMarker == loopPath.end() || locationMarker == startPath.end()) {
		locationMarker = loopPath.begin();
	}
	return result;
}

// Assembly:
movq %rdi, %rax
movq 0x30(%rsi), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rdi)
addq $0x10, %rcx
movq %rcx, 0x30(%rsi)
cmpq 0x20(%rsi), %rcx
je 0x4cc2
cmpq 0x8(%rsi), %rcx
je 0x4cc2
retq
movq 0x18(%rsi), %rcx
movq %rcx, 0x30(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/main.cpp
// Function: start_game()
void start_game()
{
    while (true)
    {
        snake.update_movement();
        if (is_game_end())
        {
            game_over();
            break;
        }
        snake_map.redraw();

        usleep(PAUSE_LENGTH);

        snake.validate_direction();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x2c9f(%rip), %rdi      # 0x4108
callq 0x1726
cmpb $0x0, 0x2cb4(%rip)      # 0x4129
jne 0x14d4
cmpl $0x13, 0x2ca2(%rip)     # 0x4120
ja 0x14d4
cmpl $0x13, 0x2c9d(%rip)     # 0x4124
ja 0x14d4
leaq 0x3318(%rip), %rbx      # 0x47a8
leaq 0x2c71(%rip), %r14      # 0x4108
movq %rbx, %rdi
callq 0x1bf2
movl $0x30d40, %edi          # imm = 0x30D40
callq 0x1160
movq %r14, %rdi
callq 0x1712
movq %r14, %rdi
callq 0x1726
cmpb $0x0, 0x2c69(%rip)      # 0x4129
jne 0x14d4
cmpl $0x13, 0x2c57(%rip)     # 0x4120
ja 0x14d4
cmpl $0x13, 0x2c52(%rip)     # 0x4124
jbe 0x1497
popq %rbx
popq %r14
popq %rbp
jmp 0x140d
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake.cpp
// Function: Snake::Snake()
Snake::Snake(void)
{
    direction = East;
    next_direction = direction;
    food_eaten = false;
    is_dead = false;
    length = INITIAL_SNAKE_LENGTH;
    clear_snake_world();
    initialize_snake();
    sem_init(&snake_sema, 0, 1);
    pthread_create(&input_thread, NULL, input_thread_work, this);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq $0x0, 0x58(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movabsq $0x200000002, %rax      # imm = 0x200000002
movq %rax, 0x50(%rdi)
movw $0x0, 0x20(%rdi)
movl $0x3, 0x24(%rdi)
addq $0x60, %rdi
movl $0x640, %edx            # imm = 0x640
xorl %esi, %esi
callq 0x1070
movq %rbx, %rdi
callq 0x15cc
leaq 0x30(%rbx), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x10b0
leaq 0x28(%rbx), %rdi
leaq -0x88(%rip), %rdx       # 0x1508
xorl %esi, %esi
movq %rbx, %rcx
popq %rbx
popq %r14
popq %rbp
jmp 0x11b0
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15ae
callq 0x10e0
movq %r14, %rdi
callq 0x11a0
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake.cpp
// Function: Snake::initialize_snake()
void Snake::initialize_snake(void)
{
    for (int i = 0; i < INITIAL_SNAKE_LENGTH; i++)
    {
        pair<int, int> snake_part = make_pair(MAP_HEIGHT / 2, MAP_WIDTH / 2 - (INITIAL_SNAKE_LENGTH / 2) + i);
        snake_parts.push_back(snake_part);
        snake_world_array[snake_part.first][snake_part.second] = 1;
    }
    snake_head = snake_parts[snake_parts.size() - 1];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x60(%rdi), %r15
movabsq $0x90000000a, %r12      # imm = 0x90000000A
movl $0x3, %r13d
movabsq $0x100000000, %r14      # imm = 0x100000000
movq %r12, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1613
movq %r12, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x161f
movq %rbx, %rdi
leaq -0x30(%rbp), %rdx
callq 0x1872
movslq -0x30(%rbp), %rax
movslq -0x2c(%rbp), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %r15, %rax
movl $0x1, (%rax,%rcx,4)
addq %r14, %r12
decq %r13
jne 0x15fb
movq 0x8(%rbx), %rax
movl -0x8(%rax), %ecx
movl %ecx, 0x18(%rbx)
movl -0x4(%rax), %eax
movl %eax, 0x1c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake.cpp
// Function: Snake::update_direction(Direction)
void Snake::update_direction(enum Direction direction)
{
    sem_wait(&this->snake_sema);
    switch (direction)
    {
    case West:
        if (this->direction != East)
        {
            this->direction = direction;
        }
        break;
    case North:
        if (this->direction != South)
        {
            this->direction = direction;
        }
        break;
    case East:
        if (this->direction != West)
        {
            this->direction = direction;
        }
        break;
    case South:
        if (this->direction != North)
        {
            this->direction = direction;
        }
        break;
    }
    sem_post(&this->snake_sema);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %r14
leaq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x1080
cmpl $0x3, %r15d
ja 0x16d7
movl %r15d, %eax
leaq 0x988(%rip), %rcx       # 0x2014
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x2, 0x50(%r14)
je 0x16d7
movl $0x0, 0x50(%r14)
jmp 0x16d7
cmpl $0x0, 0x50(%r14)
je 0x16d7
movl $0x2, 0x50(%r14)
jmp 0x16d7
cmpl $0x1, 0x50(%r14)
je 0x16d7
movl $0x3, 0x50(%r14)
jmp 0x16d7
cmpl $0x3, 0x50(%r14)
je 0x16d7
movl $0x1, 0x50(%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1180
nop
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake.cpp
// Function: Snake::get_direction()
enum Direction Snake::get_direction(void)
{
    enum Direction result = East;
    sem_wait(&this->snake_sema);
    result = this->direction;
    sem_post(&this->snake_sema);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x30(%rdi), %r14
movq %r14, %rdi
callq 0x1080
movl 0x50(%rbx), %ebx
movq %r14, %rdi
callq 0x1180
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake.cpp
// Function: Snake::update_movement()
void Snake::update_movement(void)
{
    pair<int, int> movement_part;
    enum Direction direction = get_direction();
    switch (direction)
    {
    case West:
        movement_part = make_pair(snake_head.first, snake_head.second - 1);
        break;
    case North:
        movement_part = make_pair(snake_head.first - 1, snake_head.second);
        break;
    case East:
        movement_part = make_pair(snake_head.first, snake_head.second + 1);
        break;
    case South:
        movement_part = make_pair(snake_head.first + 1, snake_head.second);
        break;
    }
    snake_head = movement_part;
    snake_parts.push_back(movement_part);
    food_eaten = snake_head.first == snake_food.first && snake_head.second == snake_food.second;
    if (food_eaten)
    {
        length++;
    }
    else
    {
        pair<int, int> tail = snake_parts.front();
        snake_world_array[tail.first][tail.second]--;
        snake_parts.erase(snake_parts.begin());
    }
    int head_value = ++snake_world_array[snake_head.first][snake_head.second];
    if (head_value > 1)
    {
        is_dead = true;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, -0x20(%rbp)
leaq 0x30(%rdi), %r14
movq %r14, %rdi
callq 0x1080
movl 0x50(%rbx), %r15d
movq %r14, %rdi
callq 0x1180
cmpq $0x3, %r15
ja 0x1795
leaq 0x8c4(%rip), %rax       # 0x2024
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl 0x18(%rbx), %ecx
movl 0x1c(%rbx), %eax
decl %eax
jmp 0x178f
movl 0x18(%rbx), %ecx
movl 0x1c(%rbx), %eax
incl %eax
jmp 0x178f
movl 0x18(%rbx), %ecx
movl 0x1c(%rbx), %eax
incl %ecx
jmp 0x178f
movl 0x18(%rbx), %ecx
movl 0x1c(%rbx), %eax
decl %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
movl %eax, 0x18(%rbx)
movl -0x1c(%rbp), %eax
movl %eax, 0x1c(%rbx)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x17b9
movq -0x20(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x17c5
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x1872
movl 0x18(%rbx), %eax
xorl 0x58(%rbx), %eax
movl 0x5c(%rbx), %ecx
xorl 0x1c(%rbx), %ecx
orl %eax, %ecx
sete 0x20(%rbx)
jne 0x17de
incl 0x24(%rbx)
jmp 0x1837
movq (%rbx), %rax
movslq (%rax), %rcx
movslq 0x4(%rax), %rdx
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
addq %rbx, %rcx
decl 0x60(%rcx,%rdx,4)
leaq 0x8(%rax), %rsi
movq 0x8(%rbx), %rcx
cmpq %rcx, %rsi
je 0x182f
movq %rcx, %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
testq %rdx, %rdx
jle 0x182f
incq %rdx
addq $0xc, %rax
movq -0x4(%rax), %rsi
movq %rsi, -0xc(%rax)
decq %rdx
addq $0x8, %rax
cmpq $0x1, %rdx
jg 0x181a
addq $-0x8, %rcx
movq %rcx, 0x8(%rbx)
movslq 0x18(%rbx), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rbx, %rax
movslq 0x1c(%rbx), %rcx
movl 0x60(%rax,%rcx,4), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x60(%rax,%rcx,4)
testl %edx, %edx
jle 0x185d
movb $0x1, 0x21(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/input.cpp
// Function: get_input()
enum Direction get_input()
{
    enum Direction result = East;
    char user_input = getchar();
    switch (user_input)
    {
    case 'a':
        result = West;
        break;
    case 'w':
        result = North;
        break;
    case 'd':
        result = East;
        break;
    case 's':
        result = South;
        break;
    default:
        result = Error;
        cout << "Incorrect button clicked(" << user_input << ")" << endl;
        break;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
callq 0x1150
movl %eax, %ebx
movsbl %bl, %eax
cmpl $0x72, %eax
jg 0x1a42
cmpl $0x61, %eax
je 0x1aca
cmpl $0x64, %eax
jne 0x1a57
movl $0x2, %eax
jmp 0x1ad3
cmpl $0x73, %eax
je 0x1ace
cmpl $0x77, %eax
jne 0x1a57
movl $0x1, %eax
jmp 0x1ad3
movq 0x257a(%rip), %r14      # 0x3fd8
leaq 0x5e9(%rip), %rsi       # 0x204e
movl $0x19, %edx
movq %r14, %rdi
callq 0x1130
leaq -0x11(%rbp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x1130
movq %rax, %rbx
leaq 0x5d9(%rip), %rsi       # 0x2068
movl $0x1, %edx
movq %rax, %rdi
callq 0x1130
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1100
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1ad3
xorl %eax, %eax
jmp 0x1ad3
movl $0x3, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake_map.cpp
// Function: SnakeMap::SnakeMap(Snake*)
SnakeMap::SnakeMap(Snake *snake)
{
    this->snake = snake;
    clear_map(this->map_array);
    srand(time(NULL));
    update_snake_food(true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, (%rdi)
movq %rsi, 0x198(%rdi)
addq $0x8, %rdi
movl $0x190, %edx            # imm = 0x190
movl $0x2e, %esi
callq 0x1070
xorl %edi, %edi
callq 0x10d0
movl %eax, %edi
callq 0x10f0
movq %rbx, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1b44
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake_map.cpp
// Function: SnakeMap::update_snake_food(bool)
void SnakeMap::update_snake_food(bool force_update)
{
    if (snake->food_eaten || force_update)
    {
        while (true)
        {
            int random_i = rand() % MAP_WIDTH;
            int random_j = rand() % MAP_HEIGHT;
            if (map_array[random_i][random_j] == MAP_CHAR)
            {
                snake_food = make_pair(random_i, random_j);
                snake->set_snake_food(snake_food);
                snake->food_eaten = false;
                break;
            }
        }
    }
}

// Assembly:
movq 0x198(%rdi), %rax
orb 0x20(%rax), %sil
cmpb $0x1, %sil
jne 0x1bf0
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
callq 0x1040
movslq %eax, %r15
imulq $0x66666667, %r15, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x23, %rax
addl %ecx, %eax
shll $0x2, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r15d
callq 0x1040
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x23, %rcx
addl %edx, %ecx
shll $0x2, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
movslq %r15d, %rcx
movslq %eax, %rdx
leaq (%rcx,%rcx,4), %rcx
leaq (%r14,%rcx,4), %rcx
cmpb $0x2e, (%rdx,%rcx)
jne 0x1b6a
movl %r15d, (%rbx)
movl %eax, 0x4(%rbx)
movq 0x198(%rbx), %rdi
movq (%rbx), %rsi
callq 0x1868
movq 0x198(%rbx), %rax
movb $0x0, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake_map.cpp
// Function: SnakeMap::redraw()
void SnakeMap::redraw(void)
{
    clear_map(this->map_array);
    for (int i = 0; i < MAP_END; i++)
    {
        cout << endl;
    }
    update_score();
    vector<pair<int, int>> snake_parts = snake->snake_parts;
    for (int i = 0; i < snake_parts.size(); i++)
    {
        pair<int, int> tmp = snake_parts[i];
        map_array[tmp.first][tmp.second] = SNAKE_CHAR;
    }
    update_snake_head(map_array, snake);
    update_snake_food(false);
    map_array[snake_food.first][snake_food.second] = SNAKE_FOOD_CHAR;
    for (int i = 0; i < MAP_HEIGHT; i++)
    {
        for (int j = 0; j < MAP_WIDTH; j++)
        {
            cout << map_array[i][j] << " ";
        }
        cout << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
movl $0x190, %edx            # imm = 0x190
movq %r15, %rdi
movl $0x2e, %esi
callq 0x1070
movl $0x1e, %r12d
movq 0x23af(%rip), %r14      # 0x3fd8
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1100
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
decl %r12d
jne 0x1c29
movq %rbx, %rdi
callq 0x1d90
movq 0x198(%rbx), %rsi
leaq -0x50(%rbp), %r12
movq %r12, %rdi
callq 0x1e3c
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
je 0x1ca9
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edx, %edx
movslq (%rax,%rdx,8), %rsi
movslq 0x4(%rax,%rdx,8), %rdi
leaq (%rsi,%rsi,4), %rsi
leaq (%r15,%rsi,4), %rsi
movb $0x4f, (%rdi,%rsi)
incq %rdx
cmpq %rdx, %rcx
jne 0x1c8c
movq 0x198(%rbx), %rsi
movq %r15, %rdi
callq 0x1df5
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1b44
movslq (%rbx), %rax
movslq 0x4(%rbx), %rcx
leaq (%rax,%rax,4), %rax
leaq (%r15,%rax,4), %rax
movb $0x2a, (%rcx,%rax)
xorl %r13d, %r13d
leaq -0x29(%rbp), %r15
leaq 0x387(%rip), %r12       # 0x206a
movq %r13, -0x38(%rbp)
movl $0x8, %r13d
movb (%rbx,%r13), %al
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1130
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x1130
incq %r13
cmpq $0x1c, %r13
jne 0x1ced
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1100
movq -0x38(%rbp), %r13
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
incq %r13
addq $0x14, %rbx
cmpq $0x14, %r13
jne 0x1ce3
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1d63
callq 0x10e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d76
jmp 0x1d76
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1d87
callq 0x10e0
movq %rbx, %rdi
callq 0x11a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/gogakoreli[P]snake/snake_map.cpp
// Function: update_snake_head(char (*) [20], Snake*)
void update_snake_head(char map_array[MAP_HEIGHT][MAP_WIDTH], Snake *snake)
{
    char snake_head_char = SNAKE_CHAR;
    enum Direction direction = snake->get_direction();
    switch (direction)
    {
    case West:
        snake_head_char = SNAKE_HEAD_WEST;
        break;
    case North:
        snake_head_char = SNAKE_HEAD_NORTH;
        break;
    case East:
        snake_head_char = SNAKE_HEAD_EAST;
        break;
    case South:
        snake_head_char = SNAKE_HEAD_SOUTH;
        break;
    }
    pair<int, int> snake_head = snake->snake_head;
    map_array[snake_head.first][snake_head.second] = snake_head_char;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16ea
leal (,%rax,8), %ecx
movl $0x5e3c763e, %edx       # imm = 0x5E3C763E
shrl %cl, %edx
cmpl $0x4, %eax
movl $0x4f, %eax
cmovbl %edx, %eax
movslq 0x18(%rbx), %rcx
movslq 0x1c(%rbx), %rdx
leaq (%rcx,%rcx,4), %rcx
leaq (%r14,%rcx,4), %rcx
movb %al, (%rdx,%rcx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/fasta_stats.cc
// Function: print_usage()
static void print_usage() {
	fprintf(stderr, "usage: fasta_stats [options] <fasta_file>\n");
	fprintf(stderr, "\t-b ##\tsize of big scaffold cutoff in kb [50]\n");
	fprintf(stderr, "\t-g ##\tminimum size bin to display for gaps [none]\n");
	fprintf(stderr, "\t-l ##\tminimum size bin to display [1000]\n");
	fprintf(stderr, "\t-N ##\texact length of N's to signal scaffold end [-1]\n");
	fprintf(stderr, "\t-n ##\tminimum length of N's to signal contig end [9]\n");
	exit(0);
}

// Assembly:
pushq %rbx
movq 0x5718(%rip), %rbx      # 0x8fd0
movq (%rbx), %rcx
leaq 0x2789(%rip), %rdi      # 0x604b
movl $0x2a, %esi
movl $0x1, %edx
callq 0x23b0
movq (%rbx), %rcx
leaq 0x279b(%rip), %rdi      # 0x6076
movl $0x2e, %esi
movl $0x1, %edx
callq 0x23b0
movq (%rbx), %rcx
leaq 0x27b1(%rip), %rdi      # 0x60a5
movl $0x33, %esi
movl $0x1, %edx
callq 0x23b0
movq (%rbx), %rcx
leaq 0x27cc(%rip), %rdi      # 0x60d9
movl $0x2a, %esi
movl $0x1, %edx
callq 0x23b0
movq (%rbx), %rcx
leaq 0x27de(%rip), %rdi      # 0x6104
movl $0x37, %esi
movl $0x1, %edx
callq 0x23b0
movq (%rbx), %rcx
leaq 0x27fd(%rip), %rdi      # 0x613c
movl $0x36, %esi
movl $0x1, %edx
callq 0x23b0
xorl %edi, %edi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/fasta_stats.cc
// Function: scaled_print(long)
static void scaled_print(long i) {
	if (i > 999999) {
		printf("%.1f MB", (double)i / 1000000);
	} else if (i > 999) {
		printf("%.1f KB", (double)i / 1000);
	} else {
		printf("%ld", i);
	}
}

// Assembly:
movq %rdi, %rsi
cmpq $0xf4240, %rdi          # imm = 0xF4240
jl 0x3977
cvtsi2sd %rsi, %xmm0
divsd 0x26aa(%rip), %xmm0     # 0x6018
leaq 0x2958(%rip), %rdi      # 0x62cd
jmp 0x3994
cmpq $0x3e8, %rsi            # imm = 0x3E8
jl 0x399b
cvtsi2sd %rsi, %xmm0
divsd 0x2683(%rip), %xmm0     # 0x6010
leaq 0x2941(%rip), %rdi      # 0x62d5
movb $0x1, %al
jmp 0x2050
leaq 0x293b(%rip), %rdi      # 0x62dd
xorl %eax, %eax
jmp 0x2050