LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: print_source_code_line(unsigned long)
void print_source_code_line(size_t n)
{
	log("%4zd ", n + 1);
	for (const char* p = src[n].c_str(); *p; ++p) {
		if (*p == '\t') log("    "); else log("%c", *p);
	}
	log("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1(%rdi), %rsi
leaq 0x1816d(%rip), %rdi     # 0x1c270
xorl %eax, %eax
callq 0x15504
movq 0x2015f(%rip), %rax     # 0x24270
shlq $0x5, %rbx
movq (%rax,%rbx), %r15
leaq 0x1815a(%rip), %rbx     # 0x1c27a
leaq 0x1814f(%rip), %r14     # 0x1c276
movzbl (%r15), %eax
cmpl $0x9, %eax
je 0x4143
testl %eax, %eax
je 0x4152
movsbl %al, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x15504
jmp 0x414d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15504
incq %r15
jmp 0x4127
leaq 0x191b9(%rip), %rdi     # 0x1d312
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15504
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: print_current(bool)
void print_current(bool with_source_code = true)
{
	if (with_source_code) {
		print_source_code_line(line_no - 1);
	}
	log("     ");
	for (const char* q = src[line_no - 1].c_str(); *q && q + token.size() != p; ++q) {
		if (*q == '\t') log("    "); else log(" ");
	}
	for (size_t i = 0; i < token.size(); ++i) {
		log("^");
	}
	log("--(token='%s',type='%s')\n", token.c_str(), token_type_text[type]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testl %edi, %edi
je 0x4187
movq 0x20111(%rip), %rdi     # 0x24290
decq %rdi
callq 0x40eb
leaq 0x180eb(%rip), %rdi     # 0x1c279
xorl %eax, %eax
callq 0x15504
movq 0x200f4(%rip), %rax     # 0x24290
movq 0x200cd(%rip), %rcx     # 0x24270
shlq $0x5, %rax
movq -0x20(%rcx,%rax), %rbx
movb (%rbx), %al
testb %al, %al
je 0x41ed
leaq 0x180c1(%rip), %r14     # 0x1c27a
leaq 0x180bd(%rip), %r15     # 0x1c27d
movq 0x200e1(%rip), %rcx     # 0x242a8
addq %rbx, %rcx
cmpq 0x200b7(%rip), %rcx     # 0x24288
je 0x41ed
cmpb $0x9, %al
movq %r15, %rdi
cmoveq %r14, %rdi
xorl %eax, %eax
callq 0x15504
movb 0x1(%rbx), %al
incq %rbx
testb %al, %al
jne 0x41c0
cmpq $0x0, 0x200b3(%rip)     # 0x242a8
je 0x4217
leaq 0x17fea(%rip), %rbx     # 0x1c1e8
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15504
incq %r14
cmpq 0x20093(%rip), %r14     # 0x242a8
jb 0x4201
movq 0x20082(%rip), %rsi     # 0x242a0
movl 0x20074(%rip), %eax     # 0x24298
leaq 0x1ffb5(%rip), %rcx     # 0x241e0
movq (%rcx,%rax,8), %rdx
leaq 0x18049(%rip), %rdi     # 0x1c27f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15504
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: add_symbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
void add_symbol(string name, bool is_code, size_t offset, size_t size, string type, string ret_type, int arg_count)
{
	log<3>("[DEBUG] add %s symbol: '%s', offset=%zd, size=%zd, type='%s', ret_type='%s', arg_count = %d\n",
			(is_code ? "code" : "data"), name.c_str(),
			offset, size, type.c_str(), ret_type.c_str(), arg_count);
	symbols[name] = make_tuple(is_code, offset, size, type, ret_type, arg_count);
	if (is_code) {
		code_symbol_dict.insert(make_pair(offset, name));
	} else {
		data_symbol_dict.insert(make_pair(offset, name));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r13
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %rcx
movq %rdx, -0x30(%rbp)
movl %esi, %ebx
movq %rdi, -0x38(%rbp)
leaq 0x10(%rbp), %rax
movl (%rax), %r10d
leaq 0x18062(%rip), %rax     # 0x1c2f6
leaq 0x18060(%rip), %rsi     # 0x1c2fb
testl %ebx, %ebx
cmovneq %rax, %rsi
movq (%rdi), %rdx
movq (%r8), %r9
leaq 0x17feb(%rip), %rdi     # 0x1c299
movq %r12, %r8
xorl %eax, %eax
pushq %r10
pushq (%r13)
callq 0x1559d
addq $0x10, %rsp
leaq -0x98(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %ebx, %r13d
leaq 0x10(%rbp), %rcx
callq 0x16620
movq %r12, 0x48(%r15)
movq -0x30(%rbp), %rbx
movq %rbx, 0x50(%r15)
movb %r13b, 0x58(%r15)
movq -0x38(%rbp), %r15
leaq 0x200a7(%rip), %rdi     # 0x243a0
movq %r15, %rsi
callq 0x1742a
leaq -0x98(%rbp), %rsi
movq %rax, %rdi
callq 0x1789c
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4329
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x80(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x4342
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x90(%rbp), %rdi
testb %r13b, %r13b
je 0x4379
movq %rbx, -0x8(%rdi)
movq %r14, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x16d2e
leaq 0x200a5(%rip), %rdi     # 0x24410
leaq -0x98(%rbp), %rsi
callq 0x178e4
jmp 0x43a2
movq %rbx, -0x8(%rdi)
movq %r14, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x16d2e
leaq 0x20042(%rip), %rdi     # 0x243d8
leaq -0x98(%rbp), %rsi
callq 0x178e4
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x43ba
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x31d0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x43cb
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x43ff
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x43ff
movq %rax, %rdi
callq 0x15f09
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x15636
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: add_const_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<int, std::allocator<int>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
size_t add_const_string(string name, vector<int> val, string type)
{
	size_t offset = data_sec.size();
	add_symbol(name, false, offset, val.size(), type, "", 0);
	data_sec.insert(data_sec.end(), val.begin(), val.end());
	return offset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq 0x1ff0b(%rip), %rbx     # 0x24330
subq 0x1fefc(%rip), %rbx     # 0x24328
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x16d2e
movq 0x8(%r14), %r15
subq (%r14), %r15
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x16d2e
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x19003(%rip), %rdx     # 0x1d481
leaq -0x68(%rbp), %rdi
movq %rdx, %rsi
callq 0x16dc8
sarq $0x2, %rbx
sarq $0x2, %r15
movl $0x0, (%rsp)
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %r8
leaq -0x68(%rbp), %r9
xorl %esi, %esi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x425f
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x44ca
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x44e2
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x44fb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq 0x1fe2e(%rip), %rsi     # 0x24330
leaq 0x1fe1f(%rip), %rdi     # 0x24328
movq (%r14), %rdx
movq 0x8(%r14), %rcx
callq 0x17c54
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x4544
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4544
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x4561
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4561
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x457a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: print_stack_frame()
void print_stack_frame()
{
	if (verbose >= 4) {
		log("[DEBUG] current stack frame has %zd variable\n", stack_frame_table.back().second.size());
		size_t i = 0;
		for (auto it = stack_frame_table.back().second.begin();
				it != stack_frame_table.back().second.end();
				++it) {
			auto [ offset, size, type ] = it->second;
			log("[DEBUG] [%zd] '%s': offset=%d, size=%d, type='%s'\n", i++, it->first.c_str(), offset, size, type.c_str());
		}
	}
}

// Assembly:
cmpl $0x4, 0x1fd91(%rip)     # 0x245e0
jl 0x4910
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x1faeb(%rip), %rax     # 0x24358
movq -0x20(%rax), %rsi
leaq 0x17abb(%rip), %rdi     # 0x1c333
xorl %eax, %eax
callq 0x15504
movq 0x1fad2(%rip), %rax     # 0x24358
movq -0x28(%rax), %r12
testq %r12, %r12
je 0x4902
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %rbx
leaq 0x17ac3(%rip), %r14     # 0x1c361
xorl %r15d, %r15d
movq %r13, -0x50(%rbp)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x16d2e
movl 0x48(%r12), %r8d
movl %r8d, -0x30(%rbp)
movl 0x4c(%r12), %ecx
movl %ecx, -0x2c(%rbp)
movq 0x8(%r12), %rdx
movq -0x50(%rbp), %r9
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x15504
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x48f6
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31d0
movq (%r12), %r12
incq %r15
testq %r12, %r12
jne 0x48a1
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: add_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long)
void add_argument(string name, string type, size_t offset)
{
	log<3>("[DEBUG] add argument '%s', type = '%s'\n", name.c_str(), type.c_str());
	auto& stack_frame = stack_frame_table.back().second;
	stack_frame.insert(make_pair(name, make_tuple(offset, 1, type)));
	print_stack_frame();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rsi
movq (%r12), %rdx
leaq 0x17a58(%rip), %rdi     # 0x1c394
xorl %eax, %eax
callq 0x1559d
movq 0x1fa0e(%rip), %r14     # 0x24358
leaq -0x48(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %r12
movq %r12, %rdi
callq 0x16d2e
movl $0x1, 0x20(%r12)
movq %r15, 0x28(%r12)
leaq -0xa8(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x16696
addq $-0x38, %r14
leaq -0xa8(%rbp), %rsi
movq %r14, %rdi
callq 0x17f9c
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49b6
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49d5
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x49ea
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x4848
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x156f2
jmp 0x4a15
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x4a2a
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: print_code(std::vector<int, std::allocator<int>> const&, unsigned long, unsigned long)
size_t print_code(const vector<int>& mem, size_t ip, size_t code_loading_position = 0)
{
	size_t code_offset = ip;
	log(COLOR_YELLOW "%-10zd" COLOR_BLUE, ip);
	size_t i = mem[ip++];
	if (i < INVALID) {
		log("%-14.6s", &instruction_name[i * 6]);
	} else {
		log("<0x%08zX>  ", i);
	}
	if (instruction_has_parameter(i)) {
		int v = mem[ip++];
		char buf[64];
		snprintf(buf, sizeof(buf), "0x%08X (%d)", v, v);
		log("%-25s", buf);
		auto it = comments.find(code_offset - code_loading_position);
		if (it != comments.end()) {
			log(" ; %s", it->second.c_str());
		} else if (i == CALL || i == JMP || i == JZ || i == JNZ) {
			log(" ; address %d", ip + v);
		}
	}
	log(COLOR_NORMAL "\n");
	return ip;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x177a7(%rip), %rdi     # 0x1c3bc
xorl %eax, %eax
callq 0x15504
movq (%r15), %rax
movslq (%rax,%rbx,4), %r14
cmpq $0x29, %r14
ja 0x4c40
leaq (%r14,%r14,2), %rsi
addq %rsi, %rsi
addq 0x1f599(%rip), %rsi     # 0x241d0
leaq 0x1778f(%rip), %rdi     # 0x1c3cd
jmp 0x4c4a
leaq 0x1778e(%rip), %rdi     # 0x1c3d5
movq %r14, %rsi
xorl %eax, %eax
callq 0x15504
leaq 0x1(%rbx), %r13
cmpl $0x29, %r14d
ja 0x4d6b
movl %r14d, %eax
movabsq $0x3e8000007f8, %rcx    # imm = 0x3E8000007F8
btq %rax, %rcx
jae 0x4d6b
movq (%r15), %rax
movl 0x4(%rax,%rbx,4), %ecx
leaq 0x1775d(%rip), %rdx     # 0x1c3e1
movq %r12, %r15
xorl %r12d, %r12d
leaq -0x70(%rbp), %r13
movl $0x40, %esi
movq %r13, %rdi
movl %ecx, -0x2c(%rbp)
movl %ecx, %r8d
xorl %eax, %eax
callq 0x32c0
leaq 0x17743(%rip), %rdi     # 0x1c3ed
movq %r13, %rsi
xorl %eax, %eax
callq 0x15504
movq %rbx, %rcx
subq %r15, %rcx
movq 0x1f6af(%rip), %r8      # 0x24370
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq 0x1f698(%rip), %rax     # 0x24368
movq (%rax,%rdx,8), %rax
testq %rax, %rax
je 0x4d17
movq (%rax), %r9
movq %rax, %r12
cmpq 0x8(%r9), %rcx
je 0x4d17
movq %rdx, %rsi
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x4d14
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %r12d
cmpq %rsi, %rdx
jne 0x4d17
movq %r10, %r12
cmpq %rdi, %rcx
jne 0x4ce8
jmp 0x4d17
xorl %r12d, %r12d
testq %r12, %r12
je 0x4d22
movq (%r12), %rax
jmp 0x4d24
xorl %eax, %eax
movq %rbx, %r13
addq $0x2, %r13
testq %rax, %rax
je 0x4d3d
movq 0x10(%rax), %rsi
leaq 0x176b8(%rip), %rdi     # 0x1c3f3
jmp 0x4d64
cmpl $0x29, %r14d
ja 0x4d6b
movl %r14d, %eax
movabsq $0x3a000000000, %rcx    # imm = 0x3A000000000
btq %rax, %rcx
jae 0x4d6b
movslq -0x2c(%rbp), %rsi
addq %r13, %rsi
leaq 0x17695(%rip), %rdi     # 0x1c3f9
xorl %eax, %eax
callq 0x15504
leaq 0x183a9(%rip), %rdi     # 0x1d11b
xorl %eax, %eax
callq 0x15504
movq %r13, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: prepare_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
vector<int> prepare_string(const string& s)
{
	size_t bytes = s.size() + 1;
	size_t size = (bytes + sizeof(int) - 1) / sizeof(int);
	vector<int> a(size);
	memcpy(&a[0], s.c_str(), bytes);
	return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %r15
leaq 0x4(%r15), %rsi
shrq $0x2, %rsi
leaq -0x19(%rbp), %rdx
callq 0x152aa
incq %r15
movq (%r14), %rdi
movq (%rbx), %rsi
movq %r15, %rdx
callq 0x3180
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: skip_until(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 skip_until(string expected_token, string stat)
{
	next();
	while (!token.empty() && token != expected_token) {
		next();
	}
	if (token.empty()) {
		expect_token(expected_token, stat);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5790
movq 0x1e52c(%rip), %rdx     # 0x242a8
testq %rdx, %rdx
sete %r15b
je 0x5da4
cmpq 0x8(%r14), %rdx
jne 0x5d70
movq (%r14), %rsi
movq 0x1e50b(%rip), %rdi     # 0x242a0
callq 0x31e0
testl %eax, %eax
jne 0x5d70
testb $0x1, %r15b
je 0x5e11
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x16d2e
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x38(%rbp), %rdi
callq 0x16d2e
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5d07
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x5dfc
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x5e11
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x5e39
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x5e39
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x5e4e
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: precedence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int precedence(string token)
{
	auto it = operator_precedence.find(token);
	if (it == operator_precedence.end()) {
		err("unknown operator '%s'!\n", token.c_str());
	}
	return it->second;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x1e3b9(%rip), %rdi     # 0x24220
movq %r14, %rsi
callq 0x1922c
movq %rax, %rbx
testq %rax, %rax
jne 0x5e88
movq (%r14), %rsi
leaq 0x16656(%rip), %rdi     # 0x1c4d7
xorl %eax, %eax
callq 0x1585f
movl 0x28(%rbx), %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: eval_number(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int eval_number(string s) // TODO: support long long and float/double
{
	int n = 0;
	bool minus = false;
	const char* p = s.c_str();
	if (*p == '-') { ++p; minus = true; }
	int base = 10;
	if (*p == '0') {
		++p; base = 8;
		if (*p == 'x') {
			++p; base = 16;
		}
	}
	for (; *p; ++p) {
		if (*p == '.') break;
		if (!((*p >= '0' && *p <= '9') || (*p >= 'A' && *p <= 'F') || (*p >= 'a' && *p <= 'f'))) {
			err("unexpected character '%c' in number '%s'!", *p, s.c_str());
		}
		int x = *p - (*p >= 'a' ? ('a' - 10) : (*p >= 'A' ? ('A' - 10) : '0'));
		if (x >= base) err("Invalid number '%s'!", s.c_str());
		n = n * base + x;
	}
	return (minus ? -n : n);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, -0x38(%rbp)
movq (%rdi), %rax
movb (%rax), %dl
xorl %ecx, %ecx
movb %dl, -0x29(%rbp)
cmpb $0x2d, %dl
sete %cl
leaq (%rax,%rcx), %r13
movl $0xa, %r15d
cmpb $0x30, (%rax,%rcx)
jne 0x60da
leaq 0x2(%r13), %rax
xorl %ecx, %ecx
cmpb $0x78, 0x1(%r13)
leaq 0x1(%r13), %r13
sete %cl
cmoveq %rax, %r13
leal 0x8(,%rcx,8), %r15d
movl $0xffffffa9, %ebx       # imm = 0xFFFFFFA9
xorl %r14d, %r14d
movzbl (%r13), %eax
testl %eax, %eax
je 0x617c
cmpl $0x2e, %eax
je 0x617c
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
jb 0x611b
movzbl %al, %ecx
addl $-0x41, %ecx
cmpl $0x25, %ecx
ja 0x6162
movabsq $0x3f0000003f, %rdx     # imm = 0x3F0000003F
btq %rcx, %rdx
jae 0x6162
movsbl (%r13), %eax
cmpl $0x41, %eax
movl $0xffffffd0, %r12d      # imm = 0xFFFFFFD0
movl $0xffffffc9, %ecx       # imm = 0xFFFFFFC9
cmovgel %ecx, %r12d
cmpl $0x61, %eax
cmovgel %ebx, %r12d
addl %eax, %r12d
cmpl %r15d, %r12d
jl 0x6156
movq -0x38(%rbp), %rax
movq (%rax), %rsi
leaq 0x163ca(%rip), %rdi     # 0x1c519
xorl %eax, %eax
callq 0x1585f
imull %r15d, %r14d
addl %r12d, %r14d
incq %r13
jmp 0x60e2
movsbl %al, %esi
movq -0x38(%rbp), %rax
movq (%rax), %rdx
leaq 0x1637c(%rip), %rdi     # 0x1c4ef
xorl %eax, %eax
callq 0x1585f
jmp 0x611b
movl %r14d, %eax
negl %eax
cmpb $0x2d, -0x29(%rbp)
cmovnel %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: eval_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string eval_string(string s)
{
	string r;
	for (size_t i = 1; i + 1 < s.size(); ++i) {
		if (s[i] != '\\') {
			r += s[i];
		} else {
			char c = s[++i];
			switch (c) {
			default: r += c; break;
			case 'r': r += '\r'; break;
			case 'n': r += '\n'; break;
			case 't': r += '\t'; break;
			case '\'': r += '\''; break;
			case '\"': r += '\"'; break;
			}
		}
	}
	return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
cmpq $0x3, 0x8(%rsi)
jb 0x6225
movq %rsi, %r14
movl $0x1, %r13d
movl $0x2, %r12d
movq (%r14), %rcx
movb (%rcx,%r13), %al
cmpb $0x5c, %al
jne 0x61f5
movzbl (%rcx,%r12), %eax
cmpl $0x6e, %eax
je 0x6209
cmpl $0x72, %eax
je 0x6205
cmpl $0x74, %eax
jne 0x620b
movb $0x9, %al
jmp 0x620b
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3190
movq %r13, %r12
jmp 0x6216
movb $0xd, %al
jmp 0x620b
movb $0xa, %al
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3190
leaq 0x1(%r12), %r13
addq $0x2, %r12
cmpq 0x8(%r14), %r12
jb 0x61d2
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6239
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x624f
movq (%r15), %rsi
incq %rsi
callq 0x31d0
movq %r14, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: is_built_in_type()
bool is_built_in_type()
{
	return (token == "char" || token == "short" || token == "int" ||
			token == "long" || token == "longlong" ||
			token == "float" || token == "double" ||
			token == "signed" || token == "unsigned" ||
			token == "size_t");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x1e03c(%rip), %rdi     # 0x242a0
leaq 0x162c3(%rip), %rsi     # 0x1c52e
callq 0x30b0
movb $0x1, %bl
testl %eax, %eax
je 0x6356
leaq 0x1e01f(%rip), %rdi     # 0x242a0
leaq 0x162ab(%rip), %rsi     # 0x1c533
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1e004(%rip), %rdi     # 0x242a0
leaq 0x16c3e(%rip), %rsi     # 0x1cee1
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1dfe9(%rip), %rdi     # 0x242a0
leaq 0x1627f(%rip), %rsi     # 0x1c53d
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1dfce(%rip), %rdi     # 0x242a0
leaq 0x16260(%rip), %rsi     # 0x1c539
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1dfb7(%rip), %rdi     # 0x242a0
leaq 0x16252(%rip), %rsi     # 0x1c542
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1dfa0(%rip), %rdi     # 0x242a0
leaq 0x16be6(%rip), %rsi     # 0x1ceed
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1df89(%rip), %rdi     # 0x242a0
leaq 0x1622c(%rip), %rsi     # 0x1c54a
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1df72(%rip), %rdi     # 0x242a0
leaq 0x16213(%rip), %rsi     # 0x1c548
callq 0x30b0
testl %eax, %eax
je 0x6356
leaq 0x1df5b(%rip), %rdi     # 0x242a0
leaq 0x16205(%rip), %rsi     # 0x1c551
callq 0x30b0
testl %eax, %eax
sete %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: get_type_size(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int get_type_size(string type_name)
{
	if (type_name.substr(type_name.size() - 1) == "*") { // pointer
		return sizeof(int); // we use 'int' as word size
	} else {
		return sizeof(int); // we use 'int' as default type
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rsi
movq 0x8(%rdi), %rdx
decq %rdx
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
movq $-0x1, %rcx
callq 0x31f0
leaq 0xfdd5(%rip), %rsi      # 0x1c1d1
movq %rbx, %rdi
callq 0x30b0
movq (%rbx), %rdi
leaq -0x18(%rbp), %rax
cmpq %rax, %rdi
je 0xc41c
movq -0x18(%rbp), %rsi
incq %rsi
callq 0x31d0
movl $0x4, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: parse_init_statement()
void parse_init_statement()
{
	log<3>("[DEBUG] > %s:\n", __FUNCTION__);

	if (token == "auto" || token == "const" || token == "static" ||
				token == "extern" || is_built_in_type()) { // start as type
		parse_declare();
	} else {
		parse_expression();
		expect_token(";", "statement");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
leaq 0xcc91(%rip), %rdi      # 0x1cbc0
leaq 0xcc99(%rip), %rsi      # 0x1cbcf
xorl %eax, %eax
callq 0x1559d
leaq 0x1435c(%rip), %rdi     # 0x242a0
leaq 0xc61b(%rip), %rsi      # 0x1c566
callq 0x30b0
testl %eax, %eax
je 0xffa2
leaq 0x14345(%rip), %rdi     # 0x242a0
leaq 0xc609(%rip), %rsi      # 0x1c56b
callq 0x30b0
testl %eax, %eax
je 0xffa2
leaq 0x1432e(%rip), %rdi     # 0x242a0
leaq 0xc5df(%rip), %rsi      # 0x1c558
callq 0x30b0
testl %eax, %eax
je 0xffa2
leaq 0x14317(%rip), %rdi     # 0x242a0
leaq 0xc5cf(%rip), %rsi      # 0x1c55f
callq 0x30b0
testl %eax, %eax
je 0xffa2
callq 0x6257
testb %al, %al
je 0xffb4
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xda42
leaq -0x68(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xc24c(%rip), %rsi      # 0x1c20f
leaq 0xc246(%rip), %rdx      # 0x1c210
leaq -0x78(%rbp), %rbx
movq %rbx, %rdi
callq 0x16dc8
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x8e88
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1000b
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x10020
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xc1e0(%rip), %rsi      # 0x1c20f
leaq 0xc1da(%rip), %rdx      # 0x1c210
leaq -0x58(%rbp), %rdi
callq 0x16dc8
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xcb8c(%rip), %rsi      # 0x1cbda
leaq 0xcb8e(%rip), %rdx      # 0x1cbe3
leaq -0x38(%rbp), %rdi
callq 0x16dc8
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5d07
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x10080
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x10095
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x100c0
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x100c0
movq %rax, %rbx
movq -0x58(%rbp), %rdi
jmp 0x100cd
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x100dd
movq (%r14), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool load(string filename)
{
	ifstream file(filename);
	if (!file.is_open()) {
		err("failed to open file '%s'!\n", filename.c_str());
		return false;
	}
	string line;
	while (getline(file, line)) {
		src.push_back(line);
	}
	file.close();
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %r15
leaq -0x250(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x32d0
leaq -0x1d8(%rbp), %rdi
callq 0x3080
movl %eax, %ebx
testb %al, %al
je 0x1263d
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq -0x48(%rbp), %r15
leaq 0x11c74(%rip), %r12     # 0x24270
movq -0x250(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3340
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x12650
movq %r12, %rdi
movq %r15, %rsi
callq 0x15ac8
jmp 0x125fc
movq (%r15), %rsi
leaq 0xa827(%rip), %rdi      # 0x1ce6e
xorl %eax, %eax
callq 0x1585f
jmp 0x12671
leaq -0x250(%rbp), %rdi
callq 0x3070
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x12671
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x250(%rbp), %rdi
callq 0x3090
movl %ebx, %eax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12698
movq %rax, %rbx
jmp 0x126b0
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x126b0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x250(%rbp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: get_data_symbol[abi:cxx11](unsigned long)
string get_data_symbol(size_t offset)
{
	auto it = data_symbol_dict.find(offset);
	if (it == data_symbol_dict.end()) {
		err("Unknown data symbol offset '%zd'\n", offset);
		exit(1);
	}
	return it->second;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x100dc(%rip), %r8      # 0x243e0
xorl %r10d, %r10d
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq 0x100c2(%rip), %rax     # 0x243d8
movq (%rax,%rdx,8), %rax
testq %rax, %rax
je 0x1435d
movq (%rax), %r9
movq %rax, %r10
cmpq %rsi, 0x8(%r9)
je 0x1435d
movq %rdx, %rcx
movq %r9, %r11
movq (%r9), %r9
testq %r9, %r9
je 0x1435a
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %r10d
cmpq %rcx, %rdx
jne 0x1435d
movq %r11, %r10
cmpq %rsi, %rdi
jne 0x1432e
jmp 0x1435d
xorl %r10d, %r10d
testq %r10, %r10
je 0x14367
movq (%r10), %rax
jmp 0x14369
xorl %eax, %eax
testq %rax, %rax
je 0x14392
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x16d2e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x8e31(%rip), %rdi      # 0x1d1ca
xorl %eax, %eax
callq 0x1585f
movl $0x1, %edi
callq 0x3230
// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: main
int main(int argc, const char** argv)
{
	bool assembly = false;
	const char* filename = nullptr;
	for (--argc, ++argv; argc > 0 && !filename; --argc, ++argv) {
		if (**argv == '-') {
			if (*(*argv+1) == 'v') { ++verbose; }
			if (*(*argv+1) == 's') { assembly = true; }
		} else {
			filename = *argv;
		}
	}
	if (!filename) {
		log("usage: icpp [-s] [-v] <foo.cpp> ...\n");
		return false;
	}
	on_err = print_current_and_exit;
	if (load(filename)) parse();
	return assembly ? show() : run(argc, argv);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
addq $0x8, %rbx
leal -0x1(%rdi), %r14d
cmpl $0x2, %edi
jl 0x151d0
movl 0xf467(%rip), %eax      # 0x245e0
xorl %r15d, %r15d
movl $0x1, %ecx
movl %r14d, %edx
xorl %r13d, %r13d
movq (%rbx), %rsi
cmpb $0x2d, (%rsi)
jne 0x151af
movb 0x1(%rsi), %sil
cmpb $0x76, %sil
jne 0x151a1
incl %eax
movl %eax, 0xf43f(%rip)      # 0x245e0
cmpb $0x73, %sil
movzbl %r13b, %r13d
cmovel %ecx, %r13d
jmp 0x151b2
movq %rsi, %r15
addq $0x8, %rbx
leal -0x1(%rdx), %r14d
testq %r15, %r15
sete %sil
cmpl $0x2, %edx
jl 0x151d9
movl %r14d, %edx
testq %r15, %r15
je 0x15187
jmp 0x151d9
movb $0x1, %sil
xorl %r13d, %r13d
xorl %r15d, %r15d
testb %sil, %sil
je 0x151f0
leaq 0x82e2(%rip), %rdi      # 0x1d4c7
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x15504
jmp 0x1526b
leaq -0x10fb0(%rip), %rax    # 0x4247
movq %rax, 0xf3f2(%rip)      # 0x245f0
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq %r15, %rdi
callq 0x30f0
leaq (%rax,%r15), %rdx
leaq -0x48(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x16dc8
movq %r12, %rdi
callq 0x1259c
movl %eax, %r15d
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x15245
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
testb %r15b, %r15b
je 0x1524f
callq 0x13241
testb $0x1, %r13b
je 0x1525e
callq 0x13b86
xorl %ebx, %ebx
jmp 0x1526b
movl %r14d, %edi
movq %rbx, %rsi
callq 0x147eb
movl %eax, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x15298
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::setPreempt(int)
void Signal::setPreempt(int prValue)
// GD 2009.  This sets a preempt value when there is a valid decode which
// is not reported at the time, so we could not use NewPreemptValue as
// that only takes effect when protocol is reported.
{
	if (	preemptValue < prValue	
		||	preemptValue == prValue	
			&&	nFrameL > preemptLength )	
	{										
		preemptValue = prValue;
		preemptLength = nFrameL;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl %esi, 0x54(%rdi)
jge 0x26e0
movl %esi, 0x54(%rdi)
movl 0x48(%rdi), %eax
movl %eax, 0x50(%rdi)
jmp 0x26ea
jne 0x26ea
movl 0x48(%rdi), %eax
cmpl 0x50(%rdi), %eax
jg 0x26d5
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::trySingleBurstSize()
void Signal::trySingleBurstSize()
{
    // pid-0003 16 bits, no end pulse

    if ( nFrameL != 16 )
        return;

    if ( sortBurst.min1 * 1.3 < sortBurst.max1 )
        return;

    if ( sortOn.min1 * 1.4 < sortOn.max1 )
        nMaxShort = (sortOn.min1 + sortOn.max1) * .5;
    else
        nMaxShort = (sortBurst.min1 + sortBurst.max1) * .25;
    cleanup();
    while ( nBit <= nFrameL )
    {
        if ( pBit[0] > nMaxShort )
        {
			cBits[nBit>>3] |= 1 << (nBit & 7);
        }
        pBit += 2;
        nBit++;
    }

    switch ( nFrameL )
    {
        case 16:
            if ( cBits[0] + cBits[1] == 255 )
            {
                // {40.2k,389}<2,-2|3,-1>(F:8,~F:8,^102k)+
                //
        		strcpy(pProtocol, "pid-0003");
            	*pOBC = cBits[0];
                *pHex = msb(*pOBC);

				newPreemptValue = prByPid_0001;    // Avoid Async decode
				newPreemptLength = 16;
            }
            return;
    }

}

// Assembly:
cmpl $0x10, 0x48(%rdi)
jne 0xd630
pushq %rbp
movq %rsp, %rbp
movss 0x1d0(%rdi), %xmm0
cvtss2sd %xmm0, %xmm1
mulsd 0x4d22(%rip), %xmm1     # 0x121e0
movss 0x1dc(%rdi), %xmm2
cvtss2sd %xmm2, %xmm3
ucomisd %xmm1, %xmm3
ja 0xd62f
movss 0x180(%rdi), %xmm1
cvtss2sd %xmm1, %xmm4
mulsd 0x4e98(%rip), %xmm4     # 0x12380
movss 0x184(%rdi), %xmm3
cvtss2sd %xmm3, %xmm5
ucomisd %xmm4, %xmm5
ja 0xd50b
addss %xmm2, %xmm0
mulss 0x5092(%rip), %xmm0     # 0x12598
movaps %xmm0, %xmm1
jmp 0xd517
addss %xmm3, %xmm1
mulss 0x4ff9(%rip), %xmm1     # 0x12510
movss %xmm1, 0xe8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rdi)
movq 0x38(%rdi), %rax
movq %rax, 0xc8(%rdi)
movq $0x0, 0xc0(%rdi)
cmpl $0x0, 0x48(%rdi)
js 0xd62f
leaq 0xa0(%rdi), %rax
xorl %edx, %edx
movq 0xc8(%rdi), %rcx
movss (%rcx), %xmm0
ucomiss 0xe8(%rdi), %xmm0
jbe 0xd57c
movl %edx, %ecx
andb $0x7, %cl
movl $0x1, %esi
shll %cl, %esi
sarl $0x3, %edx
movslq %edx, %rcx
orb %sil, (%rax,%rcx)
addq $0x8, 0xc8(%rdi)
movl 0x48(%rdi), %ecx
movl 0xc0(%rdi), %esi
leal 0x1(%rsi), %edx
movl %edx, 0xc0(%rdi)
cmpl %ecx, %esi
jl 0xd552
cmpl $0x10, %ecx
jne 0xd62f
movzbl 0xa0(%rdi), %eax
movzbl 0xa1(%rdi), %ecx
addl %eax, %ecx
cmpl $0xff, %ecx
jne 0xd62f
movq 0x148(%rdi), %rax
movabsq $0x333030302d646970, %rcx # imm = 0x333030302D646970
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
movzbl 0xa0(%rdi), %eax
movq 0x170(%rdi), %rcx
movl %eax, (%rcx)
bswapl %eax
movl %eax, %ecx
shll $0x4, %ecx
shrl $0x4, %eax
andl $0xf000000, %eax        # imm = 0xF000000
orl %ecx, %eax
movl $0x33000000, %ecx       # imm = 0x33000000
movl %eax, %edx
andl %ecx, %edx
shrl $0x2, %eax
andl %ecx, %eax
leal (%rax,%rdx,4), %eax
movl $0x55000000, %ecx       # imm = 0x55000000
movl %eax, %edx
andl %ecx, %edx
shrl %eax
andl %ecx, %eax
leal (%rax,%rdx,2), %eax
shrl $0x18, %eax
movq 0x178(%rdi), %rcx
movl %eax, (%rcx)
movabsq $0x200000010, %rax      # imm = 0x200000010
movq %rax, 0x58(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::tryGXB()
void Signal::tryGXB()
// GXB  {38.3k,520}<1,-3|3,-1>(1,-1,D:4,F:8,P:1,1,^???)+
// P is odd parity for F
{
	if (nFrameL != 15)
		return;
	if (   sortBurst.min2 != sortBurst.mid2
		|| sortBurst.min1 >= sortOn.max1
		|| sortBurst.min1 != pFrame[0] + pFrame[1]
		|| sortBurst.min1*1.5 > sortBurst.mid2
		|| sortBurst.mid2*1.25 < sortBurst.max1 )
	{
		return;
	}
	nMaxShort = sortBurst.mid2*.5;
	cleanup();
	pBit+=2;
	decodeX( 13 );
	makeMsb();
	*pDevice = getMsb(0,4);
	*pOBC = getMsb(4,8);
	if ( parity( getMsb(4,9) ) )
	{
		strcpy(pProtocol, "GXB");
	}
	else
	{
		sprintf(pProtocol, "GXB-%03X.%d", getMsb(0,12), getMsb(12,1));
	}


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpl $0xf, 0x48(%rdi)
jne 0xd811
movq %rdi, %rbx
movss 0x1cc(%rdi), %xmm1
movss 0x1d8(%rdi), %xmm0
ucomiss %xmm0, %xmm1
jne 0xd811
jp 0xd811
movss 0x1d0(%rbx), %xmm1
ucomiss 0x184(%rbx), %xmm1
jae 0xd811
movq 0x38(%rbx), %rax
movss (%rax), %xmm2
addss 0x4(%rax), %xmm2
ucomiss %xmm2, %xmm1
jne 0xd811
jp 0xd811
xorps %xmm2, %xmm2
cvtss2sd %xmm1, %xmm2
mulsd 0x4ad4(%rip), %xmm2     # 0x12178
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
ja 0xd811
mulsd 0x4c5b(%rip), %xmm1     # 0x12318
xorps %xmm2, %xmm2
cvtss2sd 0x1dc(%rbx), %xmm2
ucomisd %xmm1, %xmm2
ja 0xd811
mulss 0x4e36(%rip), %xmm0     # 0x12510
movss %xmm0, 0xe8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbx)
movq $0x0, 0xc0(%rbx)
addq $0x8, %rax
movq %rax, 0xc8(%rbx)
movq %rbx, %rdi
movl $0xd, %esi
callq 0xffa6
movl 0xc0(%rbx), %eax
addl $0x7, %eax
sarl $0x3, %eax
testl %eax, %eax
jle 0xd774
movl %eax, %eax
movl $0x33000000, %ecx       # imm = 0x33000000
movl $0x55000000, %edx       # imm = 0x55000000
movzbl 0x9f(%rbx,%rax), %esi
bswapl %esi
movl %esi, %edi
shll $0x4, %edi
shrl $0x4, %esi
andl $0xf000000, %esi        # imm = 0xF000000
orl %edi, %esi
movl %esi, %edi
andl %ecx, %edi
shrl $0x2, %esi
andl %ecx, %esi
leal (%rsi,%rdi,4), %esi
movl %esi, %edi
andl %edx, %edi
shrl %esi
andl %edx, %esi
leal (%rsi,%rdi,2), %esi
shrl $0x18, %esi
movb %sil, 0x9f(%rbx,%rax)
leaq -0x1(%rax), %rsi
cmpq $0x1, %rax
movq %rsi, %rax
jg 0xd72b
movzbl 0xa0(%rbx), %eax
shrl $0x4, %eax
movq 0x160(%rbx), %rcx
movl %eax, (%rcx)
movb 0xa0(%rbx), %al
movb 0xa1(%rbx), %cl
shrb $0x4, %cl
shlb $0x4, %al
orb %cl, %al
movzbl %al, %eax
movq 0x170(%rbx), %rcx
movl %eax, (%rcx)
movzbl 0xa0(%rbx), %eax
movl %eax, %esi
andl $0xf, %esi
shll $0x5, %esi
movzbl 0xa1(%rbx), %edx
movl %edx, %ecx
shrl $0x3, %ecx
leal (%rcx,%rsi), %edi
shrl $0x8, %esi
xorl %edi, %esi
shrl $0x4, %edi
xorl %esi, %edi
movl %edi, %esi
shrl $0x2, %esi
xorl %edi, %esi
movl %esi, %r8d
shrl %r8d
xorl %esi, %r8d
movq 0x148(%rbx), %rdi
testb $0x1, %r8b
jne 0xd80b
shll $0x4, %eax
shrl $0x4, %edx
orl %eax, %edx
andl $0x1, %ecx
leaq 0x57a6(%rip), %rsi      # 0x12fa4
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2060
movl $0x425847, (%rdi)       # imm = 0x425847
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::tryAirAsync()
void Signal::tryAirAsync()
{
	if (!framed(22*8*105))
		return;
	if ( nFrameL < 5 )
		return;
	if (preemptValue >= prAsync)
		return;

	// Longest > 22 bits is treated as a decode boundary
	// Longest < 2 (shortened) bits makes false decode too likely
	if (sortOff.max1 > 22*8*105 || sortOff.max1 < 2*7*105)
		return;
    if (sortOn.max1 > 9*9*105)
        return;

	int result = decodeAsync(pFrame, 0, 0, 7*105, 9*105, 11, 11);
	if (result)
	{
		sprintf(pProtocol, "AirAsync%d-", result);
		for (int nn=0; nn<result; ++nn)
		{
			sprintf(pProtocol+strlen(pProtocol),
				   ( nn ? ".%02X" : "%02X" )
				, cBits[nn] );
		}
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movss 0x140(%rdi), %xmm0
ucomiss 0x4b57(%rip), %xmm0     # 0x12674
jb 0xdc0f
movq %rdi, %rbx
cmpl $0x5, 0x48(%rdi)
jl 0xdc0f
cmpl $0x0, 0x54(%rbx)
jg 0xdc0f
movss 0x190(%rbx), %xmm0
ucomiss 0x4b2b(%rip), %xmm0     # 0x12674
ja 0xdc0f
movss 0x4aa1(%rip), %xmm1     # 0x125f8
ucomiss %xmm0, %xmm1
ja 0xdc0f
movss 0x184(%rbx), %xmm0
ucomiss 0x4b15(%rip), %xmm0     # 0x12684
ja 0xdc0f
movq 0x38(%rbx), %rsi
movsd 0x4917(%rip), %xmm0     # 0x12498
movsd 0x4917(%rip), %xmm1     # 0x124a0
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xb, %r8d
movl $0xb, %r9d
callq 0x102e0
testl %eax, %eax
je 0xdc0f
movl %eax, %r14d
movq 0x148(%rbx), %rdi
leaq 0x5424(%rip), %rsi      # 0x12fda
movl %eax, %edx
xorl %eax, %eax
callq 0x2060
testl %r14d, %r14d
jle 0xdc0f
movl %r14d, %r15d
leaq 0x5406(%rip), %r13      # 0x12fd4
xorl %r12d, %r12d
movq 0x148(%rbx), %r14
movq %r14, %rdi
callq 0x2090
addq %rax, %r14
testq %r12, %r12
movq %r13, %rsi
leaq 0x5325(%rip), %rax      # 0x12f15
cmoveq %rax, %rsi
movzbl 0xa0(%rbx,%r12), %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2060
incq %r12
cmpq %r12, %r15
jne 0xdbd1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::trySunfire()
void Signal::trySunfire()
{
	if (nFrameL != 25)
		return;
	if ( pFrame[1] <= sortBurst.max2 )
		return;
	if ( ! framed(sortBurst.max1) )
		return;
	cleanup();
   	pBit = pFrame+2;
	nMaxShort = sortBurst.min1;
	decodeX(24);
	if (getLsb(0,12) + getLsb(12,12) != 0xFFF )
		return;
	makeMsb();
	strcpy(pProtocol, "Sunfire");
	*pDevice = getMsb(0,4);
	*pOBC = getMsb(4,8);

}

// Assembly:
cmpl $0x19, 0x48(%rdi)
jne 0xdffd
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movss 0x1e0(%rdi), %xmm0
ucomiss 0x4(%rax), %xmm0
jae 0xdff7
movss 0x140(%rbx), %xmm0
ucomiss 0x1dc(%rbx), %xmm0
jb 0xdff7
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbx)
movq $0x0, 0xc0(%rbx)
addq $0x8, %rax
movq %rax, 0xc8(%rbx)
movss 0x1d0(%rbx), %xmm0
movss %xmm0, 0xe8(%rbx)
movq %rbx, %rdi
movl $0x18, %esi
callq 0xffa6
movzbl 0xa0(%rbx), %eax
movzbl 0xa1(%rbx), %ecx
movl %ecx, %edx
andl $0xf, %edx
shll $0x8, %edx
shrl $0x4, %ecx
addl %eax, %ecx
addl %edx, %ecx
movzbl 0xa2(%rbx), %eax
shll $0x4, %eax
addl %ecx, %eax
cmpl $0xfff, %eax            # imm = 0xFFF
jne 0xdff7
movl 0xc0(%rbx), %eax
addl $0x7, %eax
sarl $0x3, %eax
testl %eax, %eax
jle 0xdfb0
movl %eax, %eax
movl $0x33000000, %ecx       # imm = 0x33000000
movl $0x55000000, %edx       # imm = 0x55000000
movzbl 0x9f(%rbx,%rax), %esi
bswapl %esi
movl %esi, %edi
shll $0x4, %edi
shrl $0x4, %esi
andl $0xf000000, %esi        # imm = 0xF000000
orl %edi, %esi
movl %esi, %edi
andl %ecx, %edi
shrl $0x2, %esi
andl %ecx, %esi
leal (%rsi,%rdi,4), %esi
movl %esi, %edi
andl %edx, %edi
shrl %esi
andl %edx, %esi
leal (%rsi,%rdi,2), %esi
shrl $0x18, %esi
movb %sil, 0x9f(%rbx,%rax)
leaq -0x1(%rax), %rsi
cmpq $0x1, %rax
movq %rsi, %rax
jg 0xdf67
movq 0x148(%rbx), %rax
movabsq $0x657269666e7553, %rcx # imm = 0x657269666E7553
movq %rcx, (%rax)
movzbl 0xa0(%rbx), %eax
shrl $0x4, %eax
movq 0x160(%rbx), %rcx
movl %eax, (%rcx)
movb 0xa0(%rbx), %al
movb 0xa1(%rbx), %cl
shrb $0x4, %cl
shlb $0x4, %al
orb %cl, %al
movzbl %al, %eax
movq 0x170(%rbx), %rcx
movl %eax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::tryPid13()
void Signal::tryPid13()
// GD 2009 Added comment:  Decode assumes frame contains at least one 1 bit
{
	// {37.9k,1082}<0,-1|1,-0>(1,-1,F:6,-26)+
	if ( nFrameL > 5 )	
		return;
	if (   pFrame[0] < 900.
		|| pFrame[0] > 1200. )
	{
		return;
	}

	if ( ! framed(nTotDur) )
		return;
	m_rawUnit =  1. / pFrame[0];
	m_rawPulseAdjust = .4f;  // Pulse from -.4 to +.2
	m_rawGapAdjust = .2f;    // Gap from -.2 to +.4
	m_rawErrorLimit = .6f;

	cleanup();
	pBit += 1;
	if ( ! decodeRaw(7) || pBit < pFrameEnd )	
	{
		return;
	}

	// GD 2009 Start: Add any trailing 0's concatenated with lead-out into 
	// nTotDur and re-test framing.  Eliminates spurious decodes of final
	// 2 frames of G.I.4DTV and probably others.
	float n = 7.f;	// number of trailing 0's
	unsigned char xBits = cBits[0];
	for ( ; xBits != 0; n-- ) { xBits >>= 1; }
	if ( ! framed(nTotDur + (n - m_rawGapAdjust) / m_rawUnit ) )
	{
		return;
	}
	// GD 2009 End

	strcpy(pProtocol,"pid-0013");
	*pOBC = getLsb(1,6);
	*pHex = ((msb(cBits[0]) >> 1) & 0x3F) | 0x80;
}

// Assembly:
cmpl $0x5, 0x48(%rdi)
jg 0xe3e8
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movss (%rax), %xmm0
movss 0x42e5(%rip), %xmm1     # 0x1255c
ucomiss %xmm0, %xmm1
ja 0xe3e2
ucomiss 0x4425(%rip), %xmm0     # 0x126ac
ja 0xe3e2
movss 0x140(%rbx), %xmm1
ucomiss 0x98(%rbx), %xmm1
jb 0xe3e2
movss 0x4406(%rip), %xmm1     # 0x126b0
divss %xmm0, %xmm1
movss %xmm1, 0xfc(%rbx)
movabsq $0x3e4ccccd3ecccccd, %rcx # imm = 0x3E4CCCCD3ECCCCCD
movq %rcx, 0x100(%rbx)
movl $0x3f19999a, 0x108(%rbx) # imm = 0x3F19999A
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbx)
movq $0x0, 0xc0(%rbx)
addq $0x4, %rax
movq %rax, 0xc8(%rbx)
movq %rbx, %rdi
movl $0x7, %esi
callq 0x1018c
testl %eax, %eax
je 0xe3e2
movq 0xc8(%rbx), %rax
cmpq 0x40(%rbx), %rax
jb 0xe3e2
leaq 0xa0(%rbx), %rax
movb (%rax), %al
movss 0x41ec(%rip), %xmm0     # 0x12514
testb %al, %al
je 0xe342
movss 0x4230(%rip), %xmm1     # 0x12564
movl %eax, %ecx
shrb %cl
addss %xmm1, %xmm0
cmpb $0x1, %al
movl %ecx, %eax
ja 0xe336
subss 0x104(%rbx), %xmm0
divss 0xfc(%rbx), %xmm0
addss 0x98(%rbx), %xmm0
movss 0x140(%rbx), %xmm1
ucomiss %xmm0, %xmm1
jb 0xe3e2
movq 0x148(%rbx), %rax
movabsq $0x333130302d646970, %rcx # imm = 0x333130302D646970
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
movl 0xa0(%rbx), %eax
shrl %eax
andl $0x3f, %eax
movq 0x170(%rbx), %rcx
movl %eax, (%rcx)
movl 0xa0(%rbx), %eax
bswapl %eax
movl %eax, %ecx
shrl $0x4, %ecx
movl $0xf0f0f0f, %edx        # imm = 0xF0F0F0F
andl %edx, %ecx
andl %edx, %eax
shll $0x4, %eax
orl %ecx, %eax
movl $0x33333333, %ecx       # imm = 0x33333333
movl %eax, %edx
andl %ecx, %edx
shrl $0x2, %eax
andl %ecx, %eax
leal (%rax,%rdx,4), %eax
movl %eax, %ecx
andl $0x15000000, %ecx       # imm = 0x15000000
shrl %eax
andl $0x54000000, %eax       # imm = 0x54000000
leal (%rax,%rcx,2), %eax
shrl $0x19, %eax
orl $0x80, %eax
movq 0x178(%rbx), %rcx
movl %eax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/probonopd[P]decodeir/DecodeIR.cpp
// Function: Signal::tryElan()
void Signal::tryElan()   // {40.2k,398,msb}<1,-1|1,-2>(3,-2,D:8,~D:8,2,-2,F:8,~F:8,1,^50m)+  DAR 2012
{
	if ( nFrameL != 35)
		return;
    if ( sortOff.min1 * 3.6 < sortBurst.max3  || sortOff.min1 * 2.4 > sortBurst.max3)
        return;
	if (pFrame[34] > 2.4 * sortOff.min1 || pFrame[34] < 1.6 * sortOff.min1 
		|| pFrame[35] > 2.4 * sortOff.min1 || pFrame[35] < 1.6 * sortOff.min1 )
		return;
	cleanup();
	nMaxShort = sortBurst.min1 * .4;
	int cNdx = 0;
	for (int ndx=1; ndx<35; ++ndx)
	{
		if (ndx == 17) ndx++;
		if (pFrame[2*ndx] > nMaxShort)
		{
			if (pFrame[2*ndx+1] > 2 * nMaxShort)
				cBits[cNdx>>3] |= 0x80 >> (cNdx&7);
		}
		cNdx++;
	}
	int dev = cBits[0];
	int devComp = cBits[1];
	int cmd = cBits[2];
	int cmdComp = cBits[3];
	if ((0xFF ^ devComp) !=  dev || (0xFF ^ cmdComp) != cmd)
		return;
	strcpy(pProtocol,"Elan");
	*pDevice = dev;
	*pOBC = cmd;
}

// Assembly:
cmpl $0x23, 0x48(%rdi)
jne 0xe8b8
pushq %rbp
movq %rsp, %rbp
cvtss2sd 0x18c(%rdi), %xmm0
movsd 0x3d64(%rip), %xmm1     # 0x124b0
mulsd %xmm0, %xmm1
cvtss2sd 0x1e4(%rdi), %xmm2
ucomisd %xmm1, %xmm2
ja 0xe8b7
movsd 0x39f6(%rip), %xmm1     # 0x12160
mulsd %xmm0, %xmm1
ucomisd %xmm2, %xmm1
ja 0xe8b7
movq 0x38(%rdi), %rax
xorps %xmm2, %xmm2
cvtss2sd 0x88(%rax), %xmm2
ucomisd %xmm1, %xmm2
ja 0xe8b7
mulsd 0x3a27(%rip), %xmm0     # 0x121c0
ucomisd %xmm2, %xmm0
ja 0xe8b7
xorps %xmm2, %xmm2
cvtss2sd 0x8c(%rax), %xmm2
ucomisd %xmm1, %xmm2
ja 0xe8b7
ucomisd %xmm2, %xmm0
ja 0xe8b7
leaq 0xa0(%rdi), %rdx
xorpd %xmm0, %xmm0
movupd %xmm0, 0xa0(%rdi)
movq %rax, 0xc8(%rdi)
movq $0x0, 0xc0(%rdi)
xorps %xmm0, %xmm0
cvtss2sd 0x1d0(%rdi), %xmm0
mulsd 0x3a06(%rip), %xmm0     # 0x12200
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xe8(%rdi)
movl $0x1, %esi
xorl %r8d, %r8d
movl $0x12, %r9d
cmpl $0x11, %esi
cmovel %r9d, %esi
leal (%rsi,%rsi), %ecx
movslq %ecx, %r10
movss (%rax,%r10,4), %xmm1
movss 0xe8(%rdi), %xmm0
ucomiss %xmm0, %xmm1
jbe 0xe861
orl $0x1, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm1
addss %xmm0, %xmm0
ucomiss %xmm0, %xmm1
jbe 0xe861
movl %r8d, %ecx
andb $0x7, %cl
movl $0x80, %r10d
shrl %cl, %r10d
movl %r8d, %ecx
shrl $0x3, %ecx
orb %r10b, (%rdx,%rcx)
incl %r8d
incl %esi
cmpl $0x21, %r8d
jne 0xe814
movzbl 0xa0(%rdi), %eax
movb 0xa1(%rdi), %cl
xorb %al, %cl
cmpb $-0x1, %cl
jne 0xe8b7
movzbl 0xa2(%rdi), %ecx
movb 0xa3(%rdi), %dl
xorb %cl, %dl
cmpb $-0x1, %dl
jne 0xe8b7
movq 0x148(%rdi), %rdx
movb $0x0, 0x4(%rdx)
movl $0x6e616c45, (%rdx)     # imm = 0x6E616C45
movq 0x160(%rdi), %rdx
movl %eax, (%rdx)
movq 0x170(%rdi), %rax
movl %ecx, (%rax)
popq %rbp
retq
nop