LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: calculateDistance(Node&, Node&)
double calculateDistance(Node & u, Node & v) {
	const double EARTH_RADIUS = 3961.0;
	const double MY_PI = 3.14159;
	
	double lat_change = (v.latitude() - u.latitude())*MY_PI/180.0; 
	double long_change = (v.longitude() - u.longitude())*MY_PI/180.0;
	
	double a = sin(lat_change/2.0)*sin(lat_change/2.0)  +  (  cos(u.latitude()*MY_PI/180.0)*cos(v.latitude()*MY_PI/180.0)*sin(long_change/2.0)*sin(long_change/2.0) );
	
	double c = 2.0 * atan2(sqrt(a), sqrt(1-a));
	double d = EARTH_RADIUS*c;

	return d;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x7c0c
movsd %xmm0, -0x18(%rbp)
movq %r14, %rdi
callq 0x7c0c
movsd -0x18(%rbp), %xmm1
subsd %xmm0, %xmm1
mulsd 0xa7d4(%rip), %xmm1     # 0xf068
divsd 0xa7d4(%rip), %xmm1     # 0xf070
movsd %xmm1, -0x18(%rbp)
movq %rbx, %rdi
callq 0x7c18
movsd %xmm0, -0x20(%rbp)
movq %r14, %rdi
callq 0x7c18
movsd -0x20(%rbp), %xmm1
subsd %xmm0, %xmm1
mulsd 0xa7a1(%rip), %xmm1     # 0xf068
divsd 0xa7a1(%rip), %xmm1     # 0xf070
movsd %xmm1, -0x20(%rbp)
movsd -0x18(%rbp), %xmm0
mulsd 0xa797(%rip), %xmm0     # 0xf078
movsd %xmm0, -0x18(%rbp)
callq 0x2090
movsd %xmm0, -0x30(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x2090
movsd %xmm0, -0x18(%rbp)
movq %r14, %rdi
callq 0x7c0c
mulsd 0xa759(%rip), %xmm0     # 0xf068
divsd 0xa759(%rip), %xmm0     # 0xf070
callq 0x23a0
movsd %xmm0, -0x28(%rbp)
movq %rbx, %rdi
callq 0x7c0c
mulsd 0xa737(%rip), %xmm0     # 0xf068
divsd 0xa737(%rip), %xmm0     # 0xf070
callq 0x23a0
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd -0x20(%rbp), %xmm0
mulsd 0xa723(%rip), %xmm0     # 0xf078
movsd %xmm0, -0x20(%rbp)
callq 0x2090
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd -0x20(%rbp), %xmm0
callq 0x2090
movsd -0x18(%rbp), %xmm1
mulsd -0x28(%rbp), %xmm0
mulsd -0x30(%rbp), %xmm1
addsd %xmm0, %xmm1
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm1
jb 0x4996
sqrtsd %xmm1, %xmm2
jmp 0x49b1
movapd %xmm1, %xmm0
movsd %xmm1, -0x18(%rbp)
callq 0x21b0
xorpd %xmm3, %xmm3
movsd -0x18(%rbp), %xmm1
movapd %xmm0, %xmm2
movsd 0xa6c7(%rip), %xmm0     # 0xf080
subsd %xmm1, %xmm0
ucomisd %xmm3, %xmm0
jb 0x49cc
xorps %xmm1, %xmm1
sqrtsd %xmm0, %xmm1
jmp 0x49df
movsd %xmm2, -0x20(%rbp)
callq 0x21b0
movsd -0x20(%rbp), %xmm2
movapd %xmm0, %xmm1
movapd %xmm2, %xmm0
callq 0x2060
addsd %xmm0, %xmm0
mulsd 0xa694(%rip), %xmm0     # 0xf088
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: Graph::sameDistances(std::vector<int, std::allocator<int>>)
bool Graph::sameDistances(vector<int> V) {
	assert(m_nodes.size() == V.size());
	
	for(size_t i = 0; i != V.size(); i++) {
		if(V.at(i) != dist(m_nodes.at(i)))
			return false;
	}
	
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x7, %rax
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
sarq $0x2, %rcx
cmpq %rcx, %rax
jne 0x50b0
movq %rsi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
subq %rax, %rdx
sete %r12b
je 0x5089
movq %rdi, %r14
sarq $0x2, %rdx
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpq %r15, %rdx
jbe 0x509f
movq (%r14), %rdi
movq 0x8(%r14), %rdx
subq %rdi, %rdx
sarq $0x7, %rdx
cmpq %r15, %rdx
jbe 0x509f
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%r15,4), %xmm0
movsd %xmm0, -0x30(%rbp)
addq %r13, %rdi
callq 0x7bc4
movslq %eax, %rdi
shlq $0x7, %rdi
addq (%r14), %rdi
callq 0x7c00
ucomisd -0x30(%rbp), %xmm0
jne 0x5089
jp 0x5089
incq %r15
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
subq $-0x80, %r13
cmpq %rdx, %r15
sete %r12b
jne 0x5025
andb $0x1, %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa2b0(%rip), %rdi      # 0xf356
movq %r15, %rsi
xorl %eax, %eax
callq 0x22f0
leaq 0xa0d5(%rip), %rdi      # 0xf18c
leaq 0x9fff(%rip), %rsi      # 0xf0bd
leaq 0xa0e2(%rip), %rcx      # 0xf1a7
movl $0x128, %edx            # imm = 0x128
callq 0x2150
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: Graph::sameEdges(std::vector<Edge, std::allocator<Edge>>)
bool Graph::sameEdges(vector<Edge> E) {
	assert(m_edges_MST.size() == E.size());	
	
	for(size_t i = 0; i != E.size(); i++) {
		cerr << "in same edges, edge: ";
		m_edges_MST.at(i).print(*this);
		if( !m_edges_MST.at(i).equals(E.at(i)) )
			return false;
	}
	
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
subq 0x48(%rdi), %rax
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
cmpq %rcx, %rax
jne 0x51ce
movq %rsi, %rbx
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
sete %r12b
je 0x51a7
movq %rdi, %r14
xorl %r13d, %r13d
xorl %r15d, %r15d
movl $0x15, %edx
movq 0xfed1(%rip), %rdi      # 0x14ff0
leaq 0xa0eb(%rip), %rsi      # 0xf211
callq 0x2270
movq 0x48(%r14), %rdi
movq 0x50(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
cmpq %r15, %rdx
jbe 0x51bd
addq %r13, %rdi
movq %r14, %rsi
callq 0x5ff8
movq 0x48(%r14), %rdi
movq 0x50(%r14), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
cmpq %r15, %rdx
jbe 0x51bd
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq %r15, %rdx
jbe 0x51bd
addq %r13, %rdi
movq (%rax,%r13), %rsi
movsd 0x8(%rax,%r13), %xmm0
callq 0x6246
testb %al, %al
je 0x51a7
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x4, %rax
addq $0x10, %r13
cmpq %rax, %r15
sete %r12b
jne 0x5113
andb $0x1, %r12b
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa192(%rip), %rdi      # 0xf356
movq %r15, %rsi
xorl %eax, %eax
callq 0x22f0
leaq 0x9ff9(%rip), %rdi      # 0xf1ce
leaq 0x9ee1(%rip), %rsi      # 0xf0bd
leaq 0xa00a(%rip), %rcx      # 0xf1ed
movl $0x133, %edx            # imm = 0x133
callq 0x2150
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: printSet(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 printSet(set<string> s) {
	cerr << "printing set of strings already loaded into m_nodes: " << endl;
	for(set<string>::iterator itr = s.begin(); itr != s.end(); itr++)
		cerr << *itr << "_and size of it: " << itr->size() << endl;
	
	cerr << "exit printSet" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xfd2e(%rip), %rbx      # 0x14ff0
leaq 0x9f79(%rip), %rsi      # 0xf242
movl $0x35, %edx
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq 0x18(%r14), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x5381
movq 0xfcdf(%rip), %r12      # 0x14ff0
leaq 0x9f60(%rip), %r13      # 0xf278
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r12, %rdi
callq 0x2270
movq %rax, %rbx
movl $0x11, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2270
movq 0x28(%r15), %rsi
movq %rbx, %rdi
callq 0x2170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq %r15, %rdi
callq 0x2280
movq %rax, %r15
cmpq %r14, %rax
jne 0x5318
leaq 0x9f02(%rip), %rsi      # 0xf28a
movl $0xd, %edx
movq 0xfc5c(%rip), %rbx      # 0x14ff0
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2180
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: Graph::reset()
void Graph::reset() {	
	this->resetClock();
	this->current_cc = 0;
	
  for (size_t i = 0; i != this->m_nodes.size(); i++) { 
	setDist(m_nodes[i], M_INFINITY);
	this->m_nodes[i].resetVisitedFlag();
	setPre(this->m_nodes[i], -1);
	setPost(this->m_nodes[i], -1);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x64(%rdi)
movq (%rdi), %rdi
cmpq %rdi, 0x8(%rbx)
je 0x554e
xorl %r14d, %r14d
xorl %r15d, %r15d
addq %r14, %rdi
callq 0x7bc4
movslq %eax, %rdi
shlq $0x7, %rdi
addq (%rbx), %rdi
movsd 0x9bae(%rip), %xmm0     # 0xf090
callq 0x7b78
movq (%rbx), %rdi
addq %r14, %rdi
callq 0x7b46
movq (%rbx), %rdi
addq %r14, %rdi
callq 0x7bc4
movslq %eax, %rdi
shlq $0x7, %rdi
addq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x7b64
movq (%rbx), %rdi
addq %r14, %rdi
callq 0x7bc4
movslq %eax, %rdi
shlq $0x7, %rdi
addq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x7b6e
incq %r15
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
subq %rdi, %rax
sarq $0x7, %rax
subq $-0x80, %r14
cmpq %rax, %r15
jne 0x54c8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Graph.cpp
// Function: Graph::reverse()
Graph Graph::reverse() {
	Graph g_new;
	g_new.initEmpty(75000); //75,000 nodes
	g_new.copyNodes(*this);
			
	for(unsigned int u = 0; u != m_nodes.size(); u++) {
		set<Node> adjNodes = getAdjNodes(m_nodes[u]);
		for(set<Node>::iterator v = adjNodes.begin(); v != adjNodes.end(); v++) {
			g_new.addEdge(*v, m_nodes[u]);
		}
 	}
	
	return g_new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2ef0
movq %rbx, %rdi
movl $0x124f8, %esi          # imm = 0x124F8
callq 0x2f62
movq %rbx, %rdi
movq %r14, %rsi
callq 0x555a
movq (%r14), %rdi
cmpq %rdi, 0x8(%r14)
je 0x56ea
xorl %r15d, %r15d
leaq -0x60(%rbp), %r12
xorl %ecx, %ecx
movq %rcx, -0x30(%rbp)
shlq $0x7, %r15
addq %r15, %rdi
callq 0x7bc4
cltq
leaq (%rax,%rax,2), %rsi
shlq $0x4, %rsi
addq 0x18(%r14), %rsi
movq %r12, %rdi
callq 0x66b0
movq -0x48(%rbp), %r12
leaq -0x58(%rbp), %rax
cmpq %rax, %r12
je 0x56be
leaq 0x20(%r12), %rdi
movq (%r14), %r13
callq 0x7bc4
addq %r15, %r13
cltq
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0x7128
movq %r12, %rdi
callq 0x2280
movq %rax, %r12
jmp 0x5682
leaq -0x60(%rbp), %r12
movq %r12, %rdi
callq 0x2d76
movq -0x30(%rbp), %rcx
incl %ecx
movq (%r14), %rdi
movq 0x8(%r14), %rax
subq %rdi, %rax
sarq $0x7, %rax
movq %rcx, %r15
cmpq %rcx, %rax
jne 0x5658
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56fe
movq %rax, %r14
jmp 0x570f
movq %rax, %r14
leaq -0x60(%rbp), %rdi
callq 0x2d76
movq %rbx, %rdi
callq 0x2bc6
movq %r14, %rdi
callq 0x2380
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/ListPriorityQueue.cpp
// Function: ListPriorityQueue::remove_min(Graph&)
Node ListPriorityQueue::remove_min(Graph & g) {
	std::list<Node>::iterator min_node = this->m_queue.begin();
	for(std::list<Node>::iterator curr = this->m_queue.begin(); curr != this->m_queue.end(); curr++) {
		if(g.dist(*curr) < g.dist(*min_node)) {
			min_node = curr;
		}
	}
	
	Node result = g.getNode(min_node->id());
	this->m_queue.erase(min_node);
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
movq (%rsi), %r13
cmpq %rsi, %r13
je 0x7d2b
movq %r13, %r15
leaq 0x10(%r15), %rsi
movq %r12, %rdi
callq 0x4d8e
movsd %xmm0, -0x38(%rbp)
leaq 0x10(%r13), %rsi
movq %r12, %rdi
callq 0x4d8e
ucomisd -0x38(%rbp), %xmm0
movq %r15, %rbx
ja 0x7d1e
movq %r13, %rbx
movq (%r15), %r15
movq %rbx, %r13
cmpq %r14, %r15
jne 0x7cf4
jmp 0x7d2e
movq %r13, %rbx
leaq 0x10(%rbx), %rdi
callq 0x7bc4
movslq %eax, %rsi
movq %r12, %rdi
callq 0x3f6c
movq %rax, %r12
movq -0x30(%rbp), %r15
leaq 0x10(%r15), %r13
movq %r13, (%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2bfe
movups 0x20(%r12), %xmm0
movups 0x30(%r12), %xmm1
movups 0x40(%r12), %xmm2
movups 0x50(%r12), %xmm3
movups %xmm3, 0x50(%r15)
movups %xmm2, 0x40(%r15)
movups %xmm1, 0x30(%r15)
movups %xmm0, 0x20(%r15)
leaq 0x60(%r15), %rdi
leaq 0x70(%r15), %rax
movq %rax, 0x60(%r15)
movq 0x60(%r12), %rsi
movq 0x68(%r12), %rdx
addq %rsi, %rdx
callq 0x2bfe
movq %r14, %rdi
movq %rbx, %rsi
callq 0x808e
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x7dd9
callq 0x21f0
movq %r14, %rdi
callq 0x2380
nop
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Debug.cpp
// Function: trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string trim(const std::string& str, const std::string& whitespace/*=" \t\n\r" */)
{
    const int strBegin = str.find_first_not_of(whitespace);
    if (strBegin == std::string::npos)
        return ""; // no content

    const int strEnd = str.find_last_not_of(whitespace);
    const int strRange = strEnd - strBegin + 1;

    return str.substr(strBegin, strRange);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x2360
movq %rax, %r13
movq %rax, %r15
shlq $0x20, %r15
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
cmpq %rax, %r15
jne 0x90ac
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6370(%rip), %rdx      # 0xf40f
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2e54
jmp 0x90de
sarq $0x20, %r15
movq (%r12), %rsi
movq 0x8(%r12), %rcx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x2320
subl %r13d, %eax
incl %eax
movslq %eax, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2230
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/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Debug.cpp
// Function: printEdges(Graph&)
void printEdges(Graph & g) {	
	for(int i = 0; i != g.num_nodes(); i++) {
		list<Edge> edge_list = g.getEdges(g.getNode(i));
		for(list<Edge>::iterator e = edge_list.begin(); e != edge_list.end(); e++) {
			e->print(g);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x4e30
testq %rax, %rax
je 0x9a4f
xorl %r14d, %r14d
leaq -0x38(%rbp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3f6c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4f6a
movq %r15, %rdi
movq %rax, %rsi
callq 0x655c
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x9a26
leaq 0x10(%r12), %rdi
movq %rbx, %rsi
callq 0x5ff8
jmp 0x9a0e
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x9a3f
movq (%rdi), %r12
callq 0x21f0
movq %r12, %rdi
cmpq %r15, %r12
jne 0x9a2f
incq %r14
movq %rbx, %rdi
callq 0x4e30
cmpq %r14, %rax
jne 0x99ea
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %r14
movq (%r14), %rdi
cmpq %r14, %rdi
je 0x9a7b
movq (%rdi), %r15
callq 0x21f0
movq %r15, %rdi
cmpq %r14, %r15
jne 0x9a6b
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Debug.cpp
// Function: printTimes(Graph&)
void printTimes(Graph & g) {
	for (int i = 0; i != g.num_nodes(); i++) {
		Node e = g.getNode(i);
		cerr << e.name() << ".id() == " << i << ", .pre() == " << g.pre(e) << ", " << e.name() 
			 << ".post() == " << g.post(e) << ".cc() == " << g.cc(e) << endl;
	}
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
callq 0x4e30
testq %rax, %rax
je 0x9f6b
leaq -0x98(%rbp), %r14
xorl %r15d, %r15d
leaq -0xa8(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3f6c
movq %rax, %r13
movq %r14, -0xa8(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2bfe
movups 0x20(%r13), %xmm0
movups 0x30(%r13), %xmm1
movups 0x40(%r13), %xmm2
movups 0x50(%r13), %xmm3
movups %xmm3, 0x40(%r14)
movups %xmm2, 0x30(%r14)
movups %xmm1, 0x20(%r14)
movups %xmm0, 0x10(%r14)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq 0x60(%r13), %rsi
movq 0x68(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x2bfe
movq %r12, %rdi
callq 0x7bce
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0xb1bf(%rip), %rdi      # 0x14ff0
callq 0x2270
movq %rax, %r13
movl $0x9, %edx
movq %rax, %rdi
leaq 0x561a(%rip), %rsi      # 0xf462
callq 0x2270
movq %r13, %rdi
movl %r15d, %esi
callq 0x2370
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0x5602(%rip), %rsi      # 0xf46c
callq 0x2270
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4db4
movq %r13, %rdi
movl %eax, %esi
callq 0x2370
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x55e3(%rip), %rsi      # 0xf479
callq 0x2270
movq %r12, %rdi
callq 0x7bce
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r13
movl $0xb, %edx
movq %rax, %rdi
leaq 0x55d4(%rip), %rsi      # 0xf498
callq 0x2270
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4dda
movq %r13, %rdi
movl %eax, %esi
callq 0x2370
movq %rax, %r13
movl $0x9, %edx
movq %rax, %rdi
leaq 0x55b6(%rip), %rsi      # 0xf4a6
callq 0x2270
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4e00
movq %r13, %rdi
movl %eax, %esi
callq 0x2370
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9f46
callq 0x21f0
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x9f57
callq 0x21f0
incq %r15
movq %rbx, %rdi
callq 0x4e30
cmpq %rax, %r15
jne 0x9db0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x9fa2
callq 0x21f0
jmp 0x9fa2
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x2b90
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/BFS.cpp
// Function: BFS(Graph&, Node&)
void BFS(Graph & g, Node & s) {
	queue<Node> q;
	
	g.resetAllDist();
	
	g.setDist(s, 0); //s is the root 
	q.push(s);
	
	while ( !q.empty() ) {
		Node u = q.front();
		q.pop();
		
		set<Node> uAdjNodes = g.getAdjNodes(u);
		
		//for every adjacent node v: (u)--->(v)
		for(set<Node>::iterator v = uAdjNodes.begin(); v != uAdjNodes.end(); v++) {
			if(g.dist(*v) == M_INFINITY) {		//if v has not been visited in BFS
				g.setDist(*v, g.dist(u) + 1);	//v.dist == u.dist + 1
				q.push(*v);						//push the adjacent node to back of the queue
			}
		} //end adjNodes loop
	} //end while
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
xorpd %xmm0, %xmm0
leaq -0x80(%rbp), %rdi
movapd %xmm0, 0x40(%rdi)
movapd %xmm0, 0x30(%rdi)
movapd %xmm0, 0x20(%rdi)
movapd %xmm0, 0x10(%rdi)
movapd %xmm0, (%rdi)
xorl %esi, %esi
callq 0xa8b4
movq %rbx, %rdi
callq 0x53e0
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4c18
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0xaa32
movq -0x70(%rbp), %r14
cmpq %r14, -0x50(%rbp)
je 0xa74d
leaq -0x120(%rbp), %r13
leaq -0xa8(%rbp), %r12
leaq -0x130(%rbp), %r15
movq %r13, -0x130(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2bfe
movupd 0x20(%r14), %xmm0
movups 0x30(%r14), %xmm1
movups 0x40(%r14), %xmm2
movups 0x50(%r14), %xmm3
movups %xmm3, 0x40(%r13)
movups %xmm2, 0x30(%r13)
movups %xmm1, 0x20(%r13)
movupd %xmm0, 0x10(%r13)
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq 0x60(%r14), %rsi
movq 0x68(%r14), %rdx
addq %rsi, %rdx
leaq -0xd0(%rbp), %rdi
callq 0x2bfe
leaq -0x80(%rbp), %rdi
callq 0xacb2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4f1e
leaq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0x66b0
movq -0x98(%rbp), %r14
cmpq %r12, %r14
je 0xa703
leaq 0x20(%r14), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4d8e
ucomisd 0x49cb(%rip), %xmm0     # 0xf090
jne 0xa6f3
jp 0xa6f3
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4d8e
addsd 0x49a4(%rip), %xmm0     # 0xf080
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4c18
leaq -0x80(%rbp), %rdi
movq %r13, %rsi
callq 0xaa32
movq %r14, %rdi
callq 0x2280
movq %rax, %r14
cmpq %r12, %rax
jne 0xa6ae
leaq -0xb0(%rbp), %rdi
callq 0x2d76
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0xa727
callq 0x21f0
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %r13
cmpq %r13, %rdi
je 0xa73f
callq 0x21f0
movq -0x70(%rbp), %r14
cmpq %r14, -0x50(%rbp)
jne 0xa617
leaq -0x80(%rbp), %rdi
callq 0xa7b6
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa76a
movq %rax, %rbx
jmp 0xa7a5
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r13, %rdi
je 0xa7a5
callq 0x21f0
jmp 0xa7a5
movq %rax, %rbx
jmp 0xa799
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2d76
leaq -0x130(%rbp), %rdi
callq 0x2b90
leaq -0x80(%rbp), %rdi
callq 0xa7b6
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Dijkstra.cpp
// Function: findEdgeWeight(Node, std::__cxx11::list<Edge, std::allocator<Edge>>)
double findEdgeWeight(Node v, list<Edge> uEdges) { //find the destination node v containing edge from u
	for(list<Edge>::iterator itr = uEdges.begin(); itr != uEdges.end(); itr++) {
		Edge e = *itr;
		if(e.v_id() == v.id()) 
			return e.weight();
	}
	
	cerr << "findEdgeWeight: should never reach here!" << endl;
	return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rbx
movq (%rbx), %rbx
cmpq %r15, %rbx
je 0xad8d
movups 0x10(%rbx), %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x7c3c
movl %eax, %r12d
movq %r14, %rdi
callq 0x7bc4
movl %eax, %r13d
cmpl %eax, %r12d
jne 0xad88
leaq -0x40(%rbp), %rdi
callq 0x7c46
movsd %xmm0, -0x30(%rbp)
cmpl %r13d, %r12d
jne 0xad4e
cmpq %r15, %rbx
jne 0xade1
movq 0xa257(%rip), %rbx      # 0x14ff0
leaq 0x4798(%rip), %rsi      # 0xf538
movl $0x28, %edx
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movsd 0x4754(%rip), %xmm0     # 0xf530
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Kruskal.cpp
// Function: get_all_edges(Graph&)
vector<Edge> get_all_edges(Graph & g) {
	vector<Edge> E;
	E.reserve(g.num_nodes());
	
	for(int i = 0; i != g.num_nodes(); i++) {
		list<Edge> edge_list = g.getEdges(g.getNode(i));
		for(list<Edge>::iterator e = edge_list.begin(); e != edge_list.end(); e++) {
			E.push_back(*e);
		}
	}
	
	return E;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x4e30
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdc82
xorl %r12d, %r12d
leaq -0x40(%rbp), %r15
movq %r14, %rdi
callq 0x4e30
cmpq %r12, %rax
je 0xc7fd
movq %r14, %rdi
movq %r12, %rsi
callq 0x3f6c
movq %r14, %rdi
movq %rax, %rsi
callq 0x4f6a
movq %r15, %rdi
movq %rax, %rsi
callq 0x655c
movq -0x40(%rbp), %r13
cmpq %r15, %r13
je 0xc7df
leaq 0x10(%r13), %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xc7d1
movups (%rdx), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0xc7d9
movq %rbx, %rdi
callq 0x72a8
movq (%r13), %r13
jmp 0xc7b1
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0xc7f8
movq (%rdi), %r13
callq 0x21f0
movq %r13, %rdi
cmpq %r15, %r13
jne 0xc7e8
incq %r12
jmp 0xc77f
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc813
jmp 0xc813
movq %rax, %r14
jmp 0xc834
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0xc834
movq (%rdi), %r12
callq 0x21f0
movq %r12, %rdi
cmpq %r15, %r12
jne 0xc824
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc841
callq 0x21f0
movq %r14, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Kruskal.cpp
// Function: union_set_cc(Graph&, Node, Node)
void union_set_cc(Graph & g, Node u_in, Node v_in) {
	int new_cc = g.cc(u_in);
	int orig_cc = g.cc(v_in);
	for(int i = 0; i != g.num_nodes(); i++) {
		Node n = g.getNode(i);
		if(g.cc(n) == orig_cc) {
			g.setCC(n, new_cc);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rdi, %rbx
callq 0x4e00
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4e00
movl %eax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x4e30
testq %rax, %rax
je 0xcbae
leaq -0xa0(%rbp), %r15
xorl %r13d, %r13d
leaq -0xb0(%rbp), %r14
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3f6c
movq %rax, %r12
movq %r15, -0xb0(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x2bfe
movups 0x20(%r12), %xmm0
movups 0x30(%r12), %xmm1
movups 0x40(%r12), %xmm2
movups 0x50(%r12), %xmm3
movups %xmm3, 0x40(%r15)
movups %xmm2, 0x30(%r15)
movups %xmm1, 0x20(%r15)
movups %xmm0, 0x10(%r15)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x60(%r12), %rsi
movq 0x68(%r12), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x2bfe
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4e00
cmpl -0x30(%rbp), %eax
jne 0xcb77
movq %rbx, %rdi
movq %r14, %rsi
movl -0x2c(%rbp), %edx
callq 0x4c48
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xcb89
callq 0x21f0
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0xcb9a
callq 0x21f0
incq %r13
movq %rbx, %rdi
callq 0x4e30
cmpq %rax, %r13
jne 0xcae8
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0xcbe5
callq 0x21f0
jmp 0xcbe5
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2b90
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Kruskal.cpp
// Function: make_set(Graph&)
void make_set(Graph & g) {
	for(int i = 0; i != g.num_nodes(); i++) {
		Node n = g.getNode(i);
		g.setParent(n, i);
		g.setRank(n, 0);
	}	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
callq 0x4e30
testq %rax, %rax
je 0xccea
leaq -0x98(%rbp), %r14
xorl %r15d, %r15d
leaq -0xa8(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3f6c
movq %rax, %r13
movq %r14, -0xa8(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2bfe
movups 0x20(%r13), %xmm0
movups 0x30(%r13), %xmm1
movups 0x40(%r13), %xmm2
movups 0x50(%r13), %xmm3
movups %xmm3, 0x40(%r14)
movups %xmm2, 0x30(%r14)
movups %xmm1, 0x20(%r14)
movups %xmm0, 0x10(%r14)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq 0x60(%r13), %rsi
movq 0x68(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x2bfe
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x4c72
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x4b74
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xccc5
callq 0x21f0
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0xccd6
callq 0x21f0
incq %r15
movq %rbx, %rdi
callq 0x4e30
cmpq %rax, %r15
jne 0xcc2d
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0xcd21
callq 0x21f0
jmp 0xcd21
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x2b90
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/jkeys-ecg-nmsu[P]graph-with-search-algorithms/Kruskal.cpp
// Function: MST_union(Graph&, Node&, Node&)
void MST_union(Graph & g, Node & a, Node & b) {
	int a_root = find(g, a), b_root = find(g, b);
	
	if(a_root == b_root) return;
	
	if(g.rank(a) < g.rank(b)) {
		g.setParent(a, b_root);
	} else if (g.rank(a) > g.rank(b)) {
		g.setParent(b, a_root);
	} else {
		g.setParent(b, a_root);
		g.setRank(a, g.rank(a) + 1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x120(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x130(%rbp), %r12
movq %r12, %rdi
callq 0x2bfe
movups 0x20(%rbx), %xmm0
movups 0x30(%rbx), %xmm1
movups 0x40(%rbx), %xmm2
movups 0x50(%rbx), %xmm3
movups %xmm3, 0x50(%r12)
movups %xmm2, 0x40(%r12)
movups %xmm1, 0x30(%r12)
movups %xmm0, 0x20(%r12)
leaq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
addq %rsi, %rdx
callq 0x2bfe
leaq -0x130(%rbp), %rsi
movq %r14, %rdi
callq 0xcd29
movl %eax, -0x2c(%rbp)
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0xcf16
callq 0x21f0
movq -0x130(%rbp), %rdi
cmpq %r13, %rdi
je 0xcf27
callq 0x21f0
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %r13
movq %r13, %rdi
callq 0x2bfe
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups 0x40(%r15), %xmm2
movups 0x50(%r15), %xmm3
movups %xmm3, 0x50(%r13)
movups %xmm2, 0x40(%r13)
movups %xmm1, 0x30(%r13)
movups %xmm0, 0x20(%r13)
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x60(%r15), %rsi
movq 0x68(%r15), %rdx
addq %rsi, %rdx
callq 0x2bfe
leaq -0xb0(%rbp), %rsi
movq %r14, %rdi
callq 0xcd29
movl %eax, %r13d
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0xcfb0
callq 0x21f0
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xcfc8
callq 0x21f0
cmpl %r13d, -0x2c(%rbp)
je 0xd044
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e72
movl %eax, %r12d
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e72
cmpl %eax, %r12d
jge 0xcffc
movq %r14, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq 0x4c72
jmp 0xd044
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e72
movl %eax, %r12d
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e72
movl %eax, %r13d
movq %r14, %rdi
movq %r15, %rsi
movl -0x2c(%rbp), %edx
callq 0x4c72
cmpl %r13d, %r12d
jg 0xd044
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e72
leal 0x1(%rax), %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4b74
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
jmp 0xd084
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
jne 0xd09a
jmp 0xd09f
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x2b90
jmp 0xd09f
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r13, %rdi
je 0xd09f
callq 0x21f0
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/correctness.cc
// Function: CorrectnessTest::start_test(void*)
void start_test(void *args = NULL) override
	{
		std::cout << "KVStore Correctness Test" << std::endl;

		std::cout << "[Simple Test]" << std::endl;
		regular_test(SIMPLE_TEST_MAX);

		std::cout << "[Large Test]" << std::endl;
		regular_test(LARGE_TEST_MAX);
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x124c8(%rip), %r14     # 0x15fd0
leaq 0xc57c(%rip), %rsi      # 0x1008b
movl $0x18, %edx
movq %r14, %rdi
callq 0x32b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
leaq 0xc55a(%rip), %rsi      # 0x100a4
movl $0xd, %edx
movq %r14, %rdi
callq 0x32b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
movq 0x90(%rbx), %rsi
movq %rbx, %rdi
callq 0x3c22
leaq 0xc51e(%rip), %rsi      # 0x100b2
movl $0xc, %edx
movq %r14, %rdi
callq 0x32b0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
movq 0x98(%rbx), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3c22
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/./test.h
// Function: Test::phase()
void phase(void)
	{
		// Report
		std::cout << "  Phase " << (nr_phases+1) << ": ";
		std::cout << nr_passed_tests << "/" << nr_tests << " ";

		// Count
		++nr_phases;
		if (nr_tests == nr_passed_tests) {
			++nr_passed_phases;
			std::cout << "[PASS]" << std::endl;
		} else
			std::cout << "[FAIL]" << std::endl;

		std::cout.flush();

		// Reset
		nr_tests = 0;
		nr_passed_tests = 0;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x11134(%rip), %rbx     # 0x15fd0
leaq 0xb250(%rip), %rsi      # 0x100f3
movl $0x8, %edx
movq %rbx, %rdi
callq 0x32b0
movq 0x18(%r14), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x3190
leaq 0xb162(%rip), %rsi      # 0x10028
movl $0x2, %edx
movq %rax, %rdi
callq 0x32b0
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x3190
movq %rax, %r15
leaq 0xb3a8(%rip), %rsi      # 0x10291
movl $0x1, %edx
movq %rax, %rdi
callq 0x32b0
leaq 0x8(%r14), %r12
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x3190
leaq 0xb11c(%rip), %rsi      # 0x10029
movl $0x1, %edx
movq %rax, %rdi
callq 0x32b0
incq 0x18(%r14)
movq 0x8(%r14), %rax
cmpq 0x10(%r14), %rax
jne 0x4f35
incq 0x20(%r14)
leaq 0xb1c9(%rip), %rsi      # 0x100fc
jmp 0x4f3c
leaq 0xb1c7(%rip), %rsi      # 0x10103
movl $0x6, %edx
movq %rbx, %rdi
callq 0x32b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
movq %rbx, %rdi
callq 0x31a0
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/BloomFilter.cc
// Function: BloomFilter::insert(unsigned long)
void BloomFilter::insert(LsmKey k) {
    uint32_t* hashValues = new uint32_t[4];
    hashValues = (uint32_t*)memset(hashValues, 0, 4 * sizeof(uint32_t));
    MurmurHash3_x64_128(&k, sizeof(k), 1, hashValues);
    for (int i = 0; i < 4; ++i) {
        int index = *(hashValues + i) % BLOOM_FILTER_SIZE;
        byteArray[index] = 1;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x10, %edi
callq 0x3030
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movabsq $-0x783c846eeebdac2b, %rcx # imm = 0x87C37B91114253D5
imulq %r14, %rcx
movabsq $-0x775ed61580000000, %rdx # imm = 0x88A129EA80000000
imulq %r14, %rdx
shrq $0x21, %rcx
orq %rdx, %rcx
movabsq $0x4cf5ad432745937f, %rdx # imm = 0x4CF5AD432745937F
imulq %rcx, %rdx
xorq $0x9, %rdx
leaq 0x9(%rdx), %rcx
addq $0x12, %rdx
movq %rcx, %rsi
shrq $0x21, %rsi
xorq %rcx, %rsi
movabsq $-0xae502812aa7333, %rcx # imm = 0xFF51AFD7ED558CCD
imulq %rcx, %rsi
movq %rsi, %rdi
shrq $0x21, %rdi
xorq %rsi, %rdi
movabsq $-0x3b314601e57a13ad, %rsi # imm = 0xC4CEB9FE1A85EC53
imulq %rsi, %rdi
movq %rdi, %r8
shrq $0x21, %r8
xorq %rdi, %r8
movq %rdx, %rdi
shrq $0x21, %rdi
xorq %rdx, %rdi
imulq %rcx, %rdi
movq %rdi, %rcx
shrq $0x21, %rcx
xorq %rdi, %rcx
imulq %rsi, %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
xorq %rcx, %rdx
addq %rdx, %r8
addq %r8, %rdx
movq %r8, (%rax)
movq %rdx, 0x8(%rax)
movq (%rbx), %rcx
xorl %edx, %edx
movl $0xcccccccd, %esi       # imm = 0xCCCCCCCD
movl (%rax,%rdx,4), %edi
movq %rdi, %r8
imulq %rsi, %r8
shrq $0x2d, %r8
shll $0xb, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %edi
movb $0x1, (%rcx,%rdi)
incq %rdx
cmpq $0x4, %rdx
jne 0x57d8
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/BloomFilter.cc
// Function: BloomFilter::hasKey(unsigned long) const
bool BloomFilter::hasKey(LsmKey k) const {
    uint32_t* hashValues = new uint32_t[4];
    hashValues = (uint32_t*)memset(hashValues, 0, 4 * sizeof(uint32_t));
    MurmurHash3_x64_128(&k, sizeof(k), 1, hashValues);
    return byteArray[*hashValues % BLOOM_FILTER_SIZE]
           & byteArray[*(hashValues + 1) % BLOOM_FILTER_SIZE]
           & byteArray[*(hashValues + 2) % BLOOM_FILTER_SIZE]
           & byteArray[*(hashValues + 3) % BLOOM_FILTER_SIZE];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x10, %edi
callq 0x3030
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movabsq $-0x783c846eeebdac2b, %rcx # imm = 0x87C37B91114253D5
imulq %r14, %rcx
movabsq $-0x775ed61580000000, %rdx # imm = 0x88A129EA80000000
imulq %r14, %rdx
shrq $0x21, %rcx
orq %rdx, %rcx
movabsq $0x4cf5ad432745937f, %rdx # imm = 0x4CF5AD432745937F
imulq %rcx, %rdx
xorq $0x9, %rdx
leaq 0x9(%rdx), %rcx
addq $0x12, %rdx
movq %rcx, %rsi
shrq $0x21, %rsi
xorq %rcx, %rsi
movabsq $-0xae502812aa7333, %rcx # imm = 0xFF51AFD7ED558CCD
imulq %rcx, %rsi
movq %rsi, %r8
shrq $0x21, %r8
xorq %rsi, %r8
movabsq $-0x3b314601e57a13ad, %rsi # imm = 0xC4CEB9FE1A85EC53
imulq %rsi, %r8
movq %r8, %rdi
shrq $0x21, %rdi
xorq %r8, %rdi
movq %rdx, %r8
shrq $0x21, %r8
xorq %rdx, %r8
imulq %rcx, %r8
movq %r8, %rcx
shrq $0x21, %rcx
xorq %r8, %rcx
imulq %rsi, %rcx
movq %rcx, %rsi
shrq $0x21, %rsi
xorq %rcx, %rsi
addq %rsi, %rdi
addq %rdi, %rsi
movq %rdi, (%rax)
movq %rsi, 0x8(%rax)
movq (%rbx), %rdx
movl %edi, %ecx
movl $0xcccccccd, %r8d       # imm = 0xCCCCCCCD
imulq %r8, %rcx
shrq $0x2d, %rcx
shll $0xb, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %edi
movl 0x4(%rax), %ecx
movq %rcx, %r9
imulq %r8, %r9
shrq $0x2d, %r9
shll $0xb, %r9d
leal (%r9,%r9,4), %r9d
subl %r9d, %ecx
movb (%rdx,%rcx), %cl
andb (%rdx,%rdi), %cl
movl %esi, %edi
imulq %r8, %rdi
shrq $0x2d, %rdi
shll $0xb, %edi
leal (%rdi,%rdi,4), %edi
subl %edi, %esi
andb (%rdx,%rsi), %cl
movl 0xc(%rax), %eax
movq %rax, %rsi
imulq %r8, %rsi
shrq $0x2d, %rsi
shll $0xb, %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %eax
andb (%rdx,%rax), %cl
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/SSTable.cc
// Function: SSTable::get[abi:cxx11](unsigned long) const
LsmValue SSTable::get(LsmKey k) const {
    if (!bloomFilter.hasKey(k))
        return "";
    int64_t index = find(k, dataIndexes, 0, header.keyNumber - 1);
    if (index < 0)
        return "";
    return getValueFromDisk(index);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsi), %rdi
movq %rdx, %rsi
callq 0x5806
testb %al, %al
je 0x5a00
leaq 0x30(%r14), %rsi
movq %rsp, %r12
movq %r12, %rdi
callq 0x69aa
movq 0x10(%r14), %r8
decq %r8
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x5a4a
movq %rax, %r15
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x59eb
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
testq %r15, %r15
js 0x5a00
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5b62
jmp 0x5a19
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xa61c(%rip), %rdx      # 0x1002a
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x561a
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5a41
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/SSTable.cc
// Function: SSTable::find(unsigned long, std::vector<DataIndex, std::allocator<DataIndex>>, long, long) const
int64_t SSTable::find(LsmKey k, vector<DataIndex> arr, int64_t start, int64_t end) const {

    if (start >= end && arr[start].key != k)
        return -1;

    uint64_t mid = start + (end - start) / 2;
    if (k < arr[mid].key)
        return find(k, arr, start, mid-1);
    if (k > arr[mid].key)
        return find(k, arr, mid+1, end);

    return mid;  // found

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rsi, %r14
movq %rdi, %r15
movq %r8, %rax
subq %rcx, %rax
jg 0x5a87
movq (%rdx), %rcx
movq %r13, %rsi
shlq $0x4, %rsi
movq $-0x1, %rbx
cmpq %r14, (%rcx,%rsi)
jne 0x5b24
movq %rax, %rbx
shrq $0x3f, %rbx
addq %rax, %rbx
sarq %rbx
addq %r13, %rbx
movq (%rdx), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
cmpq %r14, (%rax,%rcx)
jbe 0x5add
leaq 0x30(%rsp), %rbp
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x69aa
decq %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0x5a4a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
jmp 0x5b13
jae 0x5b24
leaq 0x18(%rsp), %rbp
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %rdx, %rsi
callq 0x69aa
incq %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
movq %r12, %r8
callq 0x5a4a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x5b24
movq (%rbp), %rsi
subq %rdi, %rsi
callq 0x3280
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x5b48
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5b59
movq (%rbp), %rsi
subq %rdi, %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/SSTable.cc
// Function: SSTable::getValueFromDisk[abi:cxx11](unsigned long) const
LsmValue SSTable::getValueFromDisk(size_t index) const {

    string filename = getFilename();

    // Open the SST file.
    ifstream table(filename, ios::in | ios::binary);
    if (!table) {
        cerr << "Cannot open file `" << filename << "`." << endl;
        exit(-1);
    }

    // Find the start and end of the value.
    uint32_t start = dataIndexes[index].offset;
    uint32_t end;
    if (index != dataIndexes.size() - 1)
        end = dataIndexes[index + 1].offset;
    else {      // If `key` is the last key, set `end` as the length of the file.
        table.seekg(0, ios::end);
        end = table.tellg();
    }

    // Read value from the file.
    LsmValue value = readValueFromFile(table, start, end, false);

    // Close the file.
    table.close();

    return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x5cf4
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movl $0xc, %edx
callq 0x33e0
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%rsp,%rax)
jne 0x5c47
movq 0x30(%r15), %rax
movq 0x38(%r15), %rdx
movq %r14, %rcx
shlq $0x4, %rcx
movl 0x8(%rax,%rcx), %ebp
subq %rax, %rdx
sarq $0x4, %rdx
decq %rdx
cmpq %r14, %rdx
jne 0x5bef
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3320
leaq 0x28(%rsp), %rdi
callq 0x3450
movq %rax, %rcx
jmp 0x5bf3
movl 0x18(%rax,%rcx), %ecx
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
xorl %r8d, %r8d
callq 0x6624
leaq 0x28(%rsp), %rdi
callq 0x3050
leaq 0x28(%rsp), %rdi
callq 0x3070
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c34
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x103a2(%rip), %rdi     # 0x15ff0
leaq 0xa522(%rip), %rsi      # 0x10177
movl $0x12, %edx
callq 0x32b0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x10380(%rip), %rdi     # 0x15ff0
callq 0x32b0
movq %rax, %rbx
leaq 0xa50b(%rip), %rsi      # 0x1018a
movl $0x2, %edx
movq %rax, %rdi
callq 0x32b0
movq %rbx, %rdi
callq 0x3140
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x32d0
jmp 0x5cc3
jmp 0x5cc3
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x5cc6
movq (%rbx), %rsi
incq %rsi
callq 0x3280
jmp 0x5cc6
movq %rax, %r14
jmp 0x5cd0
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x3070
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ceb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3280
movq %r14, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/SSTable.cc
// Function: SSTable::readValueFromFile[abi:cxx11](std::basic_ifstream<char, std::char_traits<char>>&, unsigned int, unsigned int, bool)
LsmValue SSTable::readValueFromFile(ifstream& table, uint32_t startOffset, uint32_t endOffset, bool multiValue) {
    LsmValue value;
    uint32_t length = endOffset - startOffset;
    value.resize(length);
    if (!multiValue)
        table.seekg(startOffset, ios::beg);
    table.read((char*)&value[0], length);
    return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r12d
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
subl %edx, %r14d
movq %r14, %rsi
xorl %edx, %edx
callq 0x30b0
testb %r12b, %r12b
jne 0x666e
movl %ebp, %esi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3320
movq (%rbx), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x32f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x66a5
movq (%r13), %rsi
incq %rsi
callq 0x3280
movq %r14, %rdi
callq 0x3460
nop
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/SSTable.cc
// Function: SSTable::getKeys() const
vector<LsmKey> SSTable::getKeys() const {
    vector<LsmKey> keys;
    for (const auto& dataIndex : dataIndexes) {
        keys.push_back(dataIndex.key);
    }
    return keys;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x30(%rsi), %r14
movq 0x38(%rsi), %r15
cmpq %r15, %r14
je 0x6982
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6971
movq (%r14), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x697c
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5214
addq $0x10, %r14
jmp 0x6952
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x69a2
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3280
movq %r14, %rdi
callq 0x3460
// File: /workspace/github_cpp_makefile_star2_O1/xx01cyx[P]LSM-Tree/MemTable.cc
// Function: MemTable::reset()
void MemTable::reset() {
    while (head) {
        while (head->next) {
            Node* delNode = head->next;
            head->next = delNode->next;
            delete delNode;
        }
        Node* delHead = head;
        head = head->down;
        delete delHead;
    }
    head = new Node();
    keyNumber = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x6f1a
movq (%rbx), %r14
movq 0x28(%r14), %r15
testq %r15, %r15
je 0x6edf
addq $0x28, %r14
movq %r14, %rax
movq 0x28(%r15), %rcx
movq %rcx, (%rax)
movq 0x8(%r15), %rdi
leaq 0x18(%r15), %rax
cmpq %rax, %rdi
je 0x6ec2
movq (%rax), %rsi
incq %rsi
callq 0x3280
movl $0x38, %esi
movq %r15, %rdi
callq 0x3280
movq (%rbx), %r14
leaq 0x28(%r14), %rax
movq 0x28(%r14), %r15
testq %r15, %r15
jne 0x6ea3
movq 0x30(%r14), %rax
movq %rax, (%rbx)
testq %r14, %r14
je 0x6f10
movq 0x8(%r14), %rdi
leaq 0x18(%r14), %rax
cmpq %rax, %rdi
je 0x6f03
movq (%rax), %rsi
incq %rsi
callq 0x3280
movl $0x38, %esi
movq %r14, %rdi
callq 0x3280
cmpq $0x0, (%rbx)
jne 0x6e90
movl $0x38, %edi
callq 0x3270
xorl %ecx, %ecx
movq %rcx, (%rax)
leaq 0x18(%rax), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movb $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq %rax, (%rbx)
movq %rcx, 0x8(%rbx)
popq %rbx
popq %r14
popq %r15
retq
nop