LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::centerString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
string GradebookPrinter::centerString(string data, int columnWidth) {
    int blanksNeeded = columnWidth - data.length();
    int lb = blanksNeeded / 2;
    int rb = blanksNeeded - lb;
    string lbs = "";
    string rbs = "";
    for (int i = 0; i < lb; i++) {
        lbs += " ";
    }
    for (int i = 0; i < rb; i++) {
        rbs += " ";
    }
    return lbs + data + rbs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, %r15d
movq %rdi, -0x78(%rbp)
movq %rsi, -0x70(%rbp)
subl 0x8(%rsi), %r15d
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x24b0(%rip), %r12      # 0x94cf
leaq -0x68(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x841a
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x841a
movl %r15d, %ebx
shrl $0x1f, %ebx
addl %r15d, %ebx
sarl %ebx
cmpl $0x2, %r15d
jl 0x7074
leaq 0x22ca(%rip), %r12      # 0x9327
leaq -0x68(%rbp), %r13
movl %ebx, %r14d
movq %r13, %rdi
movq %r12, %rsi
callq 0x2340
decl %r14d
jne 0x7064
subl %ebx, %r15d
testl %r15d, %r15d
movq -0x78(%rbp), %rbx
jle 0x70a1
xorl %r14d, %r14d
leaq 0x229d(%rip), %r12      # 0x9327
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2340
incl %r14d
cmpl %r15d, %r14d
jl 0x708e
leaq -0x98(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x8305
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x2080
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x70eb
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x70f1
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7127
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x7140
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x7159
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x719b
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21d0
jmp 0x719b
jmp 0x7198
movq %rax, %rbx
jmp 0x71b4
jmp 0x7198
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x71b4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x71cd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O3/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::printRowSeparator(std::ostream&)
void GradebookPrinter::printRowSeparator(ostream& out) {
    for (int j = 0; j < numColumns; j++) {
        for (int k = 0; k < columnWidths[j]; k++) {
            out << '-';
        }
        if (j < numColumns - 1) {
            out << '-';
        }
    }
}

// Assembly:
movl 0xc(%rdi), %eax
testl %eax, %eax
jle 0x726c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
leaq -0x29(%rbp), %r15
movq 0x18(%r14), %rcx
cmpl $0x0, (%rcx,%r13,4)
jle 0x722f
xorl %r12d, %r12d
movb $0x2d, -0x29(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
incl %r12d
movq 0x18(%r14), %rax
cmpl (%rax,%r13,4), %r12d
jl 0x720a
movl 0xc(%r14), %eax
leal -0x1(%rax), %ecx
movslq %ecx, %rcx
cmpq %rcx, %r13
jge 0x7253
movb $0x2d, -0x2a(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x2210
movl 0xc(%r14), %eax
incq %r13
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0x71fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/introDist.cpp
// Function: comp2Dist(std::basic_fstream<char, std::char_traits<char>>&, std::basic_fstream<char, std::char_traits<char>>&, unsigned int, unsigned int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, double const*)
int comp2Dist (std::fstream &freqfile, std::fstream &genofile, unsigned int window, unsigned int step, int useAvg, std::string* genofname, const double* distance) {
	int comp2return = 0;

	switch (useAvg) {
		case 0 :
			std::cerr << "Using window-wide distance between populations\n";
			comp2return = comp2DistReg(freqfile, genofile, window, step);
			break;
		case 1 :
			std::cerr << "Using genome-wide distance between populations\n";
			comp2return = comp2DistPopAvg(freqfile, genofile, window, step, genofname, distance);
			break;
		case 2 :
			std::cerr << "Using genome-wide distance between individual and population 2\n";
			comp2return = comp2DistIndAvg(freqfile, genofile, window, step, genofname, distance);
			break;
		default :
			std::cerr << "Need to specify -useAvg 0, 1, or 2 in call to comp2Dist\n";
			comp2return = -1;
	}

	return comp2return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movq 0x10(%rbp), %rbx
movq 0xa204(%rip), %rdi      # 0xdff0
cmpl $0x2, %r8d
je 0x3e6b
cmpl $0x1, %r8d
je 0x3e32
testl %r8d, %r8d
jne 0x3ea4
leaq 0x6570(%rip), %rsi      # 0xa378
movl $0x2f, %edx
movl %ecx, %ebx
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d4a
leaq 0x656f(%rip), %rsi      # 0xa3a8
movl $0x2f, %edx
movl %ecx, -0x2c(%rbp)
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x2c(%rbp), %ecx
movq %r13, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6780
leaq 0x6566(%rip), %rsi      # 0xa3d8
movl $0x3f, %edx
movl %ecx, -0x2c(%rbp)
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x2c(%rbp), %ecx
movq %r13, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7374
leaq 0x656d(%rip), %rsi      # 0xa418
movl $0x38, %edx
callq 0x3250
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/introDist.cpp
// Function: avgDist(std::basic_fstream<char, std::char_traits<char>>&, std::basic_fstream<char, std::char_traits<char>>&, int)
int avgDist (std::fstream &freqfile, std::fstream &genofile, int avgtype) {
	int distreturn = 0;

	switch (avgtype) {
		case 0 :
			std::cerr << "Calculating expected distance between populations\n";
			distreturn = avg2PopDist(freqfile);
			break;
		case 1 :
			std::cerr << "Calculating distance between individual and population\n";
			distreturn = avgIndPopDist(freqfile, genofile);
			break;
		default:
			std::cerr << "Need to specify -distance 0 or 1 in call to -avgDist\n";
			distreturn = -1;
	}

	return distreturn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, %edx
je 0x49d4
movq 0x963d(%rip), %rdi      # 0xdff0
testl %edx, %edx
jne 0x49fe
leaq 0x5852(%rip), %rsi      # 0xa210
movl $0x32, %edx
callq 0x3250
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x5408
movq %rsi, %r14
movq 0x9612(%rip), %rdi      # 0xdff0
leaq 0x585e(%rip), %rsi      # 0xa243
movl $0x37, %edx
callq 0x3250
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x5756
leaq 0x5876(%rip), %rsi      # 0xa27b
movl $0x35, %edx
callq 0x3250
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/introDist.cpp
// Function: expect2PopDist(double, double)
double expect2PopDist (double p1, double p2) {
	/*
	 * expected distance between two populations
	 */

	// expected genotypes under HWE
	double eg1 = 2.0*p1*(1.0-p1) + 2.0*p1*p1;
	double eg2 = 2.0*p2*(1.0-p2) + 2.0*p2*p2;
	return fabs(eg1 - eg2)/2.0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movapd %xmm0, %xmm2
addsd %xmm0, %xmm2
movsd 0x433a(%rip), %xmm3     # 0xa008
movapd %xmm3, %xmm4
subsd %xmm0, %xmm4
mulsd %xmm2, %xmm0
mulsd %xmm2, %xmm4
addsd %xmm4, %xmm0
movapd %xmm1, %xmm2
addsd %xmm1, %xmm2
subsd %xmm1, %xmm3
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
subsd %xmm3, %xmm0
andpd 0x434a(%rip), %xmm0     # 0xa050
mulsd 0x4322(%rip), %xmm0     # 0xa030
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/introDist.cpp
// Function: calc3Dist(double, double, double, double)
double calc3Dist (double g1, double g2, double p1, double p2) {
	/*
	 * this calculates the average, expected distance between (possibly admixed) individuals and their population
	 * weighted by the distance between the distance between the (possibly admixed) individuals
	 *
	 * D_1 = (1-d(i1, i2)) * d({i1,p1}, {i2,p2})
	 *
	 * at site s:
	 * Distance between individuals: d(i1, i2) = |g(i1,s) - g(i2,s)|/2
	 * Average, expected distance between individual and pop: d({i1,p1}, {i1,p2}) = ( E[|g(i1,s) - g(p1,s)|] + E[|g(i2,s) - g(p2,s)|] )/4
	 *
	 * over N sites:
	 * D_N = 1/N * sum_from=1_to=N [ (1-d(i1,i2)) * d({i1,p1}, {i2,p2}) ]
	 */

	// expected genotypes under HWE
	double eg1 = 2.0*p1*(1.0-p1) + 2.0*p1*p1;
	double eg2 = 2.0*p2*(1.0-p2) + 2.0*p2*p2;

	// expected distance between individuals and populations
	double pdist = (fabs(g1-eg1) + fabs(g2-eg2))/4.0;

	// distance between individuals
	double idist = fabs(g1-g2)/2.0;

	// weighted distance statistic
	double d = (1.0-idist)*pdist;

	return (d);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movapd %xmm2, %xmm4
addsd %xmm2, %xmm4
movsd 0x20b2(%rip), %xmm6     # 0xa008
movapd %xmm6, %xmm5
movapd %xmm0, %xmm7
movapd 0x20e9(%rip), %xmm8     # 0xa050
subsd %xmm1, %xmm0
andpd %xmm8, %xmm0
mulsd 0x20b0(%rip), %xmm0     # 0xa028
addsd %xmm6, %xmm0
subsd %xmm2, %xmm6
mulsd %xmm4, %xmm2
mulsd %xmm4, %xmm6
addsd %xmm2, %xmm6
movapd %xmm3, %xmm2
addsd %xmm3, %xmm2
subsd %xmm3, %xmm5
mulsd %xmm2, %xmm3
mulsd %xmm2, %xmm5
addsd %xmm3, %xmm5
subsd %xmm6, %xmm7
andpd %xmm8, %xmm7
subsd %xmm5, %xmm1
andpd %xmm8, %xmm1
addsd %xmm1, %xmm7
mulsd 0x205e(%rip), %xmm7     # 0xa020
mulsd %xmm7, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/generalUtils.cpp
// Function: getFILE(std::basic_fstream<char, std::char_traits<char>>&, char const*, char const*)
bool getFILE(std::fstream &fp, const char* fname, const char* mode)
{
	int writeFile = 0;
	if (strcmp(mode, "out") == 0)
	{
		writeFile = 1;
		if(writeFile && fexists(fname))
		{
			fprintf(stderr,"File already exists: %s\n",fname);
			return false;
		}

		fp.open(fname, std::ios::out);
	}
	else if (strcmp(mode, "app") == 0)
		fp.open(fname, std::ios::app);
	else if (strcmp(mode, "in") == 0)
		fp.open(fname, std::ios::in);

	if( !fp )
	{
		fprintf(stderr,"Error opening FILE handle for file: %s\n",fname);
		fp.close();
		return false;
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2028(%rip), %rsi      # 0xaca8
movq %rdx, %rdi
callq 0x3290
testl %eax, %eax
je 0x8cba
leaq 0x2032(%rip), %rsi      # 0xacc5
movq %r15, %rdi
callq 0x3290
testl %eax, %eax
je 0x8cf2
cmpb $0x69, (%r15)
jne 0x8d02
cmpb $0x6e, 0x1(%r15)
jne 0x8d02
cmpb $0x0, 0x2(%r15)
jne 0x8d02
movl $0x8, %edx
jmp 0x8cf7
leaq -0xa8(%rbp), %rsi
movq %rbx, %rdi
callq 0x31e0
movl $0x10, %edx
testl %eax, %eax
jne 0x8cf7
movq 0x52f7(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x1fc9(%rip), %rsi      # 0xacac
xorl %r15d, %r15d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x32a0
jmp 0x8d14
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31f0
movq (%r14), %rax
movq -0x18(%rax), %rax
movb $0x1, %r15b
testb $0x5, 0x20(%r14,%rax)
jne 0x8d25
movl %r15d, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x52a4(%rip), %rax      # 0xdfd0
movq (%rax), %rdi
leaq 0x1f93(%rip), %rsi      # 0xacc9
xorl %r15d, %r15d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x32a0
movq %r14, %rdi
callq 0x3050
jmp 0x8d14
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/generalUtils.cpp
// Function: readChunk(std::vector<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>>>>&, unsigned int*, int*, std::istream&)
bool readChunk (std::vector<std::string>& datavec, unsigned int* chunk, int* end, std::istream& is)
{
	unsigned int i = 0;
	std::string(line);
	size_t cap = 0;

	if (!datavec.empty())
	{
		cap = datavec.capacity();
		datavec.clear();
		if (datavec.capacity() < cap)
			datavec.reserve(cap);
	}
	while (i < *chunk)
	{
		if (getline(is, line))
		{
			datavec.push_back(line);
			++i;
		}
		else if (is.eof())
		{
			datavec.resize(i); // remove empty elements
			*end = 1;
			*chunk = i; // number of lines processed upon returning
			return(true);
		}
		else
		{
			fprintf(stderr, "Failed reading stream in readChunk function\n");
			return(false);
		}
	}
	return(true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r13
movq %rdx, -0x30(%rbp)
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdi), %rsi
cmpq 0x8(%rdi), %rsi
je 0x8ddd
movq 0x10(%r12), %r14
subq %rsi, %r14
movq %r12, %rdi
callq 0x9448
movq 0x10(%r12), %rax
subq (%r12), %rax
cmpq %r14, %rax
jae 0x8ddd
sarq $0x5, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x9220
movb $0x1, %r14b
cmpl $0x0, (%rbx)
je 0x8e5d
xorl %r14d, %r14d
leaq -0x50(%rbp), %r15
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x33d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8e32
movq %r12, %rdi
movq %r15, %rsi
callq 0x9312
incq %r14
cmpl (%rbx), %r14d
jb 0x8dec
jmp 0x8e5a
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r13,%rax)
je 0x8e88
movq %r12, %rdi
movq %r14, %rsi
callq 0x935e
movq -0x30(%rbp), %rax
movl $0x1, (%rax)
movl %r14d, (%rbx)
movb $0x1, %r14b
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x8e76
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3220
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3431
xorl %r14d, %r14d
jmp 0x8e5d
jmp 0x8e94
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x8eb0
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x3390
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/generalUtils.cpp
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
std::vector<std::string> split (const std::string& s, char delim)
{
        std::vector<std::string> elems;
        std::stringstream ss(s);
        std::string sholder;
        while (std::getline(ss, sholder, delim))
        {
                if (!sholder.empty())
                        elems.push_back(sholder);
        }
        return elems;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %edx, %r14d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq -0x1d0(%rbp), %rdi
movl $0x18, %edx
callq 0x3310
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movsbl %r14b, %r14d
leaq -0x1d0(%rbp), %r15
leaq -0x48(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl %r14d, %edx
callq 0x33d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8f45
cmpq $0x0, -0x40(%rbp)
je 0x8f15
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9312
jmp 0x8f15
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x8f5a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3220
movq 0x504f(%rip), %rsi      # 0xdfb0
leaq -0x1d0(%rbp), %rdi
callq 0x3190
leaq -0x150(%rbp), %rdi
callq 0x30e0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x8fca
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x8fab
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3220
movq 0x4ffe(%rip), %rsi      # 0xdfb0
leaq -0x1d0(%rbp), %rdi
callq 0x3190
leaq -0x150(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x9396
movq %r14, %rdi
callq 0x3390
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/generalUtils.cpp
// Function: AssertStyleException::what() const
const char* AssertStyleException::what() const throw()
{
        std::stringstream message;
        message << "Assert type exception occurred:\n";
        if (_error) message << _error;
        return message.str().c_str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, %r14
leaq -0x1b8(%rbp), %rdi
callq 0x3170
leaq -0x1a8(%rbp), %rbx
leaq 0x1c5b(%rip), %rsi      # 0xad1e
movl $0x20, %edx
movq %rbx, %rdi
callq 0x3250
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x90ef
movq %r14, %rdi
callq 0x3110
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3250
leaq -0x1a0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x3300
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rbx
cmpq %rax, %rbx
je 0x911b
movq -0x20(%rbp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x3220
movq 0x4e8e(%rip), %rsi      # 0xdfb0
leaq -0x1b8(%rbp), %rdi
callq 0x3190
leaq -0x138(%rbp), %rdi
callq 0x30e0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x82b9
nop
// File: /workspace/github_cpp_makefile_star2_O3/tplinderoth[P]introDist/generalUtils.cpp
// Function: PreConditionException::what() const
const char* PreConditionException::what() const throw()
{
        std::stringstream message;
        message << "Precondition exception occurred:\n";
        if (_error) message << _error;
        return message.str().c_str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, %r14
leaq -0x1b8(%rbp), %rdi
callq 0x3170
leaq -0x1a8(%rbp), %rbx
leaq 0x1bae(%rip), %rsi      # 0xad3f
movl $0x21, %edx
movq %rbx, %rdi
callq 0x3250
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x91bd
movq %r14, %rdi
callq 0x3110
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3250
leaq -0x1a0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x3300
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rbx
cmpq %rax, %rbx
je 0x91e9
movq -0x20(%rbp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x3220
movq 0x4dc0(%rip), %rsi      # 0xdfb0
leaq -0x1b8(%rbp), %rdi
callq 0x3190
leaq -0x138(%rbp), %rdi
callq 0x30e0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x82b9
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/examples/construct_destroy/main.cpp
// Function: main
int main()
{
  try
  {
    Boss::Base<MyNs::Impl::Face_1_2_3>::Create(false);
    std::cout << std::endl;
    Boss::Base<MyNs::Impl::Face_1_2_3>::Create(true);
  }
  catch (std::exception const &e)
  {
    std::cerr << "Error: " << e.what() << std::endl;
  }
  return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq 0xf(%rsp), %rsi
movb $0x0, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x1718e
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x170ba
movq (%rdi), %rax
callq *0x20(%rax)
movq $0x0, 0x10(%rsp)
leaq 0xe1396(%rip), %rdi     # 0xf8460
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x64f50
movsbl %al, %esi
leaq 0xe137b(%rip), %rdi     # 0xf8460
callq 0x83900
movq %rax, %rdi
callq 0x82ed0
leaq 0xf(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x18(%rsp), %rdi
callq 0x1718e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x17114
movq (%rdi), %rax
callq *0x20(%rax)
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
jmp 0x1711e
movq %rax, %rdi
callq 0x17272
jmp 0x1712a
jmp 0x1712a
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x17184
movq %rbx, %rdi
callq 0x18720
movq %rax, %rbx
leaq 0xe11fc(%rip), %rdi     # 0xf8340
leaq 0xa4eb9(%rip), %rsi     # 0xbc004
movl $0x7, %edx
callq 0x83e00
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe11db(%rip), %rdi     # 0xf8340
movq %rax, %rsi
callq 0x84330
movq %rax, %rdi
callq 0x83c10
callq 0x18790
jmp 0x17114
movq %rax, %rbx
callq 0x18790
movq %rbx, %rdi
callq 0xb8c80
jmp 0x1711e
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/core/base.h
// Function: void Boss::Private::FinalizeConstruct<MyNs::Impl::Face_1_2_3, true>::Construct<MyNs::Impl::Face_1_2_3>(MyNs::Impl::Face_1_2_3*)
static void Construct(ObjType *obj)
      {
        typedef typename T::BaseEntities BaseEntities;
        enum { BaseEntityCount = std::tuple_size<BaseEntities>::value - 1 };
        FinalizeConstructIter<BaseEntities, BaseEntityCount>::Construct(obj);
        CallFinalizeConstruct<HasFinalizeConstruct<T>::Has>::Call(obj);
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
testq %rdi, %rdi
cmoveq %rdi, %r14
leaq 0x28(%rdi), %r15
cmoveq %rdi, %r15
movq %r14, %rdi
callq 0x17f60
movb $0x1, %bpl
movb %bpl, 0x10(%r14)
movq %r15, %rdi
callq 0x17fa4
movb %bpl, 0x10(%r15)
movq %rbx, %rdi
callq 0x18002
movb %bpl, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/core/base.h
// Function: void Boss::Private::BeforeRelease<MyNs::Impl::Face_1_2_3, true>::Release<MyNs::Impl::Face_1_2_3>(MyNs::Impl::Face_1_2_3*)
static void Release(ObjType *obj)
      {
        typedef typename T::BaseEntities BaseEntities;
        enum { BaseEntityCount = std::tuple_size<BaseEntities>::value - 1 };
        CallBeforeRelease<HasBeforeRelease<T>::Has>::Call(obj);
        BeforeReleaseIter<BaseEntities, BaseEntityCount>::Release(obj);
      }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x48(%rdi)
jne 0x17e3a
movq %rbx, %rdi
callq 0x17e94
movb $0x0, 0x48(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x17e48
nop
// File: /workspace/github_cpp_makefile_star2_O3/jBlinden[P]private-codis/ProtocolServer.cpp
// Function: main
int main(int argc, char **argv)
{
  if (argc < 4)
  {
    cout << "usage: ./ProtocolServer ProtocolArgsFile serverDataDir port" << endl;
    return 1;
  }

  srand(time(NULL));

  ServerLog("finished loading data from disk");

  int port = atoi(argv[3]);

  string pArgsFile(argv[1]);
  string serverDataDir(argv[2]);

  StartServer(port, pArgsFile, serverDataDir);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
cmpl $0x3, %edi
jg 0x3863
movq 0x57ba(%rip), %rbx      # 0x8fd8
leaq 0x2c63(%rip), %rsi      # 0x6488
movl $0x3b, %edx
movq %rbx, %rdi
callq 0x2290
movq (%rbx), %rax
movl $0xa, %esi
movq -0x18(%rax), %rdi
addq %rbx, %rdi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movl $0x1, %eax
jmp 0x3976
xorl %edi, %edi
movq %rsi, %rbx
callq 0x21e0
movl %eax, %edi
callq 0x2200
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2c40(%rip), %rsi      # 0x64c4
leaq 0x2c58(%rip), %rdx      # 0x64e3
leaq 0x10(%rsp), %rdi
callq 0x3aa4
leaq 0x10(%rsp), %rdi
callq 0x3425
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x38ae
callq 0x21f0
movq 0x18(%rbx), %rdi
callq 0x2330
movq 0x8(%rbx), %rsi
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x20f0
movq 0x10(%rbx), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x20f0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x3a0e
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x3a0e
leaq 0x70(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movl %ebp, %edi
callq 0x34fe
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x3943
callq 0x21f0
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x3952
callq 0x21f0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3965
callq 0x21f0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x3974
callq 0x21f0
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x50(%rsp), %rdi
movq %rax, %rbx
cmpq %r12, %rdi
je 0x399d
callq 0x21f0
jmp 0x399d
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x39b1
callq 0x21f0
jmp 0x39b1
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39cd
callq 0x21f0
jmp 0x39cd
jmp 0x39ca
jmp 0x39de
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x39e1
callq 0x21f0
jmp 0x39e1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x23a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/bummelbaerchen[P]e3dc/RscpExampleMain.cpp
// Function: ControlLoadData(SRscpFrameBuffer*, int, int)
int ControlLoadData(SRscpFrameBuffer * frameBuffer,int32_t Power,int32_t Mode ) {
    RscpProtocol protocol;
    SRscpValue rootValue;
    // The root container is create with the TAG ID 0 which is not used by any device.
    protocol.createContainerValue(&rootValue, 0);
    
    // request Power Meter information
    SRscpValue PMContainer;
//    Power = Power*-1;
    protocol.createContainerValue(&PMContainer, TAG_EMS_REQ_SET_POWER);
    protocol.appendValue(&PMContainer, TAG_EMS_REQ_SET_POWER_MODE,Mode);
    if (Mode > 0)
    protocol.appendValue(&PMContainer, TAG_EMS_REQ_SET_POWER_VALUE,Power);
    // append sub-container to root container
    protocol.appendValue(&rootValue, PMContainer);
    // free memory of sub-container as it is now copied to rootValue
    protocol.destroyValueData(PMContainer);
 
    
    
    
    // create buffer frame to send data to the S10
    protocol.createFrameAsBuffer(frameBuffer, rootValue.data, rootValue.length, true); // true to calculate CRC on for transfer
    // the root value object should be destroyed after the data is copied into the frameBuffer and is not needed anymore
    protocol.destroyValueData(rootValue);
    
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl %esi, 0x24(%rsp)
movl %edx, 0x20(%rsp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x73dc
leaq 0x28(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0xe(%rsp), %r9
movb $0xe, (%r9)
leaq 0x1c(%rsp), %r8
movw $0x0, (%r8)
leaq 0x39(%rsp), %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x7daa
leaq 0x1c(%rsp), %rdx
movl $0x1000030, (%rdx)      # imm = 0x1000030
leaq 0xd(%rsp), %r9
movb $0xe, (%r9)
leaq 0xe(%rsp), %r8
movw $0x0, (%r8)
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
xorl %ecx, %ecx
callq 0x7daa
leaq 0x1c(%rsp), %rdx
movl $0x1000031, (%rdx)      # imm = 0x1000031
leaq 0xe(%rsp), %r8
movw $0x4, (%r8)
leaq 0xd(%rsp), %r9
movb $0x6, (%r9)
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x20(%rsp), %rcx
callq 0x7f6c
cmpl $0x0, 0x20(%rsp)
jle 0x2556
leaq 0x1c(%rsp), %rdx
movl $0x1000032, (%rdx)      # imm = 0x1000032
leaq 0xe(%rsp), %r8
movw $0x4, (%r8)
leaq 0xd(%rsp), %r9
movb $0x6, (%r9)
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x24(%rsp), %rcx
callq 0x7f6c
leaq 0x10(%rsp), %rdi
leaq 0x39(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x71a8
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x828a
movq 0x40(%rsp), %rdx
movzwl 0x3e(%rsp), %ecx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %r8d
callq 0x74c4
leaq 0x10(%rsp), %rdi
leaq 0x39(%rsp), %rsi
callq 0x828a
leaq 0x10(%rsp), %rdi
callq 0x73e8
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
jmp 0x25c1
jmp 0x25c1
jmp 0x25c1
jmp 0x25c1
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x73e8
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O3/bummelbaerchen[P]e3dc/RscpProtocol.cpp
// Function: RscpProtocol::setHeaderTimestamp(SRscpFrame*)
bool RscpProtocol::setHeaderTimestamp(SRscpFrame *frame) {
	// sanity check
	if(frame == NULL) {
		return false;
	}

	bool bTimeSet = false;
	// get linux timestamp
	struct timeval timeVal;
	gettimeofday(&timeVal, NULL);
	// set frame timestamp
	frame->header.timestamp.seconds = timeVal.tv_sec;
	frame->header.timestamp.nanoseconds = timeVal.tv_usec * 1000;

	return bTimeSet;
}

// Assembly:
testq %rsi, %rsi
je 0x742b
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x2260
movq (%r14), %rax
movq %rax, 0x4(%rbx)
imull $0x3e8, 0x8(%r14), %eax # imm = 0x3E8
movl %eax, 0xc(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/bummelbaerchen[P]e3dc/AES.cpp
// Function: AES::Encrypt(unsigned char const*, unsigned char*, unsigned int, AES::BlockMode)
void AES::Encrypt(const unsigned char * datain, unsigned char * dataout, uint32_t numBlocks, BlockMode mode)
	{
	if (0 == numBlocks)
		return;
	unsigned int blocksize = Nb*4;
	switch (mode)
		{
		case ECB :
			while (numBlocks)
				{
				EncryptBlock(datain,dataout);
				datain   += blocksize;
				dataout  += blocksize;
				--numBlocks;
				}
			break;
		case CBC :
			{
			unsigned char buffer[32]; // max blocksize
			memcpy(buffer,iv,blocksize); // clear out - todo - allow setting the Initialization Vector - needed for security
			while (numBlocks)
				{
				for (unsigned int pos = 0; pos < blocksize; ++pos)
					buffer[pos] ^= *datain++;
				EncryptBlock(buffer,dataout);
				memcpy(buffer,dataout,blocksize);
				dataout  += blocksize;
				--numBlocks;
				}
			}
			break;
		default :
			break;
		}
	}

// Assembly:
testl %ecx, %ecx
je 0xcdae
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl (%rdi), %eax
leal (,%rax,4), %ebp
cmpl $0x1, %r8d
je 0xcd2e
testl %r8d, %r8d
jne 0xcda0
movl %ebp, %r13d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x87f4
addq %r13, %r15
addq %r13, %r14
decl %ebx
jne 0xcd14
jmp 0xcda0
movq %rax, 0x8(%rsp)
movq %r12, (%rsp)
leaq 0x1ec(%r12), %rsi
movl %ebp, %r13d
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x2120
cmpl $0x1, %ebp
adcl $0x0, %ebp
cmpl $0x0, 0x8(%rsp)
je 0xcd77
xorl %eax, %eax
movq (%rsp), %rdi
movb (%r15,%rax), %cl
xorb %cl, 0x10(%rsp,%rax)
incq %rax
cmpq %rax, %rbp
jne 0xcd62
addq %rax, %r15
jmp 0xcd7b
movq (%rsp), %rdi
leaq 0x10(%rsp), %r12
movq %r12, %rsi
movq %r14, %rdx
callq 0x87f4
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x2120
addq %r13, %r14
decl %ebx
jne 0xcd55
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/bummelbaerchen[P]e3dc/SocketConnection.cpp
// Function: SocketSendData(int, unsigned char const*, int)
int SocketSendData(int iSocket, const unsigned char * ucBuffer, int iLength)
{
    // sanity check
    if(iSocket < 0) {
        return iSocket;
    }

    int iSentBytes = 0;
    while(iLength)
    {
        long result = send(iSocket, ucBuffer, iLength, 0);
        if(result <= 0) {
            return -1;
        }
        iSentBytes += result;
        ucBuffer += result;
        iLength -= result;
    }
    return iSentBytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %edi, %edi
js 0x121b7
movl %edx, %ebp
movq %rsi, %r14
xorl %r15d, %r15d
testl %ebp, %ebp
je 0x121b4
movslq %ebp, %rdx
movl %ebx, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x20c0
addl %eax, %r15d
addq %rax, %r14
subl %eax, %ebp
testq %rax, %rax
jg 0x1218d
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x121b7
movl %r15d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Image.cpp
// Function: Image::apply_focus_blur()
void Image::apply_focus_blur(){
    post_red_pixels = Eigen::MatrixXd(red_pixels);
    post_green_pixels = Eigen::MatrixXd(green_pixels);
    post_blue_pixels = Eigen::MatrixXd(blue_pixels);

    for (int x=0; x<image_width; x++){
        for (int y=0; y<image_height; y++){
            int blur = get_pixel_blur(x, y);
            blur_pixel(x, y, blur);
        }
    }
    red_pixels = Eigen::MatrixXd(post_red_pixels);
    green_pixels = Eigen::MatrixXd(post_green_pixels);
    blue_pixels = Eigen::MatrixXd(post_blue_pixels);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x18(%rdi), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x4fb8
leaq 0x60(%rbx), %r14
movq (%r15), %rax
movq 0x60(%rbx), %rdi
movq %rdi, (%r15)
movq %rax, 0x60(%rbx)
movups 0x68(%rbx), %xmm0
movups 0x8(%r15), %xmm1
movups %xmm0, 0x8(%r15)
movups %xmm1, 0x68(%rbx)
callq 0x3320
leaq 0x30(%rbx), %rsi
movq %rsp, %r12
movq %r12, %rdi
callq 0x4fb8
leaq 0x78(%rbx), %r15
movq (%r12), %rax
movq 0x78(%rbx), %rdi
movq %rdi, (%r12)
movq %rax, 0x78(%rbx)
movups 0x8(%r12), %xmm0
movups 0x80(%rbx), %xmm1
movups %xmm1, 0x8(%r12)
movups %xmm0, 0x80(%rbx)
callq 0x3320
leaq 0x48(%rbx), %rsi
movq %rsp, %r13
movq %r13, %rdi
callq 0x4fb8
leaq 0x90(%rbx), %r12
movq (%r13), %rax
movq 0x90(%rbx), %rdi
movq %rdi, (%r13)
movq %rax, 0x90(%rbx)
movups 0x8(%r13), %xmm0
movups 0x98(%rbx), %xmm1
movups %xmm1, 0x8(%r13)
movups %xmm0, 0x98(%rbx)
callq 0x3320
movl 0x10(%rbx), %ecx
testl %ecx, %ecx
jle 0x420d
movl 0x14(%rbx), %eax
xorl %ebp, %ebp
testl %eax, %eax
jle 0x4207
xorl %r13d, %r13d
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
callq 0x46d2
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl %eax, %ecx
callq 0x4796
incl %r13d
movl 0x14(%rbx), %eax
cmpl %eax, %r13d
jl 0x41dd
movl 0x10(%rbx), %ecx
incl %ebp
cmpl %ecx, %ebp
jl 0x41d6
movq %rsp, %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x4fb8
movq (%r13), %rax
movq 0x18(%rbx), %rdi
movq %rdi, (%r13)
movq %rax, 0x18(%rbx)
movups 0x20(%rbx), %xmm0
movups 0x8(%r13), %xmm1
movups %xmm0, 0x8(%r13)
movups %xmm1, 0x20(%rbx)
callq 0x3320
movq %rsp, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x4fb8
movq (%r14), %rax
movq 0x30(%rbx), %rdi
movq %rdi, (%r14)
movq %rax, 0x30(%rbx)
movups 0x8(%r14), %xmm0
movups 0x38(%rbx), %xmm1
movups %xmm1, 0x8(%r14)
movups %xmm0, 0x38(%rbx)
callq 0x3320
movq %rsp, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x4fb8
movq (%r14), %rax
movq 0x48(%rbx), %rdi
movq %rdi, (%r14)
movq %rax, 0x48(%rbx)
movups 0x8(%r14), %xmm0
movups 0x50(%rbx), %xmm1
movups %xmm1, 0x8(%r14)
movups %xmm0, 0x50(%rbx)
callq 0x3320
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Image.cpp
// Function: Image::convert_255(double)
int Image::convert_255(double value){
    // Convert a 0-1 double value to 0-255 int value
    if (value > 1)
        value = 1;
    if (value < 0)
        value = 0;
    value = value * 255.0;
    return int(value);
}

// Assembly:
movsd 0x119a4(%rip), %xmm1    # 0x16030
minsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
maxsd %xmm1, %xmm0
mulsd 0x11998(%rip), %xmm0    # 0x16038
cvttsd2si %xmm0, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Image.cpp
// Function: Image::get_anti_alias_val(int, int, int, Eigen::Matrix<double, -1, -1, 0, -1, -1>*)
double Image::get_anti_alias_val(int index_x, int index_y, int scale, Eigen::MatrixXd* cur_color){
    double pixel_total = 0;
    int count = 0;
    for (int x=index_x*scale; x<(index_x+1)*scale; x++){
        for (int y=index_y*scale; y<(index_y+1)*scale; y++){
           pixel_total += (*cur_color)(x, y);
           count++;
        }
    }
    return pixel_total / count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r10d
imull %esi, %r10d
incl %esi
imull %ecx, %esi
cmpl %esi, %r10d
jge 0x4a78
movl %ecx, %eax
imull %edx, %eax
incl %edx
imull %ecx, %edx
movslq %eax, %rdi
movslq %esi, %rsi
movslq %edx, %r9
movslq %r10d, %r10
leaq (,%r10,8), %r11
leaq (,%rdi,8), %rbx
xorpd %xmm0, %xmm0
xorl %ebp, %ebp
cmpl %edx, %eax
jge 0x4a62
testq %r10, %r10
js 0x4a8f
movq 0x8(%r8), %r14
cmpq %r10, %r14
jle 0x4a8f
addl %ecx, %ebp
movq %rbx, %r15
imulq %r14, %r15
addq %r11, %r15
shlq $0x3, %r14
movq %rdi, %r12
testl %eax, %eax
js 0x4a8f
cmpq %r12, 0x10(%r8)
jle 0x4a8f
movq (%r8), %r13
addsd (%r13,%r15), %xmm0
incq %r12
addq %r14, %r15
cmpq %r12, %r9
jne 0x4a43
incq %r10
addq $0x8, %r11
cmpq %rsi, %r10
jl 0x4a1e
cvtsi2sd %ebp, %xmm1
divsd %xmm1, %xmm0
jmp 0x4a80
movsd 0x115c8(%rip), %xmm0    # 0x16048
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x119fd(%rip), %rdi     # 0x16493
leaq 0x11a2b(%rip), %rsi     # 0x164c8
leaq 0x11a4d(%rip), %rcx     # 0x164f1
movl $0x16d, %edx            # imm = 0x16D
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Light.cpp
// Function: Light::Light(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Light::Light(std::string driver_line){
    // Light string: "light x_loc y_loc z_loc w r g b"
    std::stringstream driver(driver_line);
    double light_obj_doubles[8] = {};
    light_obj_doubles[7] = 0;
    std::string driver_type = "";
    driver >> driver_type;

    double temp = 0;
    int counter = 0;
    while (driver >> temp){
        light_obj_doubles[counter++] = temp;
    }
    if (counter < 7 || counter > 8){
        // The correct number of numbers were not found
        load_successful = false;
        return;
    }
    assign_values(light_obj_doubles);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rbx
movl $0x0, (%rdi)
movb $0x1, 0x40(%rdi)
leaq 0x78(%rsp), %rdi
movl $0x18, %edx
callq 0x3400
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x11434(%rip), %rdx     # 0x16c74
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x5bde
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3340
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
xorl %r13d, %r13d
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x31b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x589b
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp,%r13,8)
incq %r13
jmp 0x5870
addl $-0x9, %r13d
cmpl $-0x3, %r13d
ja 0x58ab
movb $0x0, 0x40(%rbx)
jmp 0x58b8
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x5948
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x58cf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1a6c2(%rip), %rsi     # 0x1ff98
leaq 0x78(%rsp), %rdi
callq 0x3210
leaq 0xf8(%rsp), %rdi
callq 0x30e0
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x5907
jmp 0x5907
movq %rax, %rbx
jmp 0x5921
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5921
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1a670(%rip), %rsi     # 0x1ff98
leaq 0x78(%rsp), %rdi
callq 0x3210
leaq 0xf8(%rsp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x34b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/Light.cpp
// Function: Light::assign_values(double*)
void Light::assign_values(double spec_nums[]){
    double x_cord = spec_nums[0];
    double y_cord = spec_nums[1];
    double z_cord = spec_nums[2];
    w_value = spec_nums[3];
    double red_color = spec_nums[4];
    double green_color = spec_nums[5];
    double blue_color = spec_nums[6];
    lighting_group = spec_nums[7];
    light_pos << x_cord, y_cord, z_cord;
    if (w_value == 0){
        light_pos = 1000000000 * light_pos;
    }
    light_color << red_color, green_color, blue_color;
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movsd (%rsi), %xmm0
movsd 0x8(%rsi), %xmm1
leaq 0x48(%rsp), %rax
movsd %xmm1, (%rax)
movsd 0x10(%rsi), %xmm1
movsd %xmm1, 0x40(%rsp)
movsd 0x18(%rsi), %xmm1
movsd %xmm1, 0x8(%rdi)
movsd 0x20(%rsi), %xmm1
movsd %xmm1, 0x28(%rsp)
movsd 0x28(%rsi), %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x30(%rsi), %xmm1
movsd %xmm1, 0x30(%rsp)
cvttsd2si 0x38(%rsi), %ecx
movl %ecx, (%rdi)
leaq 0x10(%rdi), %rcx
leaq 0x8(%rsp), %rdi
movq %rcx, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %ecx
movq %rcx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movsd %xmm0, 0x10(%rbx)
movq %rax, %rsi
callq 0x5b22
leaq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0x5b22
movq 0x20(%rsp), %rax
addq 0x10(%rsp), %rax
cmpq $0x3, %rax
jne 0x5a90
cmpq $0x1, 0x18(%rsp)
jne 0x5a90
movsd 0x8(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5a2f
jp 0x5a2f
movupd 0x10(%rbx), %xmm0
mulpd 0x10f18(%rip), %xmm0    # 0x16930
movupd %xmm0, 0x10(%rbx)
movsd 0x20(%rbx), %xmm0
mulsd 0x10f16(%rip), %xmm0    # 0x16940
movsd %xmm0, 0x20(%rbx)
leaq 0x28(%rbx), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %eax
movq %rax, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x28(%rbx)
leaq 0x38(%rsp), %rsi
callq 0x5b22
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x5b22
movq 0x20(%rsp), %rax
addq 0x10(%rsp), %rax
cmpq $0x3, %rax
jne 0x5a90
cmpq $0x1, 0x18(%rsp)
jne 0x5a90
addq $0x50, %rsp
popq %rbx
retq
leaq 0x10eb1(%rip), %rdi     # 0x16948
leaq 0x10f48(%rip), %rsi     # 0x169e6
leaq 0x10f6b(%rip), %rcx     # 0x16a10
movl $0x78, %edx
callq 0x31a0
movq 0x20(%rsp), %rcx
addq 0x10(%rsp), %rcx
cmpq $0x3, %rcx
jne 0x5ac7
cmpq $0x1, 0x18(%rsp)
je 0x5ae4
callq 0x355f
movq 0x20(%rsp), %rcx
addq 0x10(%rsp), %rcx
cmpq $0x3, %rcx
jne 0x5aec
cmpq $0x1, 0x18(%rsp)
jne 0x5aec
movq %rax, %rdi
callq 0x34b0
callq 0x3541
nop
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/raytracer.cpp
// Function: render_scene(Scene&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void render_scene(Scene &sc, int number_threads, std::string save_folder){
    RenderImage ri = RenderImage(&sc);
    while (sc.advance_frame()){
        ri.reset();
        if (number_threads > 1)
            multi_thread_render(ri, number_threads);
        else
            ri.render_tiles();
        ri.save_image(image_name(sc.get_current_frame(), save_folder));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xbf50
leaq 0x20(%rsp), %r13
movq %r14, %rdi
callq 0xef02
testb %al, %al
je 0x6649
movq %r15, %rdi
callq 0xbfca
cmpl $0x2, %ebp
jl 0x65c2
movq %r15, %rdi
movl %ebp, %esi
callq 0x6494
jmp 0x65ca
movq %r15, %rdi
callq 0xc1cc
movq %r14, %rdi
callq 0xed94
movl %eax, %r12d
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x5756
movq %r13, %rdi
movl %r12d, %esi
movq %rsp, %rdx
callq 0x6207
movq %r15, %rdi
movq %r13, %rsi
callq 0xc136
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6625
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32d0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6599
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x6599
leaq 0x50(%rsp), %rdi
callq 0x6bee
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6689
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x6689
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x66a9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x66a9
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x6bee
movq %rbx, %rdi
callq 0x34b0
// File: /workspace/github_cpp_makefile_star2_O3/IsaacLaw12[P]RayTracer/./src/raytracer.cpp
// Function: main
int main(int argc, char*argv[]){
    int number_threads = 1;
    std::string driver_file = "";
    std::string save_folder = "";
    int valid_args = parse_args(argc, argv, number_threads, driver_file, save_folder);
    if (valid_args != 0){
        return valid_args;
    }

    create_directory(save_folder);
    Scene sc(driver_file);
    render_scene(sc, number_threads, save_folder);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rsi, %rbx
movl %edi, %ebp
movl $0x1, 0xc(%rsp)
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1058d(%rip), %r14     # 0x16c74
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x5bde
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x5bde
leaq 0xc(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
movl %ebp, %edi
movq %rbx, %rsi
callq 0x5e6f
movl $0x1, %ebx
testl %eax, %eax
jne 0x6834
leaq 0xa0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x5756
leaq 0x90(%rsp), %rdi
callq 0x5c74
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x6787
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x5756
leaq 0xb0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xe4e4
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x67d6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x32d0
movl 0xc(%rsp), %ebx
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x5756
leaq 0xb0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movl %ebx, %esi
callq 0x656b
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x6825
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0xb0(%rsp), %rdi
callq 0x6aa2
xorl %ebx, %ebx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x684b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x6862
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32d0
movl %ebx, %eax
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x6893
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x6893
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x6aa2
jmp 0x68e5
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x68e5
movq 0x80(%rsp), %rsi
jmp 0x68d3
jmp 0x68e2
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x68e5
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x68e5
movq %rax, %rbx
jmp 0x68fc
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x68fc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x6913
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32d0
movq %rbx, %rdi
callq 0x34b0
nop