// File: 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:
subq $0xd8, %rsp
movl %ecx, %eax
movq %rdx, 0x30(%rsp)
movq %rsi, %rcx
leaq 0xe0(%rsp), %rsi
movq %rsi, 0x38(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rcx, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
andb $0x1, %al
movb %al, 0xbf(%rsp)
movq 0xd0(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x58, %rdi
callq 0x190140
movq %rax, %rdi
movq 0xc8(%rsp), %rsi
callq 0x191410
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x191340
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x191370
movq %rax, 0x98(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1913a0
xorb $-0x1, %al
testb $0x1, %al
jne 0x4a8b7
jmp 0x4ab20
leaq 0xa0(%rsp), %rdi
callq 0x1913e0
movq 0x30(%rsp), %rsi
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0x4a6e0
testb $0x1, %al
jne 0x4a8e7
jmp 0x4ab0c
testb $0x1, 0xbf(%rsp)
je 0x4a908
movq 0x30(%rsp), %rsi
movq 0x90(%rsp), %rdi
callq 0x191440
jmp 0x4ab0a
movq 0x40(%rsp), %rsi
movq 0x2b66dc(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x1c24e9(%rip), %rsi    # 0x20ce0c
callq 0x13380
movq 0x30(%rsp), %rdi
movq %rax, 0x20(%rsp)
addq $0x98, %rdi
callq 0x2b420
movq 0x20(%rsp), %rdi
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0x133c10
movq %rax, %rdi
leaq 0x1d6353(%rip), %rsi    # 0x220cc5
callq 0x13380
movq 0x38(%rsp), %rdi
movq %rax, 0x28(%rsp)
callq 0x2b420
movq 0x28(%rsp), %rdi
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x133c10
movq %rax, %rdi
leaq 0x1c0cae(%rip), %rsi    # 0x20b65c
callq 0x13380
movq %rax, %rdi
movq 0xc8(%rsp), %rsi
callq 0x131a0
movq %rax, %rdi
leaq 0x1c2427(%rip), %rsi    # 0x20cdf4
callq 0x13380
movq 0x30(%rsp), %rdi
addq $0xb8, %rdi
callq 0x57080
cmpq $0x0, %rax
jbe 0x4aa3a
movq 0x40(%rsp), %rsi
movq 0x2b65fb(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq 0x30(%rsp), %rdi
movq %rax, 0x18(%rsp)
addq $0xb8, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x190e30
movq %rax, %rdi
callq 0x2b420
movq 0x18(%rsp), %rdi
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x133c10
movl $0x1, 0x5c(%rsp)
movq 0x30(%rsp), %rdi
movslq 0x5c(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0xb8, %rdi
callq 0x57080
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x4aadb
movq 0x40(%rsp), %rsi
movq 0x2b657a(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x1c188a(%rip), %rsi    # 0x20c30f
callq 0x13380
movq 0x30(%rsp), %rdi
movq %rax, 0x8(%rsp)
addq $0xb8, %rdi
movslq 0x5c(%rsp), %rsi
callq 0x190e30
movq %rax, %rdi
callq 0x2b420
movq 0x8(%rsp), %rdi
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x133c10
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x4aa42
movq 0x40(%rsp), %rsi
movq 0x2b6509(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x1c246a(%rip), %rsi    # 0x20cf60
callq 0x13380
movq %rax, %rdi
movq 0x2b64db(%rip), %rsi    # 0x300fe0
callq 0x135d0
jmp 0x4ab0c
jmp 0x4ab0e
leaq 0xa0(%rsp), %rdi
callq 0x1913f0
jmp 0x4a897
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdi
addq $0x58, %rdi
callq 0x190140
movq %rax, %rdi
movq 0xc8(%rsp), %rsi
callq 0x191410
movq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x191510
addq $0xd8, %rsp
retq
nopl (%rax,%rax)