// File: Heptagon196[P]Gos/Reflection/ReflMgr.cpp
// Function: void ReflMgr::CheckParams<MethodInfo>(MethodInfo&, ArgsTypeList const&, MethodInfo**, bool)
void ReflMgr::CheckParams(MethodInfoType& info, const ArgsTypeList& lst, MethodInfoType** rec, bool showError) {
    if (info.argsList.size() != lst.size()) {
        return;
    }
    bool same = true;
    bool generics = false;
    for (int i = 0; i < info.argsList.size(); i++) {
        if (lst[i].getHash() != info.argsList[i].getHash()) {
            same = false;
        }
        bool canUseGenerics = info.argsList[i].getHash() == TypeID::get<ReflMgr::Any>().getHash();
        if (canUseGenerics) {
            generics = true;
        }
        if (!lst[i].canBeAppliedTo(info.argsList[i]) && !canUseGenerics) {
            if (showError) {
                ERROR << "Candidate: ";
                ERROR << info.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;
                ERROR << lst[i].getName() << " cannot apply to " << info.argsList[i].getName() << std::endl;
            }
            return;
        }
    }
    if (same && !generics) {
        rec[0] = &info;
    } else if (!generics) {
        rec[1] = &info;
    } else {
        rec[2] = &info;
    }
}

// Assembly:
subq $0xf8, %rsp
movb %r8b, %al
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movq %rcx, 0xd8(%rsp)
andb $0x1, %al
movb %al, 0xd7(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
callq 0x57080
movq %rax, 0x58(%rsp)
movq 0xe0(%rsp), %rdi
callq 0x57080
movq %rax, %rcx
movq 0x58(%rsp), %rax
cmpq %rcx, %rax
je 0x1909b8
jmp 0x190e21
movb $0x1, 0xd6(%rsp)
movb $0x0, 0xd5(%rsp)
movl $0x0, 0xd0(%rsp)
movslq 0xd0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
callq 0x57080
movq %rax, %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
jae 0x190dc2
movq 0xe0(%rsp), %rdi
movslq 0xd0(%rsp), %rsi
callq 0x57a40
movq %rax, %rdi
callq 0x2b410
movq %rax, 0x40(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
movslq 0xd0(%rsp), %rsi
callq 0x190e30
movq %rax, %rdi
callq 0x2b410
movq %rax, %rcx
movq 0x40(%rsp), %rax
cmpq %rcx, %rax
je 0x190a60
movb $0x0, 0xd6(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
movslq 0xd0(%rsp), %rsi
callq 0x190e30
movq %rax, %rdi
callq 0x2b410
movq %rax, 0x38(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x56900
leaq 0xa8(%rsp), %rdi
callq 0x2b410
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movb %al, 0xcf(%rsp)
testb $0x1, 0xcf(%rsp)
je 0x190acc
movb $0x1, 0xd5(%rsp)
movq 0xe0(%rsp), %rdi
movslq 0xd0(%rsp), %rsi
callq 0x57a40
movq %rax, 0x30(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
movslq 0xd0(%rsp), %rsi
callq 0x190e30
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x2b440
testb $0x1, %al
jne 0x190daa
testb $0x1, 0xcf(%rsp)
jne 0x190daa
testb $0x1, 0xd7(%rsp)
je 0x190da8
movq 0x50(%rsp), %rsi
movq 0x1704b1(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x7c29a(%rip), %rsi     # 0x20cde8
callq 0x13380
movq 0x50(%rsp), %rsi
movq 0x170491(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
movq 0xe8(%rsp), %rsi
callq 0x131a0
movq %rax, %rdi
leaq 0x7c276(%rip), %rsi     # 0x20cdf4
callq 0x13380
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
callq 0x57080
cmpq $0x0, %rax
jbe 0x190bfd
movq 0x50(%rsp), %rsi
movq 0x170447(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, 0x28(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x190e30
movq %rax, %rdi
callq 0x2b420
movq 0x28(%rsp), %rdi
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
callq 0x133c10
movl $0x1, 0x94(%rsp)
movslq 0x94(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
callq 0x57080
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x190cc3
movq 0x50(%rsp), %rsi
movq 0x1703aa(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x7b6ba(%rip), %rsi     # 0x20c30f
callq 0x13380
movq %rax, 0x18(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
movslq 0x94(%rsp), %rsi
callq 0x190e30
movq %rax, %rdi
callq 0x2b420
movq 0x18(%rsp), %rdi
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0x133c10
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0x190c08
movq 0x50(%rsp), %rsi
movq 0x170321(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, %rdi
leaq 0x7c118(%rip), %rsi     # 0x20cdf6
callq 0x13380
movq %rax, %rdi
movq 0x1702f3(%rip), %rsi    # 0x300fe0
callq 0x135d0
movq 0x50(%rsp), %rsi
movq 0x1702f2(%rip), %rdi    # 0x300ff0
callq 0x131a0
movq %rax, 0x8(%rsp)
movq 0xe0(%rsp), %rdi
movslq 0xd0(%rsp), %rsi
callq 0x57a40
movq %rax, %rdi
callq 0x2b420
movq 0x8(%rsp), %rdi
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x133c10
movq %rax, %rdi
leaq 0x7c0ad(%rip), %rsi     # 0x20cdfa
callq 0x13380
movq %rax, 0x10(%rsp)
movq 0xe8(%rsp), %rdi
addq $0xb8, %rdi
movslq 0xd0(%rsp), %rsi
callq 0x190e30
movq %rax, %rdi
callq 0x2b420
movq 0x10(%rsp), %rdi
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x133c10
movq %rax, %rdi
movq 0x17023d(%rip), %rsi    # 0x300fe0
callq 0x135d0
jmp 0x190e21
jmp 0x190dac
movl 0xd0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xd0(%rsp)
jmp 0x1909d3
testb $0x1, 0xd6(%rsp)
je 0x190deb
testb $0x1, 0xd5(%rsp)
jne 0x190deb
movq 0xe8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, (%rax)
jmp 0x190e21
testb $0x1, 0xd5(%rsp)
jne 0x190e0b
movq 0xe8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x190e1f
movq 0xe8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x190e21
addq $0xf8, %rsp
retq
nopl (%rax)