LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::HyperExponential(double, double)
double RandomGenerator::HyperExponential(double x, double s)
	{
		if (s < x) {
			throw std::logic_error("RandomGenerator::HyperExponential: Mean must be greater than standard deviation.");
		}

		double cv, z, p;
		cv = s / x;
		z = cv * cv;
		p = 0.5 * (1.0 - sqrt((z - 1.0) / (z + 1.0)));
		z = (FloatRandom() > p) ? (x / (1.0 - p)) : (x / p);
		return -0.5 * z * log(FloatRandom());
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
ucomisd %xmm1, %xmm0
ja 0x53537
movq %rdi, %rbx
movsd %xmm0, 0x8(%rsp)
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm1
movsd 0x74c2(%rip), %xmm0     # 0x5a958
addsd %xmm1, %xmm0
addsd 0x476e(%rip), %xmm1     # 0x57c10
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x534b6
sqrtsd %xmm0, %xmm0
jmp 0x534bb
callq 0x72f0
movsd 0x474d(%rip), %xmm1     # 0x57c10
subsd %xmm0, %xmm1
mulsd 0x5dc1(%rip), %xmm1     # 0x59290
movapd %xmm1, 0x10(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
movsd 0x472b(%rip), %xmm2     # 0x57c10
movapd 0x10(%rsp), %xmm3
subsd %xmm3, %xmm2
movapd %xmm3, %xmm1
cmpltsd %xmm0, %xmm1
andpd %xmm1, %xmm2
andnpd %xmm3, %xmm1
orpd %xmm2, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
mulsd 0x744a(%rip), %xmm0     # 0x5a960
movsd %xmm0, 0x8(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
callq 0x7300
mulsd 0x8(%rsp), %xmm0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x71d0
movq %rax, %rbx
leaq 0x7435(%rip), %rsi      # 0x5a980
movq %rax, %rdi
callq 0x7500
movq 0x1ba66(%rip), %rsi     # 0x6efc0
movq 0x1ba1f(%rip), %rdx     # 0x6ef80
movq %rbx, %rdi
callq 0x75e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x72c0
movq %r14, %rdi
callq 0x7620
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Normal(double, double)
double RandomGenerator::Normal(double x, double s)
	{
		double v1, v2, w, z1;
		if (Normal_z2 != 0.0) {
			/* use value from previous call */
			z1 = Normal_z2;
			Normal_z2 = 0.0;
		} else {
			do {
				v1 = 2.0 * FloatRandom() - 1.0;
				v2 = 2.0 * FloatRandom() - 1.0;
				w = v1 * v1 + v2 * v2;
			} while (w >= 1.0);

			w = sqrt((-2.0*log(w)) / w);
			z1 = v1 * w;
			Normal_z2 = v2 * w;
		}

		return x + z1 * s;
	}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movq %rdi, %rbx
movsd 0x10(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5359d
jnp 0x535a7
movsd 0x10(%rbx), %xmm0
jmp 0x53651
movsd %xmm3, (%rsp)
movsd %xmm2, 0x8(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
movapd %xmm0, 0x10(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
movapd 0x10(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
addpd %xmm1, %xmm1
addpd 0x7392(%rip), %xmm1     # 0x5a970
movapd %xmm1, %xmm2
mulpd %xmm1, %xmm2
unpckhpd %xmm2, %xmm2            # xmm2 = xmm2[1,1]
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm2, %xmm0
ucomisd 0x4612(%rip), %xmm0     # 0x57c10
jae 0x535b2
movapd %xmm1, 0x10(%rsp)
movapd %xmm0, 0x20(%rsp)
callq 0x7300
mulsd 0x734f(%rip), %xmm0     # 0x5a968
divsd 0x20(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5362f
sqrtsd %xmm0, %xmm0
jmp 0x53634
callq 0x72f0
movsd 0x8(%rsp), %xmm2
movsd (%rsp), %xmm3
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movapd 0x10(%rsp), %xmm1
mulpd %xmm0, %xmm1
movapd %xmm1, %xmm0
movhpd %xmm0, 0x10(%rbx)
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
movapd %xmm2, %xmm0
addq $0x30, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Geometric0(double)
int64_t RandomGenerator::Geometric0(double x)
	{
		double p = 1 / x;
		int64_t i = 0;
		while (FloatRandom() < p) {
			++i;
		}

		return i;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movsd 0x458d(%rip), %xmm1     # 0x57c10
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq $-0x1, %r14
movq (%rbx), %rdi
callq 0x51ca8
incq %r14
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x53693
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Hyper_geometric(double, double)
double RandomGenerator::Hyper_geometric(double x, double s)
	{
		double sqrtz = s / x;
		double z = sqrtz * sqrtz;
		double p = 0.5 * (1 - sqrt((z - 1) / (z + 1)));
		double d = (FloatRandom() > p) ? (1 - p) : p;

		return -x * log(FloatRandom()) / (2 * d);
	}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movapd %xmm0, 0x10(%rsp)
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm1
movsd 0x724a(%rip), %xmm0     # 0x5a958
addsd %xmm1, %xmm0
addsd 0x44f6(%rip), %xmm1     # 0x57c10
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5372e
sqrtsd %xmm0, %xmm0
jmp 0x53733
callq 0x72f0
movsd 0x44d5(%rip), %xmm1     # 0x57c10
subsd %xmm0, %xmm1
mulsd 0x5b49(%rip), %xmm1     # 0x59290
movapd %xmm1, (%rsp)
movq (%rbx), %rdi
callq 0x51ca8
movsd 0x44b4(%rip), %xmm2     # 0x57c10
movapd (%rsp), %xmm3
subsd %xmm3, %xmm2
movapd %xmm3, %xmm1
cmpltsd %xmm0, %xmm1
andpd %xmm1, %xmm2
andnpd %xmm3, %xmm1
orpd %xmm2, %xmm1
movapd %xmm1, (%rsp)
movapd 0x10(%rsp), %xmm0
xorpd 0x5ae3(%rip), %xmm0     # 0x59270
movapd %xmm0, 0x10(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
callq 0x7300
mulsd 0x10(%rsp), %xmm0
movapd (%rsp), %xmm1
addsd %xmm1, %xmm1
divsd %xmm1, %xmm0
addq $0x20, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Binomial(long, double)
int64_t RandomGenerator::Binomial(int64_t n, double u)
	{
		int64_t k = 0;
		for (long i = 0; i < n; i++) {
			if (FloatRandom() < u) {
				++k;
			}
		}

		return k;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
jle 0x537f7
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movsd %xmm0, 0x8(%rsp)
movq (%r15), %rdi
callq 0x51ca8
xorl %eax, %eax
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
seta %al
addq %rax, %rbx
decq %r14
jne 0x537d6
jmp 0x537f9
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Poisson(double)
int64_t RandomGenerator::Poisson(double x)
	{
		double b = exp(-x);
		int64_t k = 0;
		double p = 1;
		while (p >= b) {
			++k;
			p *= FloatRandom();
		}

		return k - 1;
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorpd 0x5a58(%rip), %xmm0     # 0x59270
callq 0x7640
movq $-0x1, %r14
movsd 0x43e4(%rip), %xmm1     # 0x57c10
ucomisd %xmm0, %xmm1
jb 0x5385f
movsd %xmm0, 0x8(%rsp)
movsd %xmm1, 0x10(%rsp)
movq (%rbx), %rdi
callq 0x51ca8
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
incq %r14
ucomisd %xmm0, %xmm1
jae 0x53838
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/RandomGenerator.cpp
// Function: Utils::RandomGenerator::Triangular(double, double, double)
double RandomGenerator::Triangular(double min, double middle, double max)
	{
		double y = FloatRandom();
		if (y <= (middle - min) / (max - min)) {
			return min + sqrt(y*max*middle - y*max*min - y*min*middle + y*min*min);
		} else {
			return max - sqrt(max*max + y*max*middle - y*max*max - y*min*middle + y*max*min - max*min - max*middle + min*middle);
		}
	}

// Assembly:
subq $0x18, %rsp
movsd %xmm2, (%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq (%rdi), %rdi
callq 0x51ca8
movsd 0x10(%rsp), %xmm6
movsd (%rsp), %xmm5
movsd 0x8(%rsp), %xmm4
movapd %xmm6, %xmm1
subsd %xmm4, %xmm1
movapd %xmm5, %xmm2
subsd %xmm4, %xmm2
divsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
movapd %xmm0, %xmm1
mulsd %xmm5, %xmm1
movapd %xmm1, %xmm2
jae 0x539e9
mulsd %xmm6, %xmm2
movapd %xmm5, %xmm3
mulsd %xmm5, %xmm3
addsd %xmm2, %xmm3
movapd %xmm1, %xmm2
mulsd %xmm5, %xmm2
subsd %xmm2, %xmm3
mulsd %xmm4, %xmm0
mulsd %xmm6, %xmm0
subsd %xmm0, %xmm3
mulsd %xmm4, %xmm1
addsd %xmm3, %xmm1
movapd %xmm5, %xmm0
mulsd %xmm4, %xmm0
subsd %xmm0, %xmm1
movapd %xmm5, %xmm0
mulsd %xmm6, %xmm0
subsd %xmm0, %xmm1
mulsd %xmm6, %xmm4
addsd %xmm1, %xmm4
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm4
jb 0x53a1c
xorps %xmm0, %xmm0
sqrtsd %xmm4, %xmm0
jmp 0x53a2a
mulsd %xmm4, %xmm2
mulsd %xmm6, %xmm1
subsd %xmm2, %xmm1
mulsd %xmm4, %xmm0
mulsd %xmm0, %xmm6
subsd %xmm6, %xmm1
mulsd %xmm4, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x53a30
xorps %xmm5, %xmm5
sqrtsd %xmm0, %xmm5
jmp 0x53a3f
movapd %xmm4, %xmm0
callq 0x72f0
movsd (%rsp), %xmm5
subsd %xmm0, %xmm5
jmp 0x53a43
callq 0x72f0
movsd 0x8(%rsp), %xmm4
movapd %xmm0, %xmm5
addsd %xmm4, %xmm5
movapd %xmm5, %xmm0
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool XmlWriter::Open(const std::string strFile) {

		outFile.open(strFile);
		if (outFile.is_open()) {
			outFile << "<?xml version=\"1.0\" encoding=\"us-ascii\"?>\n";
			indent = 0;
			openTags = 0;
			openElements = 0;

			return true;
		}

		return false;
	}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %edx
callq 0x71b0
leaq 0x70(%rbx), %rdi
callq 0x70e0
movl %eax, %ebp
testb %al, %al
je 0x53ad2
leaq 0x6f21(%rip), %rsi      # 0x5a9d1
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x7400
movq $0x0, 0x200(%rbx)
movl $0x0, 0x208(%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_open_tag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void XmlWriter::Write_open_tag(const std::string openTag) {
		if (outFile.is_open()) {
			for (int i = 0; i < indent; i++) {
				outFile << "\t";
			}
			tempOpenTag.resize(openTags + 1);
			outFile << "<" << openTag << ">\n";
			tempOpenTag[openTags] = openTag;
			indent += 1;
			openTags += 1;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x53bcc
cmpl $0x0, 0x200(%rbx)
jle 0x53b42
xorl %ebp, %ebp
leaq 0x3eb2(%rip), %r15      # 0x579da
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7400
incl %ebp
cmpl 0x200(%rbx), %ebp
jl 0x53b28
leaq 0x210(%rbx), %rdi
movslq 0x204(%rbx), %rsi
incq %rsi
callq 0x543fc
leaq 0x1a5d(%rip), %rsi      # 0x555bc
movl $0x1, %edx
movq %rbx, %rdi
callq 0x7400
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x7400
leaq 0x6eb5(%rip), %rsi      # 0x5aa37
movl $0x2, %edx
movq %rax, %rdi
callq 0x7400
movslq 0x204(%rbx), %rdi
shlq $0x5, %rdi
addq 0x210(%rbx), %rdi
movq %r14, %rsi
callq 0x7220
movq 0x200(%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x200(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x1b41d(%rip), %rbx     # 0x6eff0
leaq 0x29ce(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x6e13(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1b3d0(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
nop
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_close_tag()
void XmlWriter::Write_close_tag() {
		if (outFile.is_open()) {
			indent -= 1;
			for (int i = 0; i < indent; i++) {
				outFile << "\t";
			}
			outFile << "</" << tempOpenTag[openTags - 1] << ">\n";
			tempOpenTag.resize(openTags - 1);
			openTags -= 1;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x53f59
movl 0x200(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x200(%rbx)
cmpl $0x2, %eax
jl 0x53ee9
xorl %ebp, %ebp
leaq 0x3b0b(%rip), %r14      # 0x579da
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7400
incl %ebp
cmpl 0x200(%rbx), %ebp
jl 0x53ecf
leaq 0x6b43(%rip), %rsi      # 0x5aa33
movl $0x2, %edx
movq %rbx, %rdi
callq 0x7400
leaq 0x210(%rbx), %r14
movslq 0x204(%rbx), %rax
movq 0x210(%rbx), %rcx
shlq $0x5, %rax
movq -0x20(%rcx,%rax), %rsi
movq -0x18(%rcx,%rax), %rdx
movq %rbx, %rdi
callq 0x7400
leaq 0x6b08(%rip), %rsi      # 0x5aa37
movl $0x2, %edx
movq %rax, %rdi
callq 0x7400
movslq 0x204(%rbx), %rsi
decq %rsi
movq %r14, %rdi
callq 0x543fc
decl 0x204(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq 0x1b090(%rip), %rbx     # 0x6eff0
leaq 0x2641(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x6a86(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1b043(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_start_element_tag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void XmlWriter::Write_start_element_tag(const std::string elementTag) {
		if (outFile.is_open()) {
			for (int i = 0; i < indent; i++) {
				outFile << "\t";
			}
			tempElementTag.resize(openElements + 1);
			tempElementTag[openElements] = elementTag;
			openElements += 1;
			outFile << "<" << elementTag;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x54049
cmpl $0x0, 0x200(%rbx)
jle 0x53fe6
xorl %ebp, %ebp
leaq 0x3a0e(%rip), %r15      # 0x579da
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7400
incl %ebp
cmpl 0x200(%rbx), %ebp
jl 0x53fcc
leaq 0x228(%rbx), %rdi
movslq 0x208(%rbx), %rsi
incq %rsi
callq 0x543fc
movslq 0x208(%rbx), %rdi
shlq $0x5, %rdi
addq 0x228(%rbx), %rdi
movq %r14, %rsi
callq 0x7220
incl 0x208(%rbx)
leaq 0x1599(%rip), %rsi      # 0x555bc
movl $0x1, %edx
movq %rbx, %rdi
callq 0x7400
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7400
movq 0x1afa0(%rip), %rbx     # 0x6eff0
leaq 0x2551(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x6996(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1af53(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_end_element_tag()
void XmlWriter::Write_end_element_tag()
	{
		if (outFile.is_open()) {
			outFile << "/>\n";
			tempElementTag.resize(openElements - 1);
			openElements -= 1;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x540cf
leaq 0x6992(%rip), %rsi      # 0x5aa36
movl $0x3, %edx
movq %rbx, %rdi
callq 0x7400
leaq 0x228(%rbx), %rdi
movslq 0x208(%rbx), %rsi
decq %rsi
callq 0x543fc
decl 0x208(%rbx)
popq %rbx
retq
movq 0x1af1a(%rip), %rbx     # 0x6eff0
leaq 0x24cb(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x6910(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1aecd(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_attribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void XmlWriter::Write_attribute(const std::string outAttribute)
	{
		if (outFile.is_open()) {
			outFile << " " << outAttribute;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x54153
leaq 0x3cbe(%rip), %rsi      # 0x57dee
movl $0x1, %edx
movq %rbx, %rdi
callq 0x7400
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7400
movq 0x1ae96(%rip), %rbx     # 0x6eff0
leaq 0x2447(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x688c(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1ae49(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_attribute_string_inline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void XmlWriter::Write_attribute_string_inline(const std::string attribute_name, const std::string attribute_value)
	{
		if (outFile.is_open()) {
			outFile << " ";
			outFile << attribute_name + "=\"" + attribute_value + "\"";
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x542f0
leaq 0x3c2c(%rip), %rsi      # 0x57dee
movl $0x1, %edx
movq %rbx, %rdi
callq 0x7400
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xaf32
leaq 0x6843(%rip), %rsi      # 0x5aa3a
movq %r15, %rdi
callq 0x7690
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x7130
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x54237
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x5423e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x13fa(%rip), %rsi      # 0x5565b
callq 0x7690
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x5428d
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x54297
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x7400
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x542c6
callq 0x7370
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x542d5
callq 0x7370
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x542e4
callq 0x7370
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1acf9(%rip), %rbx     # 0x6eff0
leaq 0x22aa(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x66ef(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1acac(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x5434a
callq 0x7370
jmp 0x5434a
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x54360
callq 0x7370
jmp 0x54360
jmp 0x5435d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5436f
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop
// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/utils/XMLWriter.cpp
// Function: Utils::XmlWriter::Write_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void XmlWriter::Write_string(const std::string outString)
	{
		if (outFile.is_open()) {
			outFile << ">" << outString;
		} else {
			PRINT_ERROR("The XML output file is closed. Unable to write to file");
		}
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x70e0
testb %al, %al
je 0x543b9
leaq 0x125e(%rip), %rsi      # 0x555f4
movl $0x1, %edx
movq %rbx, %rdi
callq 0x7400
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7400
movq 0x1ac30(%rip), %rbx     # 0x6eff0
leaq 0x21e1(%rip), %rsi      # 0x565a8
movq %rbx, %rdi
callq 0x7390
leaq 0x6626(%rip), %rsi      # 0x5a9fc
movq %rbx, %rdi
callq 0x7390
movq %rax, %rdi
callq 0x71c0
movq 0x1abe3(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/exercises/ex16_05.cc
// Function: main
int main(int argc, char const *argv[])
{
	std::array<std::string, 3> array= {"HELLO", "CPLUSPLUS", "PRIMER"};
	std::string s[] = {"hello", "cplusplus", "primer"};
	char c[] = { 'a', 'b', 'c', 'd' };
	int  i[] = { 1 };

	print(i);
	print(c);
	print(s);
	print(array);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
leaq -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd84(%rip), %rsi       # 0x2004
leaq 0xd82(%rip), %rdx       # 0x2009
leaq -0xf0(%rbp), %r14
movq %r14, %rdi
callq 0x161a
leaq -0xd0(%rbp), %r15
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd5b(%rip), %rsi       # 0x200a
leaq 0xd5d(%rip), %rdx       # 0x2013
movq %r15, %rdi
callq 0x161a
leaq -0xb0(%rbp), %r15
leaq -0xa0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xd3c(%rip), %rsi       # 0x2014
leaq 0xd3b(%rip), %rdx       # 0x201a
movq %r15, %rdi
callq 0x161a
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd25(%rip), %rsi       # 0x201b
leaq 0xd23(%rip), %rdx       # 0x2020
leaq -0x90(%rbp), %r14
movq %r14, %rdi
callq 0x161a
leaq -0x70(%rbp), %r15
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd02(%rip), %rsi       # 0x2021
leaq 0xd04(%rip), %rdx       # 0x202a
movq %r15, %rdi
callq 0x161a
leaq -0x50(%rbp), %r15
leaq -0x40(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xcea(%rip), %rsi       # 0x202b
leaq 0xce9(%rip), %rdx       # 0x2031
movq %r15, %rdi
callq 0x161a
movl $0x64636261, -0x24(%rbp) # imm = 0x64636261
leaq -0x28(%rbp), %rdi
movl $0x1, (%rdi)
callq 0x148c
leaq -0x24(%rbp), %rdi
callq 0x14d0
leaq -0x90(%rbp), %rdi
callq 0x1548
leaq -0xf0(%rbp), %rdi
callq 0x15b1
movq $-0x60, %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x13a2
movq (%rbx), %rsi
incq %rsi
callq 0x1090
addq $-0x20, %rbx
addq $0x20, %r14
jne 0x138e
movq $-0x60, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x13c9
movq (%r12), %rsi
incq %rsi
callq 0x1090
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x13b3
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13e7
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1402
movq (%r15), %rsi
incq %rsi
callq 0x1090
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x13ee
jmp 0x145b
movq %rax, %rbx
jmp 0x145b
jmp 0x141b
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1436
movq (%r15), %rsi
incq %rsi
callq 0x1090
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x1422
jmp 0x1484
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x1100
xorl %r14d, %r14d
movq -0xb0(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x147a
movq (%rax), %rsi
incq %rsi
callq 0x1090
addq $-0x20, %r14
cmpq $-0x60, %r14
jne 0x145e
movq %rbx, %rdi
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O3/vssense[P]Compiler/src/middle-end/middle-end_main.cpp
// Function: main
int main()
{
    Tree* tree = GetTreeFromFile(tree_tmp_file);
    Optimize(tree);
    WriteToFile(tree, tree_tmp_file);

    DestructTree(tree);
    DeleteTree(tree);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x6e37(%rip), %rdi      # 0x90e0
callq 0x249a
movq %rax, %rbx
movq %rax, %rdi
callq 0x2710
movq 0x6e20(%rip), %rsi      # 0x90e0
movq %rbx, %rdi
callq 0x22e4
movq %rbx, %rdi
callq 0x3aae
movq %rbx, %rdi
callq 0x3b0d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/ksraj123[P]RAW12-to-bitmap-AVI/src/ImageLoader.cpp
// Function: ImageLoader::LoadImage()
void ImageLoader::LoadImage()
{
    _intputFile.open(_filePath, std::ios::binary);
    if(!_intputFile)
    {
        std::cerr << "Error: File cannot be opened\b\tExiting" << std::endl;
        exit(1);
    }
        _intputFile.read(fileData, INPUT_SIZE);
    for (int itrFileData = 0, itrCfa = 0; itrFileData < INPUT_SIZE, itrCfa < TOTAL_PIX; itrFileData += 3, itrCfa+=2)
    {
        cfa[itrCfa] = fileData[itrFileData];
        cfa[itrCfa + 1] = Sensel(fileData[itrFileData + 1], fileData[itrFileData + 2]);
    }
    _intputFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x28(%rdi), %rbx
leaq 0x8(%rdi), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x2140
movq 0x28(%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%r14,%rax)
jne 0x2e55
movq (%r14), %rsi
movl $0x1200000, %edx        # imm = 0x1200000
movq %rbx, %rdi
callq 0x21c0
movq $-0x2, %rax
xorl %ecx, %ecx
movq (%r14), %rdx
movb (%rdx,%rcx), %dl
movq 0x230(%r14), %rsi
movb %dl, 0x2(%rsi,%rax)
movq (%r14), %rdx
movb 0x1(%rdx,%rcx), %sil
movb 0x2(%rdx,%rcx), %dl
shrb $0x4, %dl
shlb $0x4, %sil
orb %dl, %sil
movq 0x230(%r14), %rdx
movb %sil, 0x3(%rdx,%rax)
addq $0x3, %rcx
addq $0x2, %rax
cmpq $0xbffffe, %rax         # imm = 0xBFFFFE
jb 0x2e06
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2070
movq 0x4194(%rip), %rdi      # 0x6ff0
leaq 0x2417(%rip), %rsi      # 0x527a
callq 0x2170
movq %rax, %rdi
callq 0x20d0
movl $0x1, %edi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/ksraj123[P]RAW12-to-bitmap-AVI/src/OutputWriter.cpp
// Function: OutputWriter::Print5by5tile(unsigned char*)
void OutputWriter::Print5by5tile(uint8_t* array)
{
    for (int row = 0; row < 5; ++row)
    {
        for (int index = 0; index < 5; ++index)
        {
            std::cout << (int)array[row * IMAGE_WIDTH + index] << " ";
        }
        std::cout << std::endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0x409d(%rip), %r14      # 0x6fd0
leaq 0x23de(%rip), %r15      # 0x5318
movq $-0x5, %r13
movzbl 0x5(%rbx,%r13), %esi
movq %r14, %rdi
callq 0x2230
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x21a0
incq %r13
jne 0x2f41
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2100
incq %r12
addq $0x1000, %rbx           # imm = 0x1000
cmpq $0x5, %r12
jne 0x2f3a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/ksraj123[P]RAW12-to-bitmap-AVI/src/OutputWriter.cpp
// Function: OutputWriter::ConvertToPPM(unsigned char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
uint8_t* OutputWriter::ConvertToPPM(uint8_t* channel, std::string chanelName)
{
    uint8_t* ppmBin = new uint8_t[3 * TOTAL_PIX]{0};
    for (int itrPpmBin = 0, itrChnl = 0; itrPpmBin < 3 * TOTAL_PIX, 
                            itrChnl < TOTAL_PIX; itrPpmBin += 3, ++itrChnl)
    {
        switch (chanelName[0])
        {
            case 'r':
                ppmBin[itrPpmBin] = channel[itrChnl];
                break;
            case 'g':
                ppmBin[itrPpmBin + 1] = channel[itrChnl];
                break;
            case 'b':
                ppmBin[itrPpmBin + 2] = channel[itrChnl];
                break;
        }      
    }
    return ppmBin;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movl $0x2400000, %edi        # imm = 0x2400000
callq 0x2030
movq %rax, %r14
leaq 0x1(%rax), %r12
xorl %r13d, %r13d
movl $0x2400000, %edx        # imm = 0x2400000
movq %rax, %rdi
xorl %esi, %esi
callq 0x20f0
movq (%r15), %rax
movzbl (%rax), %eax
movq %r14, %rcx
addq $0x2, %rcx
cmpl $0x62, %eax
je 0x340f
movq %r14, %rdx
cmpl $0x72, %eax
je 0x3412
movq %r12, %rdx
cmpl $0x67, %eax
je 0x3412
jmp 0x3419
movq %rcx, %rdx
movb (%rbx), %sil
movb %sil, (%rdx,%r13)
addq $0x3, %r13
incq %rbx
cmpq $0x2400000, %r13        # imm = 0x2400000
jne 0x33f8
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/ksraj123[P]RAW12-to-bitmap-AVI/src/OutputWriter.cpp
// Function: Chunk::WriteToFile(std::basic_ofstream<char, std::char_traits<char>>*)
void Chunk::WriteToFile(std::ofstream* outputAVI)
{
    outputAVI->write(reinterpret_cast<const char*>(_fourCC), 4);
    outputAVI->write(reinterpret_cast<const char*>(&_size), 4);
    if (_avi == nullptr)
    {
        _size = 0;
    }
    outputAVI->write(reinterpret_cast<const char*>(_avi), _size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x21d0
leaq 0x4(%r15), %r14
movl $0x4, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21d0
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x36f0
movl (%r14), %edx
jmp 0x36f9
movl $0x0, (%r14)
xorl %edx, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/ksraj123[P]RAW12-to-bitmap-AVI/src/ImageProcessor.cpp
// Function: ImageProcessor::Blue()
void ImageProcessor::Blue()
{
    int row;
    for (int itrChnl = 0; itrChnl < TOTAL_PIX; itrChnl += 2)
    {
        row = itrChnl / IMAGE_WIDTH;
        if (row % 2 == 0)
        {
            blueChannel[itrChnl - 1] = (blueChannel[itrChnl - 1 - IMAGE_WIDTH] 
                                 +  blueChannel[itrChnl - 1 + IMAGE_WIDTH]) / 2;
            blueChannel[itrChnl + 1] = (blueChannel[itrChnl+1-IMAGE_WIDTH] 
                                 +  blueChannel[itrChnl+1+IMAGE_WIDTH]) / 2;
        }
        blueChannel[itrChnl] = (blueChannel[itrChnl - 1] + blueChannel[itrChnl + 1]) / 2;
    }
    std::fill(blueChannel, blueChannel+IMAGE_WIDTH, 0); // first row
    std::fill(blueChannel + TOTAL_PIX - IMAGE_WIDTH, blueChannel + TOTAL_PIX, 0); //last row
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %eax, %eax
btl $0xc, %eax
jb 0x416a
movq 0x8(%rbx), %rcx
movzbl -0x1001(%rcx,%rax), %edx
movzbl 0xfff(%rcx,%rax), %esi
addl %edx, %esi
shrl %esi
movb %sil, -0x1(%rcx,%rax)
movq 0x8(%rbx), %rdx
movq %rax, %rcx
orq $0x1, %rcx
movzbl -0xfff(%rdx,%rax), %esi
movzbl 0x1001(%rdx,%rax), %edi
addl %esi, %edi
shrl %edi
movb %dil, 0x1(%rdx,%rax)
jmp 0x416e
leaq 0x1(%rax), %rcx
movq 0x8(%rbx), %rdx
movzbl -0x1(%rdx,%rax), %esi
movzbl (%rdx,%rcx), %ecx
addl %esi, %ecx
shrl %ecx
movb %cl, (%rdx,%rax)
leaq 0x2(%rax), %rcx
cmpq $0xbffffe, %rax         # imm = 0xBFFFFE
movq %rcx, %rax
jb 0x4121
movq 0x8(%rbx), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x20f0
movl $0xbff000, %edi         # imm = 0xBFF000
addq 0x8(%rbx), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20f0
// File: /workspace/github_cpp_makefile_star2_O3/razimantv[P]DancingLinks/spangram/Trie.cpp
// Function: TrieNode::insert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void TrieNode::insert(const std::string& word) {
  TrieNode* node = this;

  // Iterate through trie nodes for each character in the word
  for (char c : word) {
    // If the child node doesn't exist, create it
    if (!node->children[c - 'a']) node->children[c - 'a'] = new TrieNode();
    node = node->children[c - 'a'];
  }
  node->end = true; // Mark the end of the word
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x4ba4
movq (%rsi), %r12
xorl %r13d, %r13d
movsbq (%r12,%r13), %rbp
movq -0x308(%rbx,%rbp,8), %r14
testq %r14, %r14
jne 0x4b97
movl $0xd8, %edi
callq 0x2150
movq %rax, %r14
movl $0xd1, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x20d0
movq %r14, -0x308(%rbx,%rbp,8)
incq %r13
movq %r14, %rbx
cmpq %r13, %r15
jne 0x4b61
jmp 0x4ba7
movq %rbx, %r14
movb $0x1, 0xd0(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/test/demos/convert/proc_U.c
// Function: main
int main(int argc, char **argv)
{
  TRACE_F("init");

  scdc_init(SCDC_INIT_DEFAULT);

#if USE_COMPS
  compS_init();
#endif

#if USE_COMPC
  compC_init();
#endif

#if USE_COMPU
  compU_run();
#elif defined(USE_COMPS) || defined(USE_COMPC)
  TRACE_F("press ENTER to exit");
  getchar();
#endif

#if USE_COMPS
  compS_release();
#endif

#if USE_COMPC
  compC_release();
#endif

  TRACE_F("release");

  scdc_release();

  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x4ebf1(%rip), %rbx     # 0x5b048
leaq 0x4eba6(%rip), %r14     # 0x5b004
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0xb080
leaq 0x4eb99(%rip), %rdi     # 0x5b00b
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb740
leaq 0x500c3(%rip), %rdi     # 0x5c54d
xorl %eax, %eax
callq 0xc9bd
xorl %eax, %eax
callq 0xc818
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0xb080
leaq 0x4eb64(%rip), %rdi     # 0x5b010
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb740
callq 0xcabe
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/test/demos/convert/compU.c
// Function: compU_run
void compU_run()
{
  const char *file_in = "porsche.stl";
  const char *file_out = "porsche.msh";
  const char *compS_uri = "scdc:/compS/convert";
  const char *compC_uri = "scdc:/compC";

  char s[256];

  scdc_dataset_input_t _inp, *inp = &_inp;
  scdc_dataset_output_t _outp, *outp = &_outp;

  /* step U1: put to compS */
  sprintf(s, "%s put %s", compS_uri, file_in);
  TRACE_F("cmd: '%s'", s);
  inp = scdc_dataset_input_create(inp, "file", file_in);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, inp, NULL);
  scdc_dataset_input_destroy(inp);

  /* step U2: convert on compC */
  sprintf(s, "%s convert %s/%s %s/%s", compC_uri, compS_uri, file_in, compS_uri, file_out);
  TRACE_F("cmd: '%s'", s);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, NULL, NULL);

  /* step U3: get from compS */
  sprintf(s, "%s get %s", compS_uri, file_out);
  TRACE_F("cmd: '%s'", s);
  outp = scdc_dataset_output_create(outp, "file", file_out);
  scdc_dataset_cmd(SCDC_DATASET_NULL, s, NULL, outp);
  scdc_dataset_output_destroy(outp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
leaq 0x4e858(%rip), %rsi     # 0x5b088
leaq 0x4e8c4(%rip), %r14     # 0x5b0fb
leaq 0x4e8a5(%rip), %r15     # 0x5b0e3
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xb0d0
leaq 0x4e7eb(%rip), %rdi     # 0x5b048
leaq 0x4e8b7(%rip), %r12     # 0x5b11b
movq %r12, %rsi
xorl %eax, %eax
callq 0xb080
leaq 0x4e7d6(%rip), %r13     # 0x5b04b
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb740
leaq 0x4fe0b(%rip), %rsi     # 0x5c69e
leaq 0x68(%rsp), %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1ff03
movq %rax, %rbp
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xe3e3
movq %rbp, %rdi
callq 0x1fff3
leaq 0x4e82a(%rip), %rbp     # 0x5b0ef
movq %rbp, (%rsp)
leaq 0x4e853(%rip), %rsi     # 0x5b123
leaq 0x4e838(%rip), %rdx     # 0x5b10f
movq %rbx, %rdi
movq %r14, %rcx
movq %r15, %r8
movq %r14, %r9
xorl %eax, %eax
callq 0xb0d0
leaq 0x4e757(%rip), %r15     # 0x5b048
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xb080
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb740
xorl %edi, %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xe3e3
leaq 0x4e715(%rip), %rsi     # 0x5b041
movq %rbx, %rdi
movq %r14, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xb0d0
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xb080
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb740
leaq 0x10(%rsp), %rdi
leaq 0x4fd32(%rip), %rsi     # 0x5c69e
movq %rbp, %rdx
xorl %eax, %eax
callq 0x20d4b
movq %rax, %r14
xorl %edi, %edi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe3e3
movq %r14, %rdi
callq 0x20e3b
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/GameBoy.cpp
// Function: GameBoy::initParts()
void GameBoy::initParts() {
    cpu = new CPU();
    memory = new Memory();
    lcd = new LCD();
    timer = new Timer();
    ints = new Interrupts();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x60, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, %rdi
callq 0x2dc0
movq %r14, (%rbx)
movl $0x30, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, %rdi
callq 0x55f0
movq %r14, 0x8(%rbx)
movl $0x18, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, %rdi
callq 0x5230
movq %r14, 0x10(%rbx)
movl $0x18, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, %rdi
callq 0x5948
movq %r14, 0x18(%rbx)
movl $0x28, %edi
callq 0x21f0
movq %rax, %r14
movq %rax, %rdi
callq 0x5a14
movq %r14, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movl $0x28, %esi
jmp 0x267f
jmp 0x2663
movq %rax, %rbx
movl $0x18, %esi
jmp 0x267f
movq %rax, %rbx
movl $0x30, %esi
jmp 0x267f
movq %rax, %rbx
movl $0x60, %esi
movq %r14, %rdi
callq 0x2200
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/GameBoy.cpp
// Function: GameBoy::getInstance()
GameBoy* GameBoy::getInstance() {
    if (GameBoy::gb == nullptr) {
        gb = new GameBoy();
        gb->initParts();
    }
    return GameBoy::gb;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x7a94(%rip), %rax      # 0xa1c8
testq %rax, %rax
jne 0x2764
movl $0x60, %edi
callq 0x21f0
movq %rax, %rbx
movq %rax, %rdi
callq 0x2690
movq %rbx, 0x7a73(%rip)      # 0xa1c8
movq %rbx, %rdi
callq 0x25cc
movq 0x7a64(%rip), %rax      # 0xa1c8
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movl $0x60, %esi
movq %rbx, %rdi
callq 0x2200
movq %r14, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/GameBoy.cpp
// Function: GameBoy::DrawPixel(int, int, int)
void GameBoy::DrawPixel(int x, int y, int color)
{
    for (int i = 0; i < scale; i++) {
        for (int j = 0; j < scale; j++) {
            int pxl = (y * scale + i) * 160 * scale + scale * x + j;
            pixels[pxl] = colors->at(color);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0x40(%rdi), %r9d
testl %r9d, %r9d
jle 0x27f5
movq 0x50(%rdi), %r8
movslq %ecx, %rax
xorl %r10d, %r10d
testl %r9d, %r9d
jle 0x27ed
movq (%r8), %r11
movq 0x8(%r8), %rcx
subq %r11, %rcx
sarq $0x2, %rcx
cmpq %rax, %rcx
jbe 0x27fa
movq 0x38(%rdi), %rcx
movl (%r11,%rax,4), %r11d
xorl %ebx, %ebx
movl %r9d, %r14d
imull %edx, %r14d
addl %r10d, %r14d
leal (%r14,%r14,4), %r14d
shll $0x5, %r14d
addl %esi, %r14d
imull %r9d, %r14d
movslq %r14d, %r9
addq %rbx, %r9
movl %r11d, (%rcx,%r9,4)
movl 0x40(%rdi), %r9d
incq %rbx
cmpl %r9d, %ebx
jl 0x27be
incl %r10d
cmpl %r9d, %r10d
jl 0x279c
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3880(%rip), %rdi      # 0x6081
movq %rax, %rsi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/GameBoy.cpp
// Function: GameBoy::KeyDown(SDL_Event)
void GameBoy::KeyDown(SDL_Event e)
{
    byte key = 0;
    
    if (((RAM[0xFF00] >> 4) & 3) == 3 | ((RAM[0xFF00] >> 4) & 3) == 0)
        return;
    
    if (RAM[0xFF00] >> 4 == 0b1101)
        switch (e.key.keysym.sym)
        {
            case SDL_SCANCODE_1:
                key = 0b111;
                break;
            case SDL_SCANCODE_2:
                key = 0b1011;
                break;
            case SDL_SCANCODE_K:
                key = 0b1101;
                break;
            case SDL_SCANCODE_L:
                key = 0b1110;
                break;
            default:
                return;
        }
    else if (RAM[0xFF00] >> 4 == 0b1110)
        switch (e.key.keysym.sym)
        {
            case SDL_SCANCODE_W:
                key = 0b1011;
                break;
            case SDL_SCANCODE_A:
                key = 0b1101;
                break;
            case SDL_SCANCODE_S:
                key = 0b111;
                break;
            case SDL_SCANCODE_D:
                key = 0b1110;
                break;
            default:
                return;
        }
    
    RAM[0xFF0F] |= 0b10000;
    RAM[0xFF00] &= 0xF0;
    RAM[0xFF00] |= key;
    Stop = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x48(%rdi), %rax
movzbl 0xff00(%rax), %ecx
shrl $0x4, %ecx
movl %ecx, %edx
andl $0x3, %edx
je 0x2aeb
cmpl $0x3, %edx
je 0x2aeb
leaq 0x10(%rbp), %rdx
cmpb $0xe, %cl
je 0x2a8f
movzbl %cl, %ecx
cmpl $0xd, %ecx
jne 0x2aa5
movl 0x14(%rdx), %ecx
cmpl $0x1d, %ecx
jg 0x2aa9
cmpl $0xe, %ecx
je 0x2ac5
cmpl $0xf, %ecx
je 0x2aa1
jmp 0x2aeb
movl 0x14(%rdx), %edx
cmpl $0x15, %edx
jg 0x2ab7
cmpl $0x4, %edx
je 0x2ac5
cmpl $0x7, %edx
jne 0x2aeb
movb $0xe, %cl
jmp 0x2acb
xorl %ecx, %ecx
jmp 0x2acb
cmpl $0x1e, %ecx
je 0x2ac9
cmpl $0x1f, %ecx
jne 0x2aeb
movb $0xb, %cl
jmp 0x2acb
cmpl $0x16, %edx
je 0x2ac9
movb $0xb, %cl
cmpl $0x1a, %edx
je 0x2acb
jmp 0x2aeb
movb $0xd, %cl
jmp 0x2acb
movb $0x7, %cl
orb $0x10, 0xff0f(%rax)
movq 0x48(%rdi), %rax
andb $-0x10, 0xff00(%rax)
movq 0x48(%rdi), %rax
orb %cl, 0xff00(%rax)
movb $0x0, 0x5b(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/GameBoy.cpp
// Function: GameBoy::~GameBoy()
GameBoy::~GameBoy()
{
    delete cpu;
    delete memory;
    delete lcd;
    delete timer;
    delete ints;
    delete[] RAM;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movl $0x60, %esi
callq 0x2200
movq 0x8(%rbx), %rdi
movl $0x30, %esi
callq 0x2200
movq 0x10(%rbx), %rdi
movl $0x18, %esi
callq 0x2200
movq 0x18(%rbx), %rdi
movl $0x18, %esi
callq 0x2200
movq 0x20(%rbx), %rdi
movl $0x28, %esi
callq 0x2200
movq 0x48(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x2b6c
popq %rbx
popq %rbp
jmp 0x2260
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::ADDsbyteToSP()
ushort CPU::ADDsbyteToSP()
{
    Zero = false;
    Substract = false;
    tmp = gb->Read(PC);
    PC++;
    ushort newSP = SP;
    char* sb = (char*)&tmp;
    newSP += *sb;
    
    if (*sb < 0)
    {
        HalfCarry = (newSP & 0xF) <= (SP & 0xF);
        Carry = (newSP & 0xFF) <= (SP & 0xFF);
    }
    else
    {
        HalfCarry = (((SP & 0xF) + (tmp & 0xF)) & 0x10) == 0x10;
        Carry = (((SP & 0xFF) + (tmp & 0xFF)) & 0x100) == 0x100;
    }
    gb->SyncCycles(8);
    return newSP;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movw $0x0, 0x8(%rdi)
movq 0x58(%rdi), %rdi
movzwl 0x50(%rbx), %esi
callq 0x2bce
movb %al, 0x55(%rbx)
incw 0x50(%rbx)
movzwl 0x52(%rbx), %edx
movsbl %al, %esi
leal (%rdx,%rsi), %r14d
movzbl %dl, %ecx
testb %sil, %sil
js 0x49c7
andl $0xf, %edx
movzbl %al, %esi
andb $0xf, %al
movzbl %al, %eax
addl %edx, %eax
cmpl $0x10, %eax
setae %al
addl %esi, %ecx
cmpl $0x100, %ecx            # imm = 0x100
setae %cl
jmp 0x49e1
movzwl %r14w, %esi
movl %esi, %eax
andl $0xf, %eax
andl $0xf, %edx
cmpl %edx, %eax
setbe %al
movzbl %sil, %edx
cmpl %ecx, %edx
setbe %cl
movb %al, 0xa(%rbx)
movb %cl, 0xb(%rbx)
movq 0x58(%rbx), %rdi
movl $0x8, %esi
callq 0x2b70
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::DAA()
void CPU::DAA()
{
    byte bias = Carry ? 0x60 : 0;

    bias += HalfCarry ? 0x6 : 0;

    if (Substract)
        *A -= bias;
    else
    {
        if ((*A & 0xF) > 9)
            bias |= 6;
        if (*A > 0x99)
        {
            bias |= 0x60;
            Carry = true;
        }
        *A += bias;
    }

    HalfCarry = false;

    Zero = (*A) == 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpb $0x0, 0xa(%rdi)
movl $0x6, %edx
cmovel %eax, %edx
cmpb $0x0, 0xb(%rdi)
movl $0x60, %esi
cmovel %eax, %esi
orl %esi, %edx
movq 0x10(%rdi), %rax
movb (%rax), %cl
cmpb $0x1, 0x9(%rdi)
jne 0x4e58
subb %dl, %cl
jmp 0x4e83
movl %ecx, %r8d
andb $0xe, %r8b
orb $0x6, %sil
cmpb $0xa, %r8b
movzbl %dl, %r8d
movzbl %sil, %edx
cmovbl %r8d, %edx
cmpb $-0x66, %cl
jb 0x4e81
orb $0x60, %dl
movb $0x1, 0xb(%rdi)
movb (%rax), %cl
addb %dl, %cl
movb %cl, (%rax)
movb $0x0, 0xa(%rdi)
movq 0x10(%rdi), %rax
cmpb $0x0, (%rax)
sete 0x8(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::HALT()
void CPU::HALT()
{
    bool halt = gb->EnterHALTMode();
    if (!halt) {
        gb->Clock();
        PC--;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %rdi
callq 0x2c22
testb %al, %al
jne 0x4eeb
movq 0x58(%rbx), %rdi
callq 0x2c14
decw 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::STOP()
void CPU::STOP()
{
    if (gb->Read(PC) == 0x00)
    {
        gb->Stop = true;
        PC++;
        gb->SyncCycles(-4);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %rdi
movzwl 0x50(%rbx), %esi
callq 0x2bce
testb %al, %al
je 0x4f13
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x58(%rbx), %rdi
movb $0x1, 0x5b(%rdi)
incw 0x50(%rbx)
movl $0xfffffffc, %esi       # imm = 0xFFFFFFFC
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2b70
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::JP(bool)
void CPU::JP(bool flag)
{
    if (flag)
        PC = gb->ReadWord(PC);
    else
    {
        PC += 2;
        gb->SyncCycles(4);
    }
    gb->SyncCycles(4);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
je 0x501a
movq 0x58(%rbx), %rdi
movzwl 0x50(%rbx), %esi
callq 0x2bdc
movw %ax, 0x50(%rbx)
jmp 0x502d
addw $0x2, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movl $0x4, %esi
callq 0x2b70
movq 0x58(%rbx), %rdi
movl $0x4, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2b70
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::JR(bool)
void CPU::JR(bool flag)
{
    byte value;
    char* sb;
    if (flag)
    {
        value = gb->Read(PC);
        sb = (char*)&value;
        PC = (ushort)(PC + *sb);
    }
    PC++;
    gb->SyncCycles(4);
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
je 0x5065
movq 0x58(%rbx), %rdi
movzwl 0x50(%rbx), %esi
callq 0x2bce
movsbl %al, %eax
addw 0x50(%rbx), %ax
jmp 0x5069
movzwl 0x50(%rbx), %eax
incl %eax
movw %ax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movl $0x4, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2b70
nop
// File: /workspace/github_cpp_makefile_star2_O3/klyushinmisha[P]GBEmu/./src/CPU.cpp
// Function: CPU::CALL(bool)
void CPU::CALL(bool flag)
{
    if (flag)
    {
        SP -= 2;
        gb->WriteWord(SP, (ushort)(PC + 2));
        PC = gb->ReadWord(PC);
    }
    else
    {
        PC += 2;
        gb->SyncCycles(4);
    }
    gb->SyncCycles(4);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
je 0x50c7
movzwl 0x52(%rbx), %esi
addl $-0x2, %esi
movw %si, 0x52(%rbx)
movq 0x58(%rbx), %rdi
movl $0xffff, %eax           # imm = 0xFFFF
andl %eax, %esi
movl 0x50(%rbx), %edx
addl $0x2, %edx
andl %eax, %edx
callq 0x2bea
movq 0x58(%rbx), %rdi
movzwl 0x50(%rbx), %esi
callq 0x2bdc
movw %ax, 0x50(%rbx)
jmp 0x50da
addw $0x2, 0x50(%rbx)
movq 0x58(%rbx), %rdi
movl $0x4, %esi
callq 0x2b70
movq 0x58(%rbx), %rdi
movl $0x4, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2b70