LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/flastest[P]HeterogeneousParallelDijkstra/dijkstra_nanosleep.cc
// Function: relax_vertex(unsigned long, unsigned long, float, std::priority_queue<std::pair<unsigned long, float>, std::vector<std::pair<unsigned long, float>, std::allocator<std::pair<unsigned long, float>>>, Offer_Comparator>&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>, std::map<unsigned long, float, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, float>>>&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>&, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long>>>&, int)
void relax_vertex(vertex_descriptor v,
			vertex_descriptor origin, 
		   float vd,
		   offer_pqueue_t& offer_pq, 
		   mutex_map_t distance_mutexes,
		   distance_map_t& distances,
		   mutex_map_t& predecessor_mutexes,
		   predecessor_map_t& predecessors,
		   int thread_id )
{
	std::lock_guard<std::mutex> guard(*distance_mutexes[v]);
	if (vd < distances[v]) 
	{

		{
//			if (DEBUG_THREAD) print_thread_debug(thread_id, "ADDING AN OFFER TO " + std::to_string(v) + "!!! distnace is " + std::to_string(vd) , debug_file_stream);
			std::lock_guard<std::mutex> guard2(pq_mutex);
			offer_pq.push(offer_t(v,vd));
//			if (DEBUG_THREAD) print_thread_debug(thread_id, "updating "+ std::to_string(v) +"'s predecessor", debug_file_stream);
			std::lock_guard<std::mutex> guard(*predecessor_mutexes[v]);
			//now update this node's predecessor 
			predecessors[v] = origin;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r9, %r15
movq %r8, %r13
movq %rdx, %r12
movss %xmm0, 0x4(%rsp)
movq %rsi, %r14
leaq 0x8(%rsp), %rsi
movq %rdi, (%rsi)
movq %rcx, %rdi
callq 0xc92a
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x3390
testl %eax, %eax
jne 0xc09a
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0xc990
movss (%rax), %xmm0
ucomiss 0x4(%rsp), %xmm0
jbe 0xc084
leaq 0xb29f(%rip), %rdi      # 0x172b8
callq 0x3390
testl %eax, %eax
jne 0xc0a1
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x8(%rsi)
movq %r12, %rdi
callq 0xc9f6
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xc92a
movq (%rax), %r15
movq %r15, %rdi
callq 0x3390
testl %eax, %eax
jne 0xc0a8
movq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xca90
movq %r14, (%rax)
movq %r15, %rdi
callq 0x3210
leaq 0xb239(%rip), %rdi      # 0x172b8
callq 0x3210
movq %rbx, %rdi
callq 0x3210
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x31c0
movl %eax, %edi
callq 0x31c0
movl %eax, %edi
callq 0x31c0
movq %rax, %r14
movq %r15, %rdi
callq 0x3210
jmp 0xc0c3
jmp 0xc0c0
jmp 0xc0d1
movq %rax, %r14
leaq 0xb1ee(%rip), %rdi      # 0x172b8
callq 0x3210
jmp 0xc0d4
movq %rax, %r14
movq %rbx, %rdi
callq 0x3210
movq %r14, %rdi
callq 0x3480
// File: /workspace/github_cpp_makefile_star2_O3/yanlinlin82[P]icpp/icpp.cpp
// Function: dump_enum()
void dump_enum()
{
	for (auto it = enum_values.begin(); it != enum_values.end(); ++it) {
		log("[DEBUG] enum '%s': [ ", it->first.c_str());
		size_t i = 0;
		for (auto e : it->second) {
			log("%s%s = %d", (++i == 1 ? "" : ", "), e.first.c_str(), e.second);
		}
		log(" ]\n");
	}
	for (auto it = enum_types.begin(); it != enum_types.end(); ++it) {
		log("[DEBUG] '%s' => [ '%s', %d ]\n", it->first.c_str(),
				it->second.first.c_str(), it->second.second);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x1f58c(%rip), %r14     # 0x23580
testq %r14, %r14
je 0x40ab
leaq -0x48(%rbp), %rbx
leaq 0x17247(%rip), %r13     # 0x1b24f
leaq 0x17236(%rip), %r12     # 0x1b245
movq 0x8(%r14), %rsi
leaq 0x17215(%rip), %rdi     # 0x1b22f
xorl %eax, %eax
callq 0x15114
movq %r14, -0x30(%rbp)
movq 0x38(%r14), %r14
testq %r14, %r14
je 0x408d
xorl %r15d, %r15d
movq %rbx, -0x58(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x16942
movl 0x28(%r14), %ecx
movl %ecx, -0x38(%rbp)
subq $0x1, %r15
movq %r13, %rsi
leaq 0x18423(%rip), %rax     # 0x1c481
cmovbq %rax, %rsi
movq -0x58(%rbp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x15114
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4085
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq (%r14), %r14
testq %r14, %r14
jne 0x4031
leaq 0x1836f(%rip), %rdi     # 0x1c403
xorl %eax, %eax
callq 0x15114
movq -0x30(%rbp), %r14
movq (%r14), %r14
testq %r14, %r14
jne 0x400f
movq 0x1f506(%rip), %r14     # 0x235b8
testq %r14, %r14
je 0x40dc
leaq 0x17194(%rip), %rbx     # 0x1b252
movq 0x8(%r14), %rsi
movq 0x28(%r14), %rdx
movl 0x48(%r14), %ecx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15114
movq (%r14), %r14
testq %r14, %r14
jne 0x40be
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1716d(%rip), %rdi     # 0x1b270
xorl %eax, %eax
callq 0x15114
movq 0x1f15f(%rip), %rax     # 0x23270
shlq $0x5, %rbx
movq (%rax,%rbx), %r15
leaq 0x1715a(%rip), %rbx     # 0x1b27a
leaq 0x1714f(%rip), %r14     # 0x1b276
movzbl (%r15), %eax
cmpl $0x9, %eax
je 0x4143
testl %eax, %eax
je 0x4152
movsbl %al, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x15114
jmp 0x414d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15114
incq %r15
jmp 0x4127
leaq 0x181b9(%rip), %rdi     # 0x1c312
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15114
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1f111(%rip), %rdi     # 0x23290
decq %rdi
callq 0x40eb
leaq 0x170eb(%rip), %rdi     # 0x1b279
xorl %eax, %eax
callq 0x15114
movq 0x1f0f4(%rip), %rax     # 0x23290
movq 0x1f0cd(%rip), %rcx     # 0x23270
shlq $0x5, %rax
movq -0x20(%rcx,%rax), %rbx
movb (%rbx), %al
testb %al, %al
je 0x41ee
leaq 0x170c1(%rip), %r14     # 0x1b27a
leaq 0x170bd(%rip), %r15     # 0x1b27d
movq 0x1f0e1(%rip), %rcx     # 0x232a8
leaq (%rbx,%rcx), %rdx
cmpq 0x1f0b6(%rip), %rdx     # 0x23288
je 0x41f5
cmpb $0x9, %al
movq %r15, %rdi
cmoveq %r14, %rdi
xorl %eax, %eax
callq 0x15114
movb 0x1(%rbx), %al
incq %rbx
testb %al, %al
jne 0x41c0
movq 0x1f0b3(%rip), %rcx     # 0x232a8
testq %rcx, %rcx
je 0x421a
leaq 0x16fe7(%rip), %rbx     # 0x1b1e8
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x15114
incq %r14
cmpq 0x1f090(%rip), %r14     # 0x232a8
jb 0x4204
movq 0x1f07f(%rip), %rsi     # 0x232a0
movl 0x1f071(%rip), %eax     # 0x23298
leaq 0x1efb2(%rip), %rcx     # 0x231e0
movq (%rcx,%rax,8), %rdx
leaq 0x17046(%rip), %rdi     # 0x1b27f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15114
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1705f(%rip), %rax     # 0x1b2f6
leaq 0x1705d(%rip), %rsi     # 0x1b2fb
testl %ebx, %ebx
cmovneq %rax, %rsi
movq (%rdi), %rdx
movq (%r8), %r9
leaq 0x16fe8(%rip), %rdi     # 0x1b299
movq %r12, %r8
xorl %eax, %eax
pushq %r10
pushq (%r13)
callq 0x151ad
addq $0x10, %rsp
leaq -0x98(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %ebx, %r13d
leaq 0x10(%rbp), %rcx
callq 0x16238
movq %r12, 0x48(%r15)
movq -0x30(%rbp), %rbx
movq %rbx, 0x50(%r15)
movb %r13b, 0x58(%r15)
movq -0x38(%rbp), %r15
leaq 0x1f0a4(%rip), %rdi     # 0x233a0
movq %r15, %rsi
callq 0x17042
leaq -0x98(%rbp), %rsi
movq %rax, %rdi
callq 0x174ac
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x432c
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x80(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x4345
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x90(%rbp), %rdi
testb %r13b, %r13b
je 0x437c
movq %rbx, -0x8(%rdi)
movq %r14, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x16942
leaq 0x1f0a2(%rip), %rdi     # 0x23410
leaq -0x98(%rbp), %rsi
callq 0x174f4
jmp 0x43a5
movq %rbx, -0x8(%rdi)
movq %r14, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x16942
leaq 0x1f03f(%rip), %rdi     # 0x233d8
leaq -0x98(%rbp), %rsi
callq 0x174f4
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x43bd
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 0x43ce
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x4402
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4402
movq %rax, %rdi
callq 0x15b21
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x15246
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1ef08(%rip), %rbx     # 0x23330
subq 0x1eef9(%rip), %rbx     # 0x23328
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x16942
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 0x16942
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x18000(%rip), %rdx     # 0x1c481
leaq -0x68(%rbp), %rdi
movq %rdx, %rsi
callq 0x169e0
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 0x4262
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x44cd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x44e5
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x44fe
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq 0x1ee2b(%rip), %rsi     # 0x23330
leaq 0x1ee1c(%rip), %rdi     # 0x23328
movq (%r14), %rdx
movq 0x8(%r14), %rcx
callq 0x17818
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 0x4547
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4547
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x4564
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x4564
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x457d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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, 0x1ed8e(%rip)     # 0x235e0
jl 0x4913
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x1eae8(%rip), %rax     # 0x23358
movq -0x20(%rax), %rsi
leaq 0x16ab8(%rip), %rdi     # 0x1b333
xorl %eax, %eax
callq 0x15114
movq 0x1eacf(%rip), %rax     # 0x23358
movq -0x28(%rax), %r12
testq %r12, %r12
je 0x4905
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %rbx
leaq 0x16ac0(%rip), %r14     # 0x1b361
xorl %r15d, %r15d
movq %r13, -0x50(%rbp)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x16942
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 0x15114
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x48f9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31d0
movq (%r12), %r12
incq %r15
testq %r12, %r12
jne 0x48a4
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x16a55(%rip), %rdi     # 0x1b394
xorl %eax, %eax
callq 0x151ad
movq 0x1ea0b(%rip), %r14     # 0x23358
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 0x16942
movl $0x1, 0x20(%r12)
movq %r15, 0x28(%r12)
leaq -0xa8(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x162ae
addq $-0x38, %r14
leaq -0xa8(%rbp), %rsi
movq %r14, %rdi
callq 0x17b4a
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49b9
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49d8
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x49ed
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x484b
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x15302
jmp 0x4a18
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x4a2d
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x58, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
leaq 0x167a4(%rip), %rdi     # 0x1b3bc
xorl %eax, %eax
callq 0x15114
movq (%r13), %rax
movslq (%rax,%r15,4), %r14
cmpq $0x29, %r14
ja 0x4c44
leaq (%r14,%r14,2), %rsi
addq %rsi, %rsi
addq 0x1e595(%rip), %rsi     # 0x231d0
leaq 0x1678b(%rip), %rdi     # 0x1b3cd
jmp 0x4c4e
leaq 0x1678a(%rip), %rdi     # 0x1b3d5
movq %r14, %rsi
xorl %eax, %eax
callq 0x15114
leaq 0x1(%r15), %rbx
cmpl $0x29, %r14d
ja 0x4d20
movl %r14d, %eax
movabsq $0x3e8000007f8, %rcx    # imm = 0x3E8000007F8
btq %rax, %rcx
jae 0x4d20
leaq 0x2(%r15), %rax
movq %rax, -0x30(%rbp)
movq (%r13), %rax
movl 0x4(%rax,%r15,4), %r13d
leaq 0x1674f(%rip), %rdx     # 0x1b3e1
leaq -0x80(%rbp), %rbx
movl $0x40, %esi
movq %rbx, %rdi
movl %r13d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x32c0
leaq 0x1673b(%rip), %rdi     # 0x1b3ed
movq %rbx, %rsi
xorl %eax, %eax
callq 0x15114
subq %r12, %r15
leaq -0x38(%rbp), %rsi
movq %r15, (%rsi)
leaq 0x1e69b(%rip), %rdi     # 0x23368
callq 0x187d2
testq %rax, %rax
je 0x4cef
movq 0x10(%rax), %rsi
leaq 0x16711(%rip), %rdi     # 0x1b3f3
xorl %eax, %eax
callq 0x15114
movq -0x30(%rbp), %rbx
jmp 0x4d20
cmpl $0x29, %r14d
movq -0x30(%rbp), %rbx
ja 0x4d20
movl %r14d, %eax
movabsq $0x3a000000000, %rcx    # imm = 0x3A000000000
btq %rax, %rcx
jae 0x4d20
movslq %r13d, %rsi
addq %rbx, %rsi
leaq 0x166e0(%rip), %rdi     # 0x1b3f9
xorl %eax, %eax
callq 0x15114
leaq 0x173f4(%rip), %rdi     # 0x1c11b
xorl %eax, %eax
callq 0x15114
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x14eae
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_O3/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 0x572d
movq 0x1d5db(%rip), %rdx     # 0x232a8
testq %rdx, %rdx
je 0x5ced
cmpq 0x8(%r14), %rdx
jne 0x5cc1
movq (%r14), %rsi
movq 0x1d5be(%rip), %rdi     # 0x232a0
callq 0x31e0
testl %eax, %eax
jne 0x5cc1
jmp 0x5d5a
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x16942
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x38(%rbp), %rdi
callq 0x16942
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5c40
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x5d45
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x5d5a
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 0x5d82
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0x5d82
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x5d97
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d470(%rip), %rdi     # 0x23220
movq %r14, %rsi
callq 0x18e2a
movq %rax, %rbx
testq %rax, %rax
jne 0x5dd1
movq (%r14), %rsi
leaq 0x1570d(%rip), %rdi     # 0x1b4d7
xorl %eax, %eax
callq 0x1546f
movl 0x28(%rbx), %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6019
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, %r14d      # imm = 0xFFFFFFA9
xorl %r12d, %r12d
movsbl (%r13), %esi
testl %esi, %esi
je 0x60b7
movzbl %sil, %eax
cmpl $0x2e, %eax
je 0x60b7
leal -0x30(%rsi), %ecx
cmpb $0xa, %cl
jb 0x6058
addl $-0x41, %eax
cmpl $0x25, %eax
ja 0x609c
movabsq $0x3f0000003f, %rcx     # imm = 0x3F0000003F
btq %rax, %rcx
jae 0x609c
movl $0xffffffc9, %ebx       # imm = 0xFFFFFFC9
cmpb $0x41, %sil
jge 0x6068
movl $0xffffffd0, %ebx       # imm = 0xFFFFFFD0
movsbl %sil, %eax
cmpb $0x61, %sil
cmovgel %r14d, %ebx
addl %eax, %ebx
cmpl %r15d, %ebx
jl 0x6090
movq -0x38(%rbp), %rax
movq (%rax), %rsi
leaq 0x15490(%rip), %rdi     # 0x1b519
xorl %eax, %eax
callq 0x1546f
imull %r15d, %r12d
addl %ebx, %r12d
incq %r13
jmp 0x6022
movq -0x38(%rbp), %rax
movq (%rax), %rdx
leaq 0x15445(%rip), %rdi     # 0x1b4ef
xorl %eax, %eax
callq 0x1546f
movb (%r13), %sil
jmp 0x6058
movl %r12d, %eax
negl %eax
cmpb $0x2d, -0x29(%rbp)
cmovnel %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6160
movq %rsi, %r14
movl $0x1, %r13d
movl $0x2, %r12d
movq (%r14), %rcx
movb (%rcx,%r13), %al
cmpb $0x5c, %al
jne 0x6130
movzbl (%rcx,%r12), %eax
cmpl $0x6e, %eax
je 0x6144
cmpl $0x72, %eax
je 0x6140
cmpl $0x74, %eax
jne 0x6146
movb $0x9, %al
jmp 0x6146
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3190
movq %r13, %r12
jmp 0x6151
movb $0xd, %al
jmp 0x6146
movb $0xa, %al
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3190
leaq 0x1(%r12), %r13
addq $0x2, %r12
cmpq 0x8(%r14), %r12
jb 0x610d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6174
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x618a
movq (%r15), %rsi
incq %rsi
callq 0x31d0
movq %r14, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d101(%rip), %rdi     # 0x232a0
leaq 0x15388(%rip), %rsi     # 0x1b52e
callq 0x30b0
movb $0x1, %bl
testl %eax, %eax
je 0x6291
leaq 0x1d0e4(%rip), %rdi     # 0x232a0
leaq 0x15370(%rip), %rsi     # 0x1b533
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d0c9(%rip), %rdi     # 0x232a0
leaq 0x15d03(%rip), %rsi     # 0x1bee1
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d0ae(%rip), %rdi     # 0x232a0
leaq 0x15344(%rip), %rsi     # 0x1b53d
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d093(%rip), %rdi     # 0x232a0
leaq 0x15325(%rip), %rsi     # 0x1b539
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d07c(%rip), %rdi     # 0x232a0
leaq 0x15317(%rip), %rsi     # 0x1b542
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d065(%rip), %rdi     # 0x232a0
leaq 0x15cab(%rip), %rsi     # 0x1beed
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d04e(%rip), %rdi     # 0x232a0
leaq 0x152f1(%rip), %rsi     # 0x1b54a
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d037(%rip), %rdi     # 0x232a0
leaq 0x152d8(%rip), %rsi     # 0x1b548
callq 0x30b0
testl %eax, %eax
je 0x6291
leaq 0x1d020(%rip), %rdi     # 0x232a0
leaq 0x152ca(%rip), %rsi     # 0x1b551
callq 0x30b0
testl %eax, %eax
sete %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0xeed8(%rip), %rsi      # 0x1b1d1
movq %rbx, %rdi
callq 0x30b0
movq (%rbx), %rdi
leaq -0x18(%rbp), %rax
cmpq %rax, %rdi
je 0xc319
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_O3/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 0xbe3c(%rip), %rdi      # 0x1bbc0
leaq 0xbe44(%rip), %rsi      # 0x1bbcf
xorl %eax, %eax
callq 0x151ad
leaq 0x13507(%rip), %rdi     # 0x232a0
leaq 0xb7c6(%rip), %rsi      # 0x1b566
callq 0x30b0
testl %eax, %eax
je 0xfdf7
leaq 0x134f0(%rip), %rdi     # 0x232a0
leaq 0xb7b4(%rip), %rsi      # 0x1b56b
callq 0x30b0
testl %eax, %eax
je 0xfdf7
leaq 0x134d9(%rip), %rdi     # 0x232a0
leaq 0xb78a(%rip), %rsi      # 0x1b558
callq 0x30b0
testl %eax, %eax
je 0xfdf7
leaq 0x134c2(%rip), %rdi     # 0x232a0
leaq 0xb77a(%rip), %rsi      # 0x1b55f
callq 0x30b0
testl %eax, %eax
je 0xfdf7
callq 0x6192
testb %al, %al
je 0xfe09
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xd8f1
leaq -0x68(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xb3f7(%rip), %rsi      # 0x1b20f
leaq 0xb3f1(%rip), %rdx      # 0x1b210
leaq -0x78(%rbp), %rbx
movq %rbx, %rdi
callq 0x169e0
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x8d9d
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfe60
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0xfe75
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xb38b(%rip), %rsi      # 0x1b20f
leaq 0xb385(%rip), %rdx      # 0x1b210
leaq -0x58(%rbp), %rdi
callq 0x169e0
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xbd37(%rip), %rsi      # 0x1bbda
leaq 0xbd39(%rip), %rdx      # 0x1bbe3
leaq -0x38(%rbp), %rdi
callq 0x169e0
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5c40
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xfed5
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0xfeea
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 0xff15
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0xff15
movq %rax, %rbx
movq -0x58(%rbp), %rdi
jmp 0xff22
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0xff32
movq (%r14), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x12480
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq -0x48(%rbp), %r15
leaq 0x10e31(%rip), %r12     # 0x23270
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 0x12493
movq %r12, %rdi
movq %r15, %rsi
callq 0x156da
jmp 0x1243f
movq (%r15), %rsi
leaq 0x99e4(%rip), %rdi      # 0x1be6e
xorl %eax, %eax
callq 0x1546f
jmp 0x124b4
leaq -0x250(%rbp), %rdi
callq 0x3070
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x124b4
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 0x124db
movq %rax, %rbx
jmp 0x124f3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x124f3
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_O3/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
leaq -0x10(%rbp), %rax
movq %rsi, (%rax)
leaq 0xf346(%rip), %rdi      # 0x233d8
movq %rax, %rsi
callq 0x187d2
testq %rax, %rax
je 0x140c3
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x16942
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq -0x10(%rbp), %rsi
leaq 0x80fc(%rip), %rdi      # 0x1c1ca
xorl %eax, %eax
callq 0x1546f
movl $0x1, %edi
callq 0x3230
// File: /workspace/github_cpp_makefile_star2_O3/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
cmpl $0x2, %edi
jl 0x14ddb
movq %rsi, %rbx
movl %edi, %r14d
movl 0xe83d(%rip), %eax      # 0x235e0
addq $0x10, %rbx
xorl %r13d, %r13d
movq -0x8(%rbx), %r15
cmpb $0x2d, (%r15)
jne 0x14dfc
movb 0x1(%r15), %cl
cmpb $0x76, %cl
jne 0x14dc5
incl %eax
movl %eax, 0xe81b(%rip)      # 0x235e0
decl %r14d
cmpb $0x73, %cl
sete %cl
orb %cl, %r13b
addq $0x8, %rbx
cmpl $0x1, %r14d
ja 0x14daa
leaq 0x76e5(%rip), %rdi      # 0x1c4c7
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x15114
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x10bb9(%rip), %rax    # 0x424a
movq %rax, 0xe7e6(%rip)      # 0x235f0
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 0x169e0
movq %r12, %rdi
callq 0x123df
movl %eax, %r15d
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x14e51
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
testb %r15b, %r15b
je 0x14e5b
callq 0x13084
testb $0x1, %r13b
je 0x14e6a
callq 0x139cc
xorl %ebx, %ebx
jmp 0x14deb
addl $-0x2, %r14d
movl %r14d, %edi
movq %rbx, %rsi
callq 0x14520
movl %eax, %ebx
jmp 0x14deb
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x14e9c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320
// File: /workspace/github_cpp_makefile_star2_O3/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 0x26dc
movl 0x48(%rdi), %eax
movl %esi, 0x54(%rdi)
movl %eax, 0x50(%rdi)
jmp 0x26e6
jne 0x26e6
movl 0x48(%rdi), %eax
cmpl 0x50(%rdi), %eax
jg 0x26d4
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0xd681
pushq %rbp
movq %rsp, %rbp
movss 0x1d0(%rdi), %xmm0
cvtss2sd %xmm0, %xmm1
mulsd 0x4ccc(%rip), %xmm1     # 0x121e0
movss 0x1dc(%rdi), %xmm2
cvtss2sd %xmm2, %xmm3
ucomisd %xmm1, %xmm3
ja 0xd680
movss 0x180(%rdi), %xmm1
cvtss2sd %xmm1, %xmm4
mulsd 0x4e42(%rip), %xmm4     # 0x12380
movss 0x184(%rdi), %xmm3
cvtss2sd %xmm3, %xmm5
ucomisd %xmm4, %xmm5
ja 0xd561
addss %xmm2, %xmm0
mulss 0x5038(%rip), %xmm0     # 0x12594
movaps %xmm0, %xmm1
jmp 0xd56d
addss %xmm3, %xmm1
mulss 0x4fa3(%rip), %xmm1     # 0x12510
movss %xmm1, 0xe8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rdi)
movq 0x38(%rdi), %rcx
movq %rcx, 0xc8(%rdi)
movq $0x0, 0xc0(%rdi)
xorl %eax, %eax
movl $0x10, %edx
movss (%rcx), %xmm0
ucomiss 0xe8(%rdi), %xmm0
jbe 0xd5d1
movl %eax, %ecx
andb $0x7, %cl
movl $0x1, %edx
shll %cl, %edx
sarl $0x3, %eax
cltq
orb %dl, 0xa0(%rdi,%rax)
movq 0xc8(%rdi), %rcx
movl 0x48(%rdi), %edx
movl 0xc0(%rdi), %eax
addq $0x8, %rcx
movq %rcx, 0xc8(%rdi)
leal 0x1(%rax), %esi
movl %esi, 0xc0(%rdi)
cmpl %edx, %eax
movl %esi, %eax
jl 0xd59c
cmpl $0x10, %edx
jne 0xd680
movzbl 0xa0(%rdi), %eax
movzbl 0xa1(%rdi), %ecx
addl %eax, %ecx
cmpl $0xff, %ecx
jne 0xd680
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
// File: /workspace/github_cpp_makefile_star2_O3/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 0xd861
movq %rdi, %rbx
movss 0x1cc(%rdi), %xmm1
movss 0x1d8(%rdi), %xmm0
ucomiss %xmm0, %xmm1
jne 0xd861
jp 0xd861
movss 0x1d0(%rbx), %xmm1
ucomiss 0x184(%rbx), %xmm1
jae 0xd861
movq 0x38(%rbx), %rax
movss (%rax), %xmm2
addss 0x4(%rax), %xmm2
ucomiss %xmm2, %xmm1
jne 0xd861
jp 0xd861
xorps %xmm2, %xmm2
cvtss2sd %xmm1, %xmm2
mulsd 0x4a84(%rip), %xmm2     # 0x12178
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
ja 0xd861
mulsd 0x4c0b(%rip), %xmm1     # 0x12318
xorps %xmm2, %xmm2
cvtss2sd 0x1dc(%rbx), %xmm2
ucomisd %xmm1, %xmm2
ja 0xd861
mulss 0x4de6(%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 0xfe52
movl 0xc0(%rbx), %eax
addl $0x7, %eax
sarl $0x3, %eax
testl %eax, %eax
jle 0xd7c4
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
ja 0xd77b
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 0xd85b
shll $0x4, %eax
shrl $0x4, %edx
orl %eax, %edx
andl $0x1, %ecx
leaq 0x574d(%rip), %rsi      # 0x12f9b
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_O3/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 0x4b29(%rip), %xmm0     # 0x12670
jb 0xdc39
movq %rdi, %rbx
cmpl $0x5, 0x48(%rdi)
jl 0xdc39
cmpl $0x0, 0x54(%rbx)
jg 0xdc39
movss 0x190(%rbx), %xmm0
ucomiss 0x4afd(%rip), %xmm0     # 0x12670
ja 0xdc39
movss 0x4a73(%rip), %xmm1     # 0x125f4
ucomiss %xmm0, %xmm1
ja 0xdc39
movss 0x184(%rbx), %xmm0
ucomiss 0x4ae7(%rip), %xmm0     # 0x12680
ja 0xdc39
movq 0x38(%rbx), %rsi
movsd 0x48ed(%rip), %xmm0     # 0x12498
movsd 0x48ed(%rip), %xmm1     # 0x124a0
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xb, %r8d
movl $0xb, %r9d
callq 0x101a2
testl %eax, %eax
je 0xdc39
movl %eax, %r14d
movq 0x148(%rbx), %rdi
leaq 0x53f1(%rip), %rsi      # 0x12fd1
movl %eax, %edx
xorl %eax, %eax
callq 0x2060
testl %r14d, %r14d
jle 0xdc39
movl %r14d, %r15d
leaq 0x53d3(%rip), %r13      # 0x12fcb
xorl %r12d, %r12d
movq 0x148(%rbx), %r14
movq %r14, %rdi
callq 0x2090
addq %rax, %r14
testq %r12, %r12
movq %r13, %rsi
leaq 0x52f2(%rip), %rax      # 0x12f0c
cmoveq %rax, %rsi
movzbl 0xa0(%rbx,%r12), %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2060
incq %r12
cmpq %r12, %r15
jne 0xdbfb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0xe400
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movss (%rax), %xmm0
movss 0x42cd(%rip), %xmm1     # 0x1255c
ucomiss %xmm0, %xmm1
ja 0xe3fa
ucomiss 0x440d(%rip), %xmm0     # 0x126ac
ja 0xe3fa
movss 0x140(%rbx), %xmm1
ucomiss 0x98(%rbx), %xmm1
jb 0xe3fa
movss 0x43ee(%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 0x1003a
testl %eax, %eax
je 0xe3fa
movq 0xc8(%rbx), %rax
cmpq 0x40(%rbx), %rax
jb 0xe3fa
leaq 0xa0(%rbx), %rax
movb (%rax), %al
movss 0x41d4(%rip), %xmm0     # 0x12514
testb %al, %al
je 0xe35a
movss 0x4218(%rip), %xmm1     # 0x12564
movl %eax, %ecx
shrb %cl
addss %xmm1, %xmm0
cmpb $0x1, %al
movl %ecx, %eax
ja 0xe34e
subss 0x104(%rbx), %xmm0
divss 0xfc(%rbx), %xmm0
addss 0x98(%rbx), %xmm0
movss 0x140(%rbx), %xmm1
ucomiss %xmm0, %xmm1
jb 0xe3fa
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