// File: /workspace/github_cpp_makefile_star2_O2/Heptagon196[P]Gos/Reflection/ReflMgr.cpp
// Function: ReflMgr::AddMethodInfo(TypeID, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, MethodInfo, bool)
void ReflMgr::AddMethodInfo(TypeID type, const std::string& name, MethodInfo info, bool overridePrevious) {
    std::vector<MethodInfo>& lst = methodInfo[type][name];
    for (MethodInfo& data : lst) {
        if (data.sameDeclareTo(info)) {
            if (overridePrevious) {
                data = info;
            } else {
                ERROR << "Error: same type of function already registered: " << info.returnType.getName() << " " << type.getName() << "::" << name << "(";
                if (info.argsList.size() > 0) {
                    ERROR << info.argsList[0].getName();
                }
                for (int i = 1; i < info.argsList.size(); i++) {
                    ERROR << ", " << info.argsList[i].getName();
                }
                ERROR << ")" << std::endl;
            }
        }
    }
    methodInfo[type][name].push_back(info);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0x70(%rsp), %rsi
addq $0x58, %rdi
movq %rdi, 0x18(%rsp)
callq 0x71c2c
movq %rax, %rdi
movq %r14, 0x10(%rsp)
movq %r14, %rsi
callq 0x72c9a
movq (%rax), %r13
movq 0x8(%rax), %r14
leaq 0x98(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0xe7d88(%rip), %r15     # 0x105ff0
movl %ebp, 0xc(%rsp)
movq %r14, 0x28(%rsp)
cmpq %r14, %r13
je 0x1e3ff
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1e17e
testb %al, %al
je 0x1e3f3
testb %bpl, %bpl
je 0x1e2a2
movq %r13, %rdi
movq %rbx, %rsi
callq 0x6f67a
jmp 0x1e3f3
movq %r13, 0x30(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x11320
movq %rax, %rdi
leaq 0x791f0(%rip), %rsi     # 0x974ac
callq 0x11340
movq %rax, %rbp
movq 0x20(%rsp), %rdi
callq 0x1b9ce
movq %rbp, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x113b0
movq %rax, %rdi
leaq 0x8b4cf(%rip), %rsi     # 0xa97b5
callq 0x11340
movq %rax, %rbp
leaq 0x70(%rsp), %rdi
callq 0x1b9ce
movq %rbp, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x113b0
movq %rax, %rdi
leaq 0x779ec(%rip), %rsi     # 0x95cfc
callq 0x11340
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x11320
movq %rax, %rdi
leaq 0x79168(%rip), %rsi     # 0x97494
callq 0x11340
movq 0xc0(%rbx), %rax
cmpq 0xb8(%rbx), %rax
je 0x1e369
movq %r15, %rdi
movq %r12, %rsi
callq 0x11320
movq %rax, %rbp
movq 0xb8(%rbx), %rdi
callq 0x1b9ce
movq %rbp, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x113b0
movq %r15, %r13
pushq $0x20
popq %r14
pushq $0x1
popq %r15
movq 0xc0(%rbx), %rbp
subq 0xb8(%rbx), %rbp
sarq $0x5, %rbp
movq %r13, %rdi
movq %r12, %rsi
callq 0x11320
movq %rax, %rdi
cmpq %r15, %rbp
jbe 0x1e3ce
leaq 0x7860f(%rip), %rsi     # 0x969af
callq 0x11340
movq %rax, %rbp
movq 0xb8(%rbx), %rdi
addq %r14, %rdi
callq 0x1b9ce
movq %rbp, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x113b0
incq %r15
addq $0x20, %r14
jmp 0x1e374
leaq 0x7922b(%rip), %rsi     # 0x97600
callq 0x11340
movq %rax, %rdi
callq 0x111b0
movl 0xc(%rsp), %ebp
movq 0x28(%rsp), %r14
movq %r13, %r15
movq 0x30(%rsp), %r13
addq $0xd0, %r13
jmp 0x1e271
movq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x71c2c
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x72c9a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6f6ea
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop