LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::RestartListing()
bool CKMCFile::RestartListing(void)
{
	if(is_opened == opened_for_listing)
	{
		my_fseek(file_suf , 4 , SEEK_SET);
		suf_file_left_to_read = suffix_file_total_to_read;
		auto to_read = MIN(suf_file_left_to_read, part_size);
		auto readed = fread(sufix_file_buf, 1, to_read, file_suf);
		if (readed != to_read)
		{
			std::cerr << "Error: some error while reading suffix file\n";
			return false;
		}

		suf_file_left_to_read -= readed;
		prefix_index = 0;
		sufix_number = 0;
		index_in_partial_buf = 0;

		end_of_file = total_kmers == 0;

		return true;
	}
	return false;
		
}

// Assembly:
cmpl $0x2, (%rdi)
jne 0x417239
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movl $0x4, %esi
xorl %edx, %edx
callq 0x4f25e0
movq 0x10(%rbx), %rax
movq 0x28(%rbx), %rcx
movq %rax, 0x8(%rbx)
movq 0x201f7f(%rip), %r14    # 0x619178
cmpq %r14, %rax
cmovbq %rax, %r14
movq 0x60(%rbx), %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x4edcf0
cmpq %r14, %rax
jne 0x41723c
subq %r14, 0x8(%rbx)
movq $0x0, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
cmpq $0x0, 0x98(%rbx)
sete 0x18(%rbx)
movb $0x1, %al
jmp 0x417256
xorl %eax, %eax
retq
movq $0x1b71840, %rdi        # imm = 0x1B71840
leaq 0x18bc5c(%rip), %rsi    # 0x5a2ea6
movl $0x2c, %edx
callq 0x485270
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::Info(unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long long&, unsigned long long&)
bool CKMCFile::Info(uint32 &_kmer_length, uint32 &_mode, uint32 &_counter_size, uint32 &_lut_prefix_length, uint32 &_signature_len, uint32 &_min_count, uint64 &_max_count, uint64 &_total_kmers)
{
	if(is_opened)
	{
		_kmer_length = kmer_length;
		_mode = mode;
		_counter_size = counter_size;
		_lut_prefix_length = lut_prefix_length;
		if (kmc_version == 0x200)
			_signature_len = signature_len;
		else
			_signature_len = 0; //for kmc1 there is no signature_len
		_min_count = min_count;
		_max_count = max_count;
		_total_kmers = total_kmers;
		return true;
	}
	return false;
}

// Assembly:
movl (%rdi), %eax
testl %eax, %eax
je 0x417609
pushq %rbp
pushq %rbx
movq 0x28(%rsp), %r10
movq 0x20(%rsp), %r11
movq 0x18(%rsp), %rbx
movl 0x78(%rdi), %ebp
movl %ebp, (%rsi)
movl 0x7c(%rdi), %esi
movl %esi, (%rdx)
movl 0x80(%rdi), %edx
movl %edx, (%rcx)
movl 0x84(%rdi), %ecx
movl %ecx, (%r8)
xorl %ecx, %ecx
cmpl $0x200, 0xa4(%rdi)      # imm = 0x200
jne 0x4175e8
movl 0x88(%rdi), %ecx
movl %ecx, (%r9)
movl 0x8c(%rdi), %ecx
movl %ecx, (%rbx)
movq 0x90(%rdi), %rcx
movq %rcx, (%r11)
movq 0x98(%rdi), %rcx
movq %rcx, (%r10)
popq %rbx
popq %rbp
testl %eax, %eax
setne %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::Info(CKMCFileInfo&)
bool CKMCFile::Info(CKMCFileInfo& info)
{
	if (is_opened)
	{
		info.kmer_length = kmer_length;
		info.mode = mode;
		info.counter_size = counter_size;
		info.lut_prefix_length = lut_prefix_length;
		if (kmc_version == 0x200)
			info.signature_len = signature_len;
		else
			info.signature_len = 0; //for kmc1 there is no signature_len
		info.min_count = min_count;
		info.max_count = max_count;
		info.total_kmers = total_kmers;
		info.both_strands = both_strands;
		return true;
	}
	return false;
}

// Assembly:
movl (%rdi), %eax
testl %eax, %eax
je 0x41765c
movups 0x78(%rdi), %xmm0
movups %xmm0, (%rsi)
xorl %ecx, %ecx
cmpl $0x200, 0xa4(%rdi)      # imm = 0x200
jne 0x417631
movl 0x88(%rdi), %ecx
movl %ecx, 0x10(%rsi)
movl 0x8c(%rdi), %ecx
movl %ecx, 0x14(%rsi)
movq 0x90(%rdi), %rcx
movq %rcx, 0x18(%rsi)
movq 0x98(%rdi), %rcx
movq %rcx, 0x28(%rsi)
movb 0xa0(%rdi), %cl
movb %cl, 0x20(%rsi)
testl %eax, %eax
setne %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::GetCountersForRead(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<unsigned int, std::allocator<unsigned int>>&)
bool CKMCFile::GetCountersForRead(const std::string& read, std::vector<uint32>& counters)
{
	if (is_opened != opened_for_RA)
		return false;

	if (read.length() < kmer_length)
	{
		counters.clear();
		return false;
	}

	if (kmc_version == 0x200)
	{		
		if (both_strands)
			return GetCountersForRead_kmc2_both_strands(read, counters);
		else
			return GetCountersForRead_kmc2(read, counters);
	}
	else if (kmc_version == 0)
	{
		if (both_strands)
			return GetCountersForRead_kmc1_both_strands(read,counters);
		else
			return GetCountersForRead_kmc1(read, counters);
	}
	else
		return false; //never should be here
}

// Assembly:
pushq %rax
cmpl $0x1, (%rdi)
jne 0x4176a1
movl 0x78(%rdi), %eax
cmpq %rax, 0x8(%rsi)
jae 0x417680
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x4176a1
movq %rax, 0x8(%rdx)
jmp 0x4176a1
movl 0xa4(%rdi), %eax
testl %eax, %eax
je 0x4176a5
cmpl $0x200, %eax            # imm = 0x200
jne 0x4176a1
cmpb $0x1, 0xa0(%rdi)
jne 0x4176b5
callq 0x4176c6
jmp 0x4176c1
xorl %eax, %eax
popq %rcx
retq
cmpb $0x1, 0xa0(%rdi)
jne 0x4176bc
callq 0x41827c
jmp 0x4176c1
callq 0x417dda
jmp 0x4176c1
callq 0x418970
movb $0x1, %al
jmp 0x4176a3
nop
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::GetCountersForRead(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<float, std::allocator<float>>&)
bool CKMCFile::GetCountersForRead(const std::string& read, std::vector<float>& counters)
{
	if (is_opened != opened_for_RA)
		return false;
	std::vector<uint32> uint32_v;
	if (GetCountersForRead(read, uint32_v))
	{
		counters.clear();
		counters.resize(uint32_v.size());
		if (mode == 0)
		{
			for (uint32 i = 0; i < uint32_v.size(); ++i)
				counters[i] = static_cast<float>(uint32_v[i]);
		}
		else
		{
			for (uint32 i = 0; i < uint32_v.size(); ++i)
				memcpy(&counters[i], &uint32_v[i], counter_size);
		}

		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpl $0x1, (%rdi)
jne 0x418e88
movq %rdx, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
callq 0x417662
movl %eax, %ebx
testb %al, %al
je 0x418e8c
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x418e1e
movq %rax, 0x8(%r14)
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x2, %rsi
movq %r14, %rdi
callq 0x41938a
cmpl $0x0, 0x7c(%r15)
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
je 0x418eaf
cmpq %rdi, %rax
je 0x418e90
movl $0x1, %ebp
xorl %ecx, %ecx
leaq (,%rcx,4), %rax
addq (%r14), %rax
leaq (%rdi,%rcx,4), %rsi
movl 0x80(%r15), %edx
movq %rax, %rdi
callq 0x401080
movl %ebp, %ecx
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
incl %ebp
cmpq %rcx, %rax
ja 0x418e4f
jmp 0x418e90
xorl %ebx, %ebx
jmp 0x418ea2
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x418ea2
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
subq %rdi, %rax
je 0x418e90
sarq $0x2, %rax
movq (%r14), %rcx
xorl %edx, %edx
movl (%rdi,%rdx,4), %esi
xorps %xmm0, %xmm0
cvtsi2ss %rsi, %xmm0
movss %xmm0, (%rcx,%rdx,4)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0x418ebd
jmp 0x418e95
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x418ef2
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movq %rbx, %rdi
callq 0x4bfce0
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::count_for_kmer_kmc1(CKmerAPI&)
uint32 CKMCFile::count_for_kmer_kmc1(CKmerAPI& kmer)
{
	//recognize a prefix:

	uint64 pattern_prefix_value = kmer.kmer_data[0];

	uint32 pattern_offset = (sizeof(pattern_prefix_value)* 8) - (lut_prefix_length * 2) - (kmer.byte_alignment * 2);

	pattern_prefix_value = pattern_prefix_value >> pattern_offset;  //complements with 0
	if (pattern_prefix_value >= prefix_file_buf_size)
		return false;
	//look into the array with data

	int64 index_start = prefix_file_buf[pattern_prefix_value];
	int64 index_stop = prefix_file_buf[pattern_prefix_value + 1] - 1;

	uint64 counter = 0;
	if (BinarySearch(index_start, index_stop, kmer, counter, pattern_offset))
		return (uint32)counter;
	return 0;
}

// Assembly:
movq (%rsi), %rax
movq (%rax), %rdx
movl 0x84(%rdi), %ecx
addl 0xc(%rsi), %ecx
addl %ecx, %ecx
negb %cl
shrq %cl, %rdx
xorl %eax, %eax
cmpq 0x38(%rdi), %rdx
jae 0x418f4d
pushq %rax
movq %rsi, %r9
movq 0x30(%rdi), %rax
movq (%rax,%rdx,8), %rsi
movq 0x8(%rax,%rdx,8), %rdx
decq %rdx
movq %rsp, %r8
movq $0x0, (%r8)
movq %r9, %rcx
callq 0x41694e
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0x418f49
movl (%rsp), %eax
addq $0x8, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmc_file.cpp
// Function: CKMCFile::count_for_kmer_kmc2(CKmerAPI&, unsigned int)
uint32 CKMCFile::count_for_kmer_kmc2(CKmerAPI& kmer, uint32 bin_start_pos)
{
	//recognize a prefix:
	uint64 pattern_prefix_value = kmer.kmer_data[0];

	uint32 pattern_offset = (sizeof(pattern_prefix_value)* 8) - (lut_prefix_length * 2) - (kmer.byte_alignment * 2);

	pattern_prefix_value = pattern_prefix_value >> pattern_offset;  //complements with 0
	if (pattern_prefix_value >= prefix_file_buf_size)
		return false;
	//look into the array with data

	int64 index_start = *(prefix_file_buf + bin_start_pos + pattern_prefix_value);
	int64 index_stop = *(prefix_file_buf + bin_start_pos + pattern_prefix_value + 1) - 1;

	uint64 counter = 0;
	if (BinarySearch(index_start, index_stop, kmer, counter, pattern_offset))
		return (uint32)counter;
	return 0;
}

// Assembly:
movq (%rsi), %rax
movq (%rax), %r8
movl 0x84(%rdi), %ecx
addl 0xc(%rsi), %ecx
addl %ecx, %ecx
negb %cl
shrq %cl, %r8
xorl %eax, %eax
cmpq 0x38(%rdi), %r8
jae 0x418fa7
pushq %rax
movq %rsi, %r9
movl %edx, %eax
shlq $0x3, %rax
addq 0x30(%rdi), %rax
movq (%rax,%r8,8), %rsi
movq 0x8(%rax,%r8,8), %rdx
decq %rdx
movq %rsp, %r8
movq $0x0, (%r8)
movq %r9, %rcx
callq 0x41694e
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0x418fa3
movl (%rsp), %eax
addq $0x8, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/kmc_api/kmer_api.h
// Function: CKmerAPI::get_signature(unsigned int)
uint32 get_signature(uint32 sig_len)
	 {
		 uchar symb;
		 CMmer cur_mmr(sig_len);
		 
		 for(uint32 i = 0; i < sig_len; ++i)
		 {
			 symb = get_num_symbol(i);
			 cur_mmr.insert(symb);
		 }
		 CMmer min_mmr(cur_mmr);
		 for (uint32 i = sig_len; i < kmer_length; ++i)
		 {
			 symb = get_num_symbol(i);
			 cur_mmr.insert(symb);
			 
			 if (cur_mmr < min_mmr)
				 min_mmr = cur_mmr;
		 }
		 return min_mmr.get();
	 }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebx
movq %rdi, %r14
movabsq $-0x4000000000000000, %r15 # imm = 0xC000000000000000
movq %rsp, %rdi
callq 0x415e00
testl %ebx, %ebx
je 0x419316
movl (%rsp), %esi
movl 0x4(%rsp), %edi
movl 0x8(%r14), %edx
movzbl 0xc(%r14), %r8d
movq (%r14), %r9
movq 0x10(%rsp), %r10
leal (%r8,%r8), %r11d
xorl %r12d, %r12d
movl $0x0, %eax
cmpl %r12d, %edx
jbe 0x4192f8
leal (%r8,%r12), %eax
movl %r11d, %ecx
andb $0x3e, %cl
movq %r15, %r13
shrq %cl, %r13
shrl $0x5, %eax
andq (%r9,%rax,8), %r13
xorb $0x3e, %cl
shrq %cl, %r13
movzbl %r13b, %eax
leal (%rax,%rsi,4), %esi
andl %edi, %esi
movl %esi, (%rsp)
movl (%r10,%rsi,4), %eax
movl %eax, 0x8(%rsp)
incl %r12d
addl $0x2, %r11d
cmpl %r12d, %ebx
jne 0x4192cd
jmp 0x41931e
movl 0x8(%rsp), %eax
movl 0x8(%r14), %edx
subl %ebx, %edx
jbe 0x41937c
movl (%rsp), %esi
movl 0x4(%rsp), %edi
movzbl 0xc(%r14), %ecx
movq (%r14), %r8
movq 0x10(%rsp), %r9
addl %ecx, %ebx
leal (%rbx,%rbx), %r10d
movl %r10d, %ecx
andb $0x3e, %cl
movq %r15, %r11
shrq %cl, %r11
movl %ebx, %r14d
shrl $0x5, %r14d
andq (%r8,%r14,8), %r11
xorb $0x3e, %cl
shrq %cl, %r11
movzbl %r11b, %ecx
leal (%rcx,%rsi,4), %esi
andl %edi, %esi
movl %esi, (%rsp)
movl (%r9,%rsi,4), %ecx
cmpl %eax, %ecx
cmovbl %ecx, %eax
movl %ecx, 0x8(%rsp)
addl $0x2, %r10d
incl %ebx
decl %edx
jne 0x41933c
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/stats_ml/stats.cpp
// Function: spearman_correlation_coefficient(std::vector<float, std::allocator<float>>, std::vector<float, std::allocator<float>>)
float spearman_correlation_coefficient(std::vector<float> group1, std::vector<float> group2)
{
	std::vector<float> ranked_data1, ranked_data2;
	float d2 = 0;
	uint32_t n = group1.size();

	getrank(group1, ranked_data1);
	getrank(group2, ranked_data2);

	for (uint32_t i = 0; i < n; i++) d2 += (group1[i] - group2[i]) * (group1[i] - group2[i]);

	return 1.0 - 6.0 * d2 / n / (n * n - 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq 0x8(%rdi), %r15
subq (%rdi), %r15
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0x40bdce
leaq 0x68(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4199d8
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x419f54
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x40bdce
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4199d8
shrq $0x2, %r15
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x419f8b
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
testl %r15d, %r15d
je 0x419fc6
movq (%r14), %rax
movq (%rbx), %rcx
movl %r15d, %edx
xorps %xmm0, %xmm0
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm1
subss (%rcx,%rsi,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rsi
cmpq %rsi, %rdx
jne 0x419f9e
cvtss2sd %xmm0, %xmm0
mulsd 0x188f5c(%rip), %xmm0   # 0x5a2f20
jmp 0x419fc9
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x419fe6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x419ffd
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movl %r15d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
imull %r15d, %r15d
decl %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15, %xmm0
divsd %xmm0, %xmm1
movsd 0x188eeb(%rip), %xmm0   # 0x5a2f18
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x41a075
movq 0x60(%rsp), %rsi
jmp 0x41a068
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x41a075
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
jmp 0x41a075
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x41a08c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x41a0a3
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x41ae90
movq %rbx, %rdi
callq 0x4bfce0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/stats_ml/logistic_classifier.cpp
// Function: Logistic::gradient(double)
void Logistic::gradient(double lam) {
	for (uint32_t i = 0; i < param.w.size(); i++) {
		double tmp = 0.0L;
		for (uint32_t j = 0; j < dataSet.size(); j++) {
			tmp += (dataSet[j].cls - logiFun(param, dataSet[j])) * dataSet[j].features[i] * lam;
		}
		param.w[i] += (tmp);
	}
	double tmp = 0.0L;
	for (uint32_t j = 0; j < dataSet.size(); j++) {
		tmp += (dataSet[j].cls - logiFun(param, dataSet[j])) * lam;
	}
	param.d += tmp;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movsd %xmm0, 0x18(%rsp)
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq 0x20(%rdi), %rsi
movq 0x18(%rdi), %rcx
movq (%rdi), %rdx
movq 0x8(%rdi), %rax
cmpq %rcx, %rsi
je 0x41a9c0
xorl %r15d, %r15d
xorpd %xmm0, %xmm0
cmpq %rdx, %rax
je 0x41a99b
movl $0x1, %ebp
xorl %r12d, %r12d
movsd %xmm0, 0x8(%rsp)
shlq $0x5, %r12
xorps %xmm0, %xmm0
cvtsi2sdl 0x18(%rdx,%r12), %xmm0
movsd %xmm0, 0x10(%rsp)
addq %r12, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41aaa6
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movq (%rbx), %rdx
movq 0x8(%rbx), %rax
movq (%rdx,%r12), %rcx
xorps %xmm0, %xmm0
cvtss2sd (%rcx,%r15,4), %xmm0
mulsd %xmm1, %xmm0
mulsd 0x18(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movl %ebp, %r12d
movq %rax, %rcx
subq %rdx, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %r12, %rcx
ja 0x41a917
movq 0x18(%rbx), %rcx
movq 0x20(%rbx), %rsi
jmp 0x41a99e
movq %rdx, %rax
addsd (%rcx,%r15,8), %xmm0
movsd %xmm0, (%rcx,%r15,8)
incl %r15d
movq %rsi, %rdi
subq %rcx, %rdi
sarq $0x3, %rdi
cmpq %r15, %rdi
ja 0x41a902
xorpd %xmm0, %xmm0
cmpq %rdx, %rax
je 0x41aa2c
movl $0x1, %ebp
xorl %ecx, %ecx
movsd %xmm0, 0x8(%rsp)
shlq $0x5, %rcx
leaq (%rdx,%rcx), %rax
xorps %xmm0, %xmm0
cvtsi2sdl 0x18(%rdx,%rcx), %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x41aaa6
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x18(%rsp), %xmm1
addsd %xmm1, %xmm0
movl %ebp, %ecx
movq (%rbx), %rdx
movq 0x8(%rbx), %rax
subq %rdx, %rax
sarq $0x5, %rax
incl %ebp
cmpq %rcx, %rax
ja 0x41a9d0
addsd 0x30(%rbx), %xmm0
movsd %xmm0, 0x30(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/stats_ml/logistic_classifier.cpp
// Function: Logistic::samewb(Logistic_Param const&, Logistic_Param const&, double)
bool Logistic::samewb(const Logistic_Param& tparam, const Logistic_Param& param, double delta) {
	for (uint32_t i = 0; i < tparam.w.size(); i++) {
		if (fabs(tparam.w[i] - param.w[i]) > delta) {
			return false;
		}
	}
	if (fabs(tparam.d - param.d) > delta) {
		return false;
	}
	return true;
}

// Assembly:
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
subq %rax, %rcx
je 0x41aa89
sarq $0x3, %rcx
movq (%rdx), %rdi
movl $0x1, %r8d
xorl %r9d, %r9d
movapd 0x189498(%rip), %xmm1   # 0x5a3f00
movsd (%rax,%r9,8), %xmm2
subsd (%rdi,%r9,8), %xmm2
andpd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
ja 0x41aaa3
movl %r8d, %r9d
incl %r8d
cmpq %r9, %rcx
ja 0x41aa68
movsd 0x18(%rsi), %xmm1
subsd 0x18(%rdx), %xmm1
andpd 0x189465(%rip), %xmm1   # 0x5a3f00
ucomisd %xmm0, %xmm1
setbe %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/ChnMasterOG[P]KmerGO2/stats_ml/logistic_classifier.cpp
// Function: Logistic::innerWX(Logistic_Param const&, Logistic_Data const&)
double Logistic::innerWX(const Logistic_Param& p, const Logistic_Data& data) {
	if (p.w.size() != data.features.size()) {
		exit(0);
	}
	double innerP = 0.0L;
	for (uint32_t i = 0; i < p.w.size(); i++) {
		innerP += (p.w[i] * data.features[i]);
	}
	innerP += p.d;
	return innerP;
}

// Assembly:
pushq %rax
movq (%rsi), %rax
movq 0x8(%rsi), %r8
movq %r8, %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq (%rdx), %rdi
movq 0x8(%rdx), %rdx
subq %rdi, %rdx
sarq $0x2, %rdx
cmpq %rdx, %rcx
jne 0x41ab39
xorpd %xmm0, %xmm0
cmpq %rax, %r8
je 0x41ab32
xorl %edx, %edx
xorps %xmm1, %xmm1
cvtss2sd (%rdi,%rdx,4), %xmm1
mulsd (%rax,%rdx,8), %xmm1
addsd %xmm1, %xmm0
incq %rdx
movl %edx, %r8d
cmpq %r8, %rcx
ja 0x41ab16
addsd 0x18(%rsi), %xmm0
popq %rax
retq
xorl %edi, %edi
callq 0x4db5c0
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/communication/ClientSocket.cpp
// Function: communication::ClientSocket::Init()
int ClientSocket::Init() {
    	struct sockaddr_in server_addr; 

	// Communicate over TCP, IPv4
	if (( sockfd = socket( AF_INET, SOCK_STREAM, 0 )) < 0) 
    	{	 
        	cout << "Socket creation error" << endl; 
        	return -1; 
    	} 
   
    	memset(&server_addr, '0', sizeof(server_addr)); 
   	server_addr.sin_family = AF_INET; 
    	server_addr.sin_port = htons(sockport); 

    	// Convert IPv4 addresses from string to address struct in af family 
    	if ( inet_pton( AF_INET, sockaddr.c_str(), &server_addr.sin_addr ) <=0 )  
    	{ 
        	cout << "Invalid address" << endl; 
        	return -1; 
    	} 

	// Now that we've populated address and port, let's connect to the Qemu
	// socket listening on port *sockport*
	// TODO (jaya) : This is a blocking connect operation. The current timeout is too large
	// Need to use select() in non-blocking mode to reduce the timeout.
    	if ( connect(sockfd, (struct sockaddr*) &server_addr, sizeof(server_addr) ) < 0 ) 
    	{ 
        	cout << "Connection Failed" << endl;; 
        	return -1; 
    	} 
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x50f0
movl %eax, (%rbx)
testl %eax, %eax
js 0x8222
leaq -0x14(%rbp), %rdx
movabsq $0x3030303030303030, %rax # imm = 0x3030303030303030
movq %rax, (%rdx)
movl $0x30303030, 0x8(%rdx)  # imm = 0x30303030
movw $0x2, -0x4(%rdx)
movzwl 0x28(%rbx), %eax
rolw $0x8, %ax
movw %ax, -0x2(%rdx)
movq 0x8(%rbx), %rsi
movl $0x2, %edi
callq 0x5850
testl %eax, %eax
jle 0x8237
movl (%rbx), %edi
leaq -0x18(%rbp), %rsi
movl $0x10, %edx
callq 0x53c0
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jns 0x827e
movq 0x13db4(%rip), %rbx     # 0x1bfc8
leaq 0xc2d5(%rip), %rsi      # 0x144f0
movl $0x11, %edx
jmp 0x824a
movq 0x13d9f(%rip), %rbx     # 0x1bfc8
leaq 0xc29a(%rip), %rsi      # 0x144ca
movl $0x15, %edx
jmp 0x824a
movq 0x13d8a(%rip), %rbx     # 0x1bfc8
leaq 0xc29b(%rip), %rsi      # 0x144e0
movl $0xf, %edx
movq %rbx, %rdi
callq 0x54f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/communication/ClientSocket.cpp
// Function: communication::ClientSocket::ReceiveReply(communication::SockMessage&)
SockError ClientSocket::ReceiveReply(SockMessage& msg) {
	SockError err = eNone;
	int valread;
	char buffer[BUFLEN];
	int bytes_read = 0;
	while(1) {
		valread = recv( sockfd, buffer, BUFLEN, 0);
    		if (valread <= 0){
			err = eOther;
			return err;
		}
		bytes_read += valread;
		string compare(buffer);
		//cout  << "Reply : " << buffer << " Bytes read = " << compare.find("cmEOF") << endl;
		string::size_type n = compare.find("cmEOF");
		if (n != string::npos){
			break;
		}
	}
	return err;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rdi, %rbx
leaq -0x38(%rbp), %r12
leaq -0x1050(%rbp), %r14
leaq -0x48(%rbp), %r15
movl (%rbx), %edi
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x5170
testl %eax, %eax
jle 0x87d3
movq %r12, -0x48(%rbp)
movq %r14, %rdi
callq 0x51f0
leaq (%rax,%rbp), %rdx
addq $-0x1050, %rdx          # imm = 0xEFB0
movq %r15, %rdi
movq %r14, %rsi
callq 0x8066
movl $0x5, %ecx
movq %r15, %rdi
leaq 0xbdf2(%rip), %rsi      # 0x145a0
xorl %edx, %edx
callq 0x57b0
movq %rax, %r13
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x87c6
callq 0x5460
cmpq $-0x1, %r13
je 0x8768
movl $0x3, %eax
jmp 0x87d8
movl $0x2, %eax
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/tests/BaseTestCase.cpp
// Function: tests::BaseTestCase::Run(int, int)
int BaseTestCase::Run(const int change_fd, const int checkpoint) {
  DefaultFsFns default_fns;
  RecordCmFsOps cm(&default_fns);
  PassthroughCmFsOps pcm(&default_fns);
  if (checkpoint == 0) {
    cm_ = &cm;
  } else {
    cm_ = &pcm;
  }

  int res_1 = run(checkpoint);
  if (res_1 < 0) {
    return res_1;
  }

  if (checkpoint == 0) {
    int res_2 = cm.Serialize(change_fd);
    if (res_2 < 0) {
      return res_2;
    }
  }
  return res_1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %edx, %r14d
movl %esi, -0x2c(%rbp)
movq %rdi, %r15
leaq 0x13182(%rip), %rax     # 0x1ba60
addq $0x10, %rax
leaq -0x38(%rbp), %rbx
movq %rax, (%rbx)
leaq -0xe0(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa034
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0xba9c
testl %r14d, %r14d
cmoveq %r12, %r13
movq %r13, 0x30(%r15)
movq (%r15), %rax
movq %r15, %rdi
movl %r14d, %esi
callq *0x18(%rax)
movl %eax, %r15d
testl %eax, %eax
js 0x8943
testl %r14d, %r14d
jne 0x8943
leaq -0xe0(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xb97e
testl %eax, %eax
jns 0x8943
movl %eax, %r15d
leaq -0xe0(%rbp), %rdi
callq 0x8980
movl %r15d, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8968
jmp 0x8968
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
callq 0x8980
movq %rbx, %rdi
callq 0x57c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/DataTestResult.cpp
// Function: tests::DataTestResult::PrintErrors(std::ostream&) const
ostream& DataTestResult::PrintErrors(ostream& os) const {
  unsigned int noted_errors = error_summary_;
  unsigned int shift = 0;
  while (noted_errors != 0) {
    if (noted_errors & 1) {
      os << (DataTestResult::ErrorType) (1 << shift);
    }
    ++shift;
    noted_errors >>= 1;
  }

  return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl 0x20(%rdi), %r15d
testl %r15d, %r15d
je 0x8ca8
xorl %r14d, %r14d
testb $0x1, %r15b
je 0x8c97
movl $0x1, %esi
movl %r14d, %ecx
shll %cl, %esi
movq %rbx, %rdi
callq 0x8cb6
incl %r14d
movl %r15d, %eax
shrl %eax
cmpl $0x1, %r15d
movl %eax, %r15d
ja 0x8c7f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/DataTestResult.cpp
// Function: tests::operator<<(std::ostream&, tests::DataTestResult::ErrorType)
ostream& operator<<(ostream& os, DataTestResult::ErrorType err) {
  switch (err) {
    case DataTestResult::kClean:
      break;
    case DataTestResult::kOldFilePersisted:
      os << "old_file_persisted";
      break;
    case DataTestResult::kFileMissing:
      os << "file_missing";
      break;
    case DataTestResult::kFileDataCorrupted:
      os << "file_data_corrupted";
      break;
    case DataTestResult::kFileMetadataCorrupted:
      os << "file_metadata_corrupted";
      break;
    case DataTestResult::kIncorrectBlockCount:
      os << "incorrect_block_count";
      break;      
    case DataTestResult::kOther:
      os << "other_error";
      break;
    case DataTestResult::kAutoCheckFailed:
      os << "auto_check_test_failed";
      break;
    default:
      os.setstate(std::ios_base::failbit);
  }
  return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0xf, %esi
jg 0x8ced
cmpl $0x8, %esi
ja 0x8d60
movl %esi, %eax
leaq 0xb9ba(%rip), %rcx      # 0x14690
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xb9ce(%rip), %rsi      # 0x146b4
movl $0x12, %edx
jmp 0x8d4e
cmpl $0x10, %esi
je 0x8d34
cmpl $0x20, %esi
je 0x8d42
cmpl $0x40, %esi
jne 0x8d60
leaq 0xba1f(%rip), %rsi      # 0x14722
movl $0x16, %edx
jmp 0x8d4e
leaq 0xb9c3(%rip), %rsi      # 0x146d4
movl $0x13, %edx
jmp 0x8d4e
leaq 0xb9a8(%rip), %rsi      # 0x146c7
movl $0xc, %edx
jmp 0x8d4e
leaq 0xb9bb(%rip), %rsi      # 0x146e8
movl $0x17, %edx
jmp 0x8d4e
leaq 0xb9c5(%rip), %rsi      # 0x14700
movl $0x15, %edx
jmp 0x8d4e
leaq 0xb9cd(%rip), %rsi      # 0x14716
movl $0xb, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x4, %esi
callq 0x5770
jmp 0x8d56
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/FileSystemTestResult.cpp
// Function: FileSystemTestResult::PrintErrors(std::ostream&) const
void FileSystemTestResult::PrintErrors(ostream& os) const {
  if (error_summary_ == 0) {
    os << FileSystemTestResult::kCheckNotRun;
    return;
  }

  unsigned int noted_errors = error_summary_;
  unsigned int shift = 0;
  while (noted_errors != 0) {
    if (noted_errors & 1) {
      os << (FileSystemTestResult::ErrorType) (1 << shift) << " ";
    }
    ++shift;
    noted_errors >>= 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl 0x44(%rdi), %r12d
testl %r12d, %r12d
je 0x8e2d
xorl %r14d, %r14d
leaq 0xc869(%rip), %r15      # 0x15654
testb $0x1, %r12b
je 0x8e13
movl $0x1, %esi
movl %r14d, %ecx
shll %cl, %esi
movq %rbx, %rdi
callq 0x8e49
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x54f0
incl %r14d
movl %r12d, %eax
shrl %eax
cmpl $0x1, %r12d
movl %eax, %r12d
ja 0x8deb
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb92c(%rip), %rsi      # 0x14760
movl $0xc, %edx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x54f0
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/FileSystemTestResult.cpp
// Function: operator<<(std::ostream&, FileSystemTestResult::ErrorType)
ostream& operator<<(ostream& os, FileSystemTestResult::ErrorType err) {
  switch (err) {
    case FileSystemTestResult::kCheckNotRun:
      os << "fsck_not_run";
      break;
    case FileSystemTestResult::kClean:
      os << "fsck_no_errors";
      break;
    case FileSystemTestResult::kUnmountable:
      os << "unmountable_file_system";
      break;
    case FileSystemTestResult::kCheck:
      os << "fsck_error";
      break;
    case FileSystemTestResult::kFixed:
      os << "file_system_fixed";
      break;
    case FileSystemTestResult::kSnapshotRestore:
      os << "restoring_snapshot";
      break;
    case FileSystemTestResult::kBioWrite:
      os << "writing_crash_state";
      break;
    case FileSystemTestResult::kOther:
      os << "other_error";
      break;
    case FileSystemTestResult::kKernelMount:
      os << "kernel_mount";
      break;
    case FileSystemTestResult::kCheckUnfixed:
      os << "unfixed_fsck_errors";
      break;
    default:
      os.setstate(std::ios_base::failbit);
  }
  return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0xf, %esi
jg 0x8e7e
cmpl $0x8, %esi
ja 0x8f3b
movl %esi, %eax
leaq 0xb8d3(%rip), %rcx      # 0x1473c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xb8e7(%rip), %rsi      # 0x14760
jmp 0x8f24
cmpl $0x3f, %esi
jle 0x8ead
cmpl $0x40, %esi
je 0x8f0f
cmpl $0x80, %esi
je 0x8f1d
cmpl $0x100, %esi            # imm = 0x100
jne 0x8f3b
leaq 0xb93a(%rip), %rsi      # 0x147e5
jmp 0x8ec2
cmpl $0x10, %esi
je 0x8f01
cmpl $0x20, %esi
jne 0x8f3b
leaq 0xb902(%rip), %rsi      # 0x147c4
movl $0x13, %edx
jmp 0x8f29
leaq 0xb8c4(%rip), %rsi      # 0x14794
movl $0xa, %edx
jmp 0x8f29
leaq 0xb88f(%rip), %rsi      # 0x1476d
movl $0xe, %edx
jmp 0x8f29
leaq 0xb8b3(%rip), %rsi      # 0x1479f
movl $0x11, %edx
jmp 0x8f29
leaq 0xb882(%rip), %rsi      # 0x1477c
movl $0x17, %edx
jmp 0x8f29
leaq 0xb8a9(%rip), %rsi      # 0x147b1
movl $0x12, %edx
jmp 0x8f29
leaq 0xb800(%rip), %rsi      # 0x14716
movl $0xb, %edx
jmp 0x8f29
leaq 0xb8b4(%rip), %rsi      # 0x147d8
movl $0xc, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x4, %esi
callq 0x5770
jmp 0x8f31
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/SingleTestInfo.cpp
// Function: SingleTestInfo::GetTestResult() const
SingleTestInfo::ResultType SingleTestInfo::GetTestResult() const {
  if ((fs_test.GetError() == FileSystemTestResult::kClean ||
        fs_test.GetError() == FileSystemTestResult::kCheckNotRun)
      && data_test.GetError() == DataTestResult::kClean) {
    return SingleTestInfo::kPassed;
  } else if (fs_test.GetError() == FileSystemTestResult::kFixed
      && data_test.GetError() == DataTestResult::kClean) {
    return SingleTestInfo::kFsckFixed;
  } else if (fs_test.GetError() == FileSystemTestResult::kKernelMount) {
    return SingleTestInfo::kFsckRequired;
  }
  return SingleTestInfo::kFailed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x8dc0
cmpl $0x1, %eax
je 0x8fe5
movq %rbx, %rdi
callq 0x8dc0
testl %eax, %eax
jne 0x8ff2
leaq 0x8(%r14), %rdi
callq 0x8c5c
testl %eax, %eax
je 0x9029
movq %rbx, %rdi
callq 0x8dc0
cmpl $0x4, %eax
jne 0x900f
addq $0x8, %r14
movq %r14, %rdi
callq 0x8c5c
testl %eax, %eax
je 0x902d
movq %rbx, %rdi
callq 0x8dc0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x80, %ecx
sete %al
xorl $0x3, %eax
jmp 0x9032
xorl %eax, %eax
jmp 0x9032
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/SingleTestInfo.cpp
// Function: SingleTestInfo::PrintResults(std::ostream&) const
void SingleTestInfo::PrintResults(ostream& os) const {
  os << "Test #" << test_num << ": " << GetTestResult() << ": ";
  data_test.PrintErrors(os);
  if (GetTestResult() == SingleTestInfo::kFailed &&
      fs_test.GetError() == FileSystemTestResult::kCheck) {
    os << fs_test.error_description << endl;
  } else {
    os << data_test.error_description << endl;
  }
  os << "\tfsck result: ";
  fs_test.PrintErrors(os);
  os << endl;
  os << "\tfsck output:" << endl << fs_test.fsck_result << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xb7bc(%rip), %rsi      # 0x1480c
movl $0x6, %edx
movq %r14, %rdi
callq 0x54f0
movl (%rbx), %esi
movq %r14, %rdi
callq 0x52f0
movq %rax, %r15
leaq 0xc55e(%rip), %r12      # 0x155cf
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x54f0
movq %rbx, %rdi
callq 0x8fbe
movq %r15, %rdi
movl %eax, %esi
callq 0x9205
movl $0x2, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x54f0
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x8c66
movq %rbx, %rdi
callq 0x8fbe
cmpl $0x3, %eax
jne 0x90d5
leaq 0x30(%rbx), %r12
movq %r12, %rdi
callq 0x8dc0
movl $0x38, %ecx
cmpl $0x8, %eax
je 0x90dd
movl $0x10, %ecx
movq %r15, %r12
movq (%r12), %rsi
movq (%rbx,%rcx), %rdx
movq %r14, %rdi
callq 0x54f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %r15, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
leaq 0xb6f5(%rip), %rsi      # 0x14813
movl $0xe, %edx
movq %r14, %rdi
callq 0x54f0
leaq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x8dca
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
leaq 0xb6bd(%rip), %rsi      # 0x14822
movl $0xd, %edx
movq %r14, %rdi
callq 0x54f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
movq %rax, %rdi
callq 0x54f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5300
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/SingleTestInfo.cpp
// Function: operator<<(std::ostream&, SingleTestInfo::ResultType)
ostream& operator<<(ostream& os, SingleTestInfo::ResultType rt) {
  switch (rt) {
    case SingleTestInfo::kPassed:
      os << "PASSED";
      break;
    case SingleTestInfo::kFsckFixed:
      os << "FSCK_FIXED";
      break;
    case SingleTestInfo::kFsckRequired:
      os << "FSCK_REQUIRED";
      break;
    case SingleTestInfo::kFailed:
      os << "FAILED";
      break;
    default:
      os.setstate(std::ios_base::failbit);
  }
  return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x3, %esi
ja 0x9268
movl %esi, %eax
leaq 0xb5e0(%rip), %rcx      # 0x147fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xb604(%rip), %rsi      # 0x14830
jmp 0x9243
leaq 0xb60d(%rip), %rsi      # 0x14842
movl $0xd, %edx
jmp 0x9256
leaq 0xb60d(%rip), %rsi      # 0x14850
movl $0x6, %edx
jmp 0x9256
leaq 0xb5e6(%rip), %rsi      # 0x14837
movl $0xa, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x4, %esi
callq 0x5770
jmp 0x925e
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/results/TestSuiteResult.cpp
// Function: TestSuiteResult::TallyResult(SingleTestInfo&, ResultSet&)
void TestSuiteResult::TallyResult(SingleTestInfo &done, ResultSet &set) {
  switch (done.GetTestResult()) {
    case SingleTestInfo::kPassed:
      ++set.num_passed;
      break;
    case SingleTestInfo::kFsckFixed:
      ++set.num_passed_fixed;
      break;
    case SingleTestInfo::kFsckRequired:
      ++set.fsck_required;
      break;
    case SingleTestInfo::kFailed:
      ++set.num_failed;

      switch (done.data_test.GetError()) {
        case DataTestResult::kOldFilePersisted:
          ++set.old_file_persisted;
          break;
        case DataTestResult::kFileMissing:
          ++set.file_missing;
          break;
        case DataTestResult::kFileDataCorrupted:
          ++set.file_data_corrupted;
          break;
        case DataTestResult::kFileMetadataCorrupted:
          ++set.file_metadata_corrupted;
          break;
        case DataTestResult::kIncorrectBlockCount:
          ++set.incorrect_block_count;
          break;    
        case DataTestResult::kOther:
          ++set.other;
          break;
        case DataTestResult::kAutoCheckFailed:
          ++set.auto_check_failed;
          break;
      }
      break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x8fbe
cmpl $0x3, %eax
ja 0x932b
movl %eax, %eax
leaq 0xb57d(%rip), %rcx      # 0x14858
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %eax
jmp 0x9328
movl $0x10, %eax
jmp 0x9328
incl (%rbx)
addq $0x8, %r14
movq %r14, %rdi
callq 0x8c5c
cmpl $0xf, %eax
jg 0x9330
decl %eax
cmpl $0x7, %eax
ja 0x932b
leaq 0xb555(%rip), %rcx      # 0x14868
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x14, %eax
jmp 0x9328
movl $0x4, %eax
incl (%rbx,%rax)
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x10, %eax
je 0x935b
cmpl $0x20, %eax
je 0x9362
cmpl $0x40, %eax
jne 0x932b
movl $0x2c, %eax
jmp 0x9328
movl $0x1c, %eax
jmp 0x9328
movl $0x20, %eax
jmp 0x9328
movl $0x18, %eax
jmp 0x9328
movl $0x24, %eax
jmp 0x9328
movl $0x28, %eax
jmp 0x9328
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/wrapper/DiskMod.cpp
// Function: wrapper::DiskMod::SerializeDataRange(char*, unsigned int, wrapper::DiskMod&)
int DiskMod::SerializeDataRange(char *buf, const unsigned int buf_offset,
    DiskMod &dm) {
  buf += buf_offset;
  // Add file_mod_location.
  uint64_t file_mod_location = htobe64(dm.file_mod_location);
  memcpy(buf, &file_mod_location, sizeof(uint64_t));
  buf += sizeof(uint64_t);

  // Add file_mod_len.
  uint64_t file_mod_len = htobe64(dm.file_mod_len);
  memcpy(buf, &file_mod_len, sizeof(uint64_t));
  buf += sizeof(uint64_t);

  if (dm.mod_type == DiskMod::kSyncFileRangeMod ||
      dm.mod_opts == DiskMod::kFallocateOpt ||
      dm.mod_opts == DiskMod::kFallocateKeepSizeOpt ||
      dm.mod_opts == DiskMod::kPunchHoleKeepSizeOpt ||
      dm.mod_opts == DiskMod::kCollapseRangeOpt ||
      dm.mod_opts == DiskMod::kZeroRangeOpt ||
      dm.mod_opts == DiskMod::kZeroRangeKeepSizeOpt ||
      dm.mod_opts == DiskMod::kInsertRangeOpt) {
    // kSyncFileRangeMod does not contain the data range, just the offset and
    // length.
    return 2 * sizeof(uint64_t);
  }

  // Add file_mod_data (non-null terminated).
  memcpy(buf, dm.file_mod_data.get(), dm.file_mod_len);

  return (2 * sizeof(uint64_t)) + dm.file_mod_len;
}

// Assembly:
movl %esi, %ecx
movq 0xd0(%rdx), %rax
bswapq %rax
movq %rax, (%rdi,%rcx)
movq 0xd8(%rdx), %rax
bswapq %rax
movq %rax, 0x8(%rdi,%rcx)
movl $0x10, %eax
cmpl $0x9, 0x20(%rdx)
je 0x9b1f
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl 0x24(%rdx), %edx
addl $-0x2, %edx
cmpl $0x7, %edx
jb 0x9b19
addq %rcx, %rdi
addq $0x10, %rdi
movq 0xc0(%rbx), %rsi
movq 0xd8(%rbx), %rdx
callq 0x53b0
movl 0xd8(%rbx), %eax
addl $0x10, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/wrapper/DiskMod.cpp
// Function: wrapper::DiskMod::Reset()
void DiskMod::Reset() {
  path.clear();
  mod_type = kCreateMod;
  mod_opts = kNoneOpt;
  memset(&post_mod_stats, 0, sizeof(struct stat));
  directory_mod = false;
  file_mod_data.reset();
  file_mod_location = 0;
  file_mod_len = 0;
  directory_added_entry.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movq %r14, 0x8(%rdi)
movq (%rdi), %rax
movb $0x0, (%rax)
addq $0x20, %rdi
movq %r14, 0xc0(%rbx)
movl $0x99, %edx
xorl %esi, %esi
callq 0x5290
movq 0xc8(%rbx), %rdi
movq %r14, 0xc8(%rbx)
testq %rdi, %rdi
je 0x9d7e
callq 0x8a78
movq $0x0, 0xe8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xd0(%rbx)
movq 0xe0(%rbx), %rax
movb $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/wrapper/wrapper.cpp
// Function: wrapper::RecordCmFsOps::CmMkdir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int)
int RecordCmFsOps::CmMkdir(const string &pathname, const mode_t mode) {
  const int res = fns_->FnMkdir(pathname.c_str(), mode);
  if (res < 0) {
    return res;
  }

  DiskMod mod;
  mod.directory_mod = true;
  mod.path = pathname;
  mod.mod_type = DiskMod::kCreateMod;
  mod.mod_opts = DiskMod::kNoneOpt;

  mods_.push_back(mod);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq 0x90(%rdi), %r12
movq (%rsi), %rsi
leaq -0x130(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x51c0
movq (%r12), %rax
leaq -0x130(%rbp), %rsi
movq %r12, %rdi
movl %ebx, %edx
callq *0x18(%rax)
movl %eax, %ebx
leaq -0x120(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0xa17c
callq 0x5460
testl %ebx, %ebx
js 0xa1ef
leaq -0x130(%rbp), %r12
movq %r12, %rdi
callq 0x9da2
movb $0x1, 0xb8(%r12)
movq %r12, %rdi
movq %r15, %rsi
callq 0x5280
leaq -0x130(%rbp), %rsi
movq $0x0, 0x20(%rsi)
addq $0x78, %r14
movq %r14, %rdi
callq 0xbfac
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1d0
callq 0x5460
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0xa1de
callq 0x8a78
movq -0x130(%rbp), %rdi
cmpq %r13, %rdi
je 0xa1ef
callq 0x5460
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa231
callq 0x5460
jmp 0xa231
movq %rax, %rbx
jmp 0xa231
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0xbfe8
movq %rbx, %rdi
callq 0x57c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/wrapper/wrapper.cpp
// Function: wrapper::RecordCmFsOps::CmOpenCommon(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, int)
void RecordCmFsOps::CmOpenCommon(const int fd, const string &pathname,
    const bool exists, const int flags) {
  fd_map_.insert({fd, pathname});

  if (!exists || (flags & O_TRUNC)) {
    // We only want to record this op if we changed something on the file
    // system.

    DiskMod mod;

    // Need something like stat() because umask could affect the file
    // permissions.
    const int post_stat_res = fns_->FnStat(pathname.c_str(),
        &mod.post_mod_stats);
    if (post_stat_res < 0) {
      // TODO(ashmrtn): Some sort of warning here?
      return;
    }

    mod.directory_mod = S_ISDIR(mod.post_mod_stats.st_mode);

    if (!exists) {
      mod.mod_type = DiskMod::kCreateMod;
      mod.mod_opts = DiskMod::kNoneOpt;
    } else {
      mod.mod_type = DiskMod::kDataMetadataMod;
      mod.mod_opts = DiskMod::kTruncateOpt;
    }

    mod.path = pathname;

    mods_.push_back(mod);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %r8d, %r12d
movl %ecx, %ebx
movq %rdx, %r14
movq %rdi, -0x38(%rbp)
leaq 0x8(%rdi), %r13
leaq -0x150(%rbp), %rdi
movl %esi, -0x8(%rdi)
leaq -0x140(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
callq 0x7fc8
leaq -0x158(%rbp), %rsi
movq %r13, %rdi
callq 0xc474
movq -0x150(%rbp), %rdi
cmpq %r15, %rdi
je 0xa2a2
callq 0x5460
btl $0x9, %r12d
setae %al
testb %bl, %al
jne 0xa383
leaq -0x158(%rbp), %rdi
callq 0x9da2
movq -0x38(%rbp), %rax
movq 0x90(%rax), %r12
movq (%r14), %rsi
leaq -0x58(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x51c0
leaq -0x130(%rbp), %rdx
movq (%r12), %rax
leaq -0x58(%rbp), %rsi
movq %r12, %rdi
callq *0x88(%rax)
movl %eax, %r12d
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa306
callq 0x5460
testl %r12d, %r12d
js 0xa34b
movl $0xf000, %eax           # imm = 0xF000
leaq -0x158(%rbp), %rdi
andl 0x40(%rdi), %eax
cmpl $0x4000, %eax           # imm = 0x4000
sete 0xb8(%rdi)
movzbl %bl, %eax
movl %eax, 0x20(%rdi)
movl %eax, 0x24(%rdi)
movq %r14, %rsi
callq 0x5280
movq -0x38(%rbp), %rdi
addq $0x78, %rdi
leaq -0x158(%rbp), %rsi
callq 0xbfac
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa35d
callq 0x5460
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0xa36e
callq 0x8a78
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa383
callq 0x5460
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa3b1
callq 0x5460
jmp 0xa3b1
jmp 0xa3ae
movq %rax, %rbx
leaq -0x158(%rbp), %rdi
callq 0xbfe8
jmp 0xa3d3
movq %rax, %rbx
movq -0x150(%rbp), %rdi
cmpq %r15, %rdi
je 0xa3d3
callq 0x5460
movq %rbx, %rdi
callq 0x57c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/williewillus[P]panda_scratchpad/src/wrapper/wrapper.cpp
// Function: wrapper::RecordCmFsOps::CmOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
int RecordCmFsOps::CmOpen(const string &pathname, const int flags) {
  // Will this make a new file or is this path a directory?
  const bool exists = fns_->FnPathExists(pathname.c_str());

  const int res = fns_->FnOpen(pathname.c_str(), flags);
  if (res < 0) {
    return res;
  }

  CmOpenCommon(res, pathname, exists, flags);

  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x90(%rdi), %r12
movq (%rsi), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
callq 0x51c0
movq (%r12), %rax
leaq -0x50(%rbp), %rsi
movq %r12, %rdi
callq *0x90(%rax)
movb %al, -0x29(%rbp)
leaq -0x40(%rbp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xa433
callq 0x5460
movq 0x90(%r15), %r13
movq (%r14), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
callq 0x51c0
movq (%r13), %rax
leaq -0x50(%rbp), %rsi
movq %r13, %rdi
movl %ebx, %edx
callq *0x20(%rax)
movl %eax, %r13d
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0xa46b
callq 0x5460
testl %r13d, %r13d
js 0xa485
movzbl -0x29(%rbp), %ecx
movq %r15, %rdi
movl %r13d, %esi
movq %r14, %rdx
movl %ebx, %r8d
callq 0xa23a
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
jne 0xa4b7
jmp 0xa4c1
jmp 0xa4be
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4c1
callq 0x5460
jmp 0xa4c1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x57c0
nop