// File: /workspace/github_cpp_makefile_star2_O1/yanlinlin82[P]icpp/icpp.cpp
// Function: query_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
auto query_function(string name, vector<string>& arg_types) -> tuple<size_t, string, bool, string, int> // offset, arg_types, is_code, type_name, arg_count
{
	auto it = override_functions.find(name);
	if (it == override_functions.end()) {
		err("function '%s' not defined!\n", name.c_str());
	}
	string type_name;
	if (name == "printf") {
		if (arg_types.empty()) err("missing parameter in printf()!\n");
		type_name = arg_types[0] + ",...";
	} else {
		type_name = vector_to_string(arg_types);
	}
	for (auto it2 = it->second.begin(); it2 != it->second.end(); ++it2) {
		if (*it2 == name + "(" + type_name + ")") {
			auto it3 = symbols.find(*it2);
			if (it3 == symbols.end()) {
				err("unexpected runtime error!\n");
			}
			auto [ is_code, offset, size, symbol_type_name, ret_type, arg_count ] = it3->second;
			return make_tuple(offset, ret_type, is_code, type_name, arg_count);
		}
	}
	err("function '%s' not matched!\n", name.c_str());
	exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r12
leaq 0x1dbe7(%rip), %rdi     # 0x24448
callq 0x19542
movq %rax, %r15
testq %rax, %rax
jne 0x6880
movq (%r13), %rsi
leaq 0x15d1b(%rip), %rdi     # 0x1c594
xorl %eax, %eax
callq 0x1585f
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x15d16(%rip), %rsi     # 0x1c5b0
movq %r13, %rdi
callq 0x30b0
testl %eax, %eax
movq %r12, -0xf0(%rbp)
je 0x6936
leaq -0x108(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x15946(%rip), %rsi     # 0x1c209
leaq 0x15940(%rip), %rdx     # 0x1c20a
leaq -0x118(%rbp), %rdi
callq 0x16dc8
leaq -0xe8(%rbp), %rdi
leaq -0x118(%rbp), %rdx
movq %rbx, %rsi
callq 0x5e90
leaq -0x48(%rbp), %rdi
leaq -0xe8(%rbp), %rbx
movq %rbx, %rsi
callq 0x3240
movq (%rbx), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x691d
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x118(%rbp), %rdi
cmpq %r14, %rdi
je 0x69ae
movq -0x108(%rbp), %rsi
jmp 0x69a6
movq (%rbx), %rax
cmpq 0x8(%rbx), %rax
jne 0x694d
leaq 0x15c71(%rip), %rdi     # 0x1c5b7
xorl %eax, %eax
callq 0x1585f
movq (%rbx), %rax
leaq -0xd8(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x16d2e
leaq 0x165af(%rip), %rsi     # 0x1cf27
leaq -0xe8(%rbp), %rdi
callq 0x3360
leaq -0x48(%rbp), %rdi
leaq -0xe8(%rbp), %rbx
movq %rbx, %rsi
callq 0x3240
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x69ae
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31d0
addq $0x38, %r15
leaq -0xd8(%rbp), %r14
leaq -0x68(%rbp), %r12
movq %r13, -0xf8(%rbp)
movq (%r15), %r15
testq %r15, %r15
je 0x6c2c
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x16d2e
movq %r12, %rdi
leaq 0x15fcf(%rip), %rsi     # 0x1c9c4
callq 0x3360
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x30c0
leaq -0x78(%rbp), %rsi
movq %rsi, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6a34
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x6a3a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rdi
leaq 0x16126(%rip), %rsi     # 0x1cb85
callq 0x3360
movq %r14, -0xe8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6a8d
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0x6a94
movups (%rcx), %xmm0
movups %xmm0, (%r14)
leaq 0x8(%r15), %rbx
movq 0x8(%rax), %rdx
movq %rdx, -0xe0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%r15), %rdx
cmpq -0xe0(%rbp), %rdx
jne 0x6adb
testq %rdx, %rdx
je 0x6ae0
movq -0xe8(%rbp), %rsi
movq (%rbx), %rdi
callq 0x31e0
testl %eax, %eax
sete %r13b
jmp 0x6ae3
xorl %r13d, %r13d
jmp 0x6ae3
movb $0x1, %r13b
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x6afe
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6b1a
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6b33
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
testb %r13b, %r13b
movq -0xf8(%rbp), %r13
je 0x69c4
leaq 0x1d856(%rip), %rdi     # 0x243a0
movq %rbx, %rsi
callq 0x19586
movq %rax, %rbx
testq %rax, %rax
jne 0x6b68
leaq 0x15a76(%rip), %rdi     # 0x1c5d7
xorl %eax, %eax
callq 0x1585f
leaq 0x28(%rbx), %rsi
leaq -0xe8(%rbp), %rdi
leaq -0x38(%rbp), %r14
callq 0x1678e
movq -0xf0(%rbp), %r15
movq 0x70(%rbx), %rax
leaq -0x90(%rbp), %rdx
movq %rax, -0x10(%rdx)
movq 0x78(%rbx), %rax
movq %rax, -0x8(%rdx)
movb 0x80(%rbx), %al
movb %al, (%rdx)
leaq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rcx
leaq -0xe8(%rbp), %r8
movq %r15, %rdi
callq 0x16806
leaq -0xb0(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, 0x50(%r15)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6be3
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c02
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x6c17
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %r15, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rsi
leaq 0x159bb(%rip), %rdi     # 0x1c5f2
xorl %eax, %eax
callq 0x1585f
movl $0x1, %edi
callq 0x3230
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x6cde
movq -0xd8(%rbp), %rsi
jmp 0x6cd6
jmp 0x6c9a
movq %rax, %rbx
movq -0x118(%rbp), %rdi
cmpq %r14, %rdi
je 0x6cde
movq -0x108(%rbp), %rsi
jmp 0x6cd6
jmp 0x6c9a
movq %rax, %rbx
leaq -0xe8(%rbp), %rdi
callq 0x15636
jmp 0x6ce2
movq %rax, %rbx
jmp 0x6ce2
jmp 0x6c9a
jmp 0x6c9a
movq %rax, %rbx
jmp 0x6cde
jmp 0x6ca1
movq %rax, %rbx
jmp 0x6cc5
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6cc5
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6cde
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x38(%rbp), %r14
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x6cf7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320