// File: /workspace/github_cpp_makefile_star2_O3/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 $0xe8, %rsp
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r12
leaq 0x1ccac(%rip), %rdi     # 0x23448
callq 0x19148
movq %rax, %r15
testq %rax, %rax
jne 0x67bb
movq (%r13), %rsi
leaq 0x14de0(%rip), %rdi     # 0x1b594
xorl %eax, %eax
callq 0x1546f
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x14ddb(%rip), %rsi     # 0x1b5b0
movq %r13, %rdi
callq 0x30b0
testl %eax, %eax
movq %r12, -0xf0(%rbp)
je 0x6871
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x14a0b(%rip), %rsi     # 0x1b209
leaq 0x14a05(%rip), %rdx     # 0x1b20a
leaq -0x110(%rbp), %rdi
callq 0x169e0
leaq -0xe8(%rbp), %rdi
leaq -0x110(%rbp), %rdx
movq %rbx, %rsi
callq 0x5dd9
leaq -0x48(%rbp), %rdi
leaq -0xe8(%rbp), %rbx
movq %rbx, %rsi
callq 0x3240
movq (%rbx), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x6858
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x68e9
movq -0x100(%rbp), %rsi
jmp 0x68e1
movq (%rbx), %rax
cmpq 0x8(%rbx), %rax
jne 0x688b
leaq 0x14d36(%rip), %rdi     # 0x1b5b7
xorl %eax, %eax
callq 0x1546f
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 0x16942
leaq 0x15674(%rip), %rsi     # 0x1bf27
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 0x68e9
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x31d0
addq $0x38, %r15
leaq -0x78(%rbp), %r14
leaq -0x68(%rbp), %r12
movq (%r15), %r15
testq %r15, %r15
je 0x6b74
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x16942
movq %r12, %rdi
leaq 0x1509e(%rip), %rsi     # 0x1b9c4
callq 0x3360
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x30c0
movq %r14, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6961
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x6968
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rdi
leaq 0x151f8(%rip), %rsi     # 0x1bb85
callq 0x3360
leaq -0xd8(%rbp), %rsi
movq %rsi, -0xe8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x69c2
movq %rdx, -0xe8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd8(%rbp)
jmp 0x69c8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %r13, %r12
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 0x6a1c
movq -0xe8(%rbp), %r13
testq %rdx, %rdx
je 0x6a28
movq (%rbx), %rdi
movq %r13, %rsi
callq 0x31e0
leaq -0xd8(%rbp), %rsi
testl %eax, %eax
sete %r14b
jmp 0x6a2b
movq -0xe8(%rbp), %r13
xorl %r14d, %r14d
jmp 0x6a2b
movb $0x1, %r14b
cmpq %rsi, %r13
je 0x6a42
movq -0xd8(%rbp), %rsi
incq %rsi
movq %r13, %rdi
callq 0x31d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6a5e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
movq %r12, %r13
je 0x6a7a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
testb %r14b, %r14b
leaq -0x78(%rbp), %r14
leaq -0x68(%rbp), %r12
je 0x68f5
leaq 0x1c90e(%rip), %rdi     # 0x233a0
movq %rbx, %rsi
callq 0x1918c
movq %rax, %rbx
testq %rax, %rax
jne 0x6ab0
leaq 0x14b2e(%rip), %rdi     # 0x1b5d7
xorl %eax, %eax
callq 0x1546f
leaq 0x28(%rbx), %rsi
leaq -0xe8(%rbp), %rdi
leaq -0x38(%rbp), %r14
callq 0x163a6
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 0x1641e
leaq -0xb0(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, 0x50(%r15)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b2b
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b4a
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x6b5f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %r15, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rsi
leaq 0x14a73(%rip), %rdi     # 0x1b5f2
xorl %eax, %eax
callq 0x1546f
movl $0x1, %edi
callq 0x3230
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x6c1e
movq -0xd8(%rbp), %rsi
jmp 0x6c16
jmp 0x6bde
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x6c1e
movq -0x100(%rbp), %rsi
jmp 0x6c16
jmp 0x6bde
movq %rax, %rbx
leaq -0xe8(%rbp), %rdi
callq 0x15246
jmp 0x6c22
movq %rax, %rbx
jmp 0x6c22
jmp 0x6bde
jmp 0x6bde
movq %rax, %rbx
jmp 0x6c1e
jmp 0x6be5
movq %rax, %rbx
jmp 0x6c05
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x6c05
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6c1e
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x31d0
leaq -0x38(%rbp), %r14
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x6c37
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320