// File: /workspace/github_cpp_makefile_star2_O3/Heptagon196[P]Gos/Reflection/ReflMgr.cpp
// Function: ReflMgr::RawAddStaticMethod(TypeID, std::basic_string_view<char, std::char_traits<char>>, TypeID, ArgsTypeList const&, std::function<SharedObject (std::vector<ObjectPtr, std::allocator<ObjectPtr>> const&)>)
void ReflMgr::RawAddStaticMethod(TypeID cls, std::string_view name, TypeID returnType, const ArgsTypeList& argsList, std::function<SharedObject(const std::vector<ObjectPtr>&)> func) {
    MethodInfo info{ std::string{name} };
    info.returnType = returnType;
    info.argsList = argsList;
    info.newRet = []() { return SharedObject(); };
    AddMethodInfo(cls, info.name, info.withRegister([func, argsList](void* instance, const std::vector<void*>& params, SharedObject& ret) {
        std::vector<ObjectPtr> args;
        for (int i = 0; i < params.size(); i++) {
            args.push_back(ObjectPtr{argsList[i], params[i]});
        }
        ret = func(args);
    }));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r8, %r12
movq %rcx, %r14
movq %rdi, %r15
leaq 0xb8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq (%rsi,%rdx), %rax
leaq 0xa8(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x27370
xorl %eax, %eax
movq %rax, 0x40(%rbx)
leaq 0xf8(%rsp), %rcx
movq %rcx, -0x30(%rcx)
movq $0x1, -0x28(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rcx)
movl $0x3f800000, -0x10(%rcx) # imm = 0x3F800000
leaq 0x160(%rsp), %rdi
movups %xmm0, -0x70(%rdi)
movups %xmm0, -0x60(%rdi)
movups %xmm0, -0x50(%rdi)
movups %xmm0, -0x40(%rdi)
movups %xmm0, -0x30(%rdi)
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movaps 0x2a0(%rsp), %xmm0
movups %xmm0, -0x20(%rdi)
movups 0x2aa(%rsp), %xmm0
movups %xmm0, -0x16(%rdi)
movq %r14, %rsi
callq 0x8f49c
leaq 0x120(%rsp), %rbx
movups (%rbx), %xmm0
movaps %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rax, 0x30(%rsp)
leaq 0x10b3(%rip), %rdx      # 0x25b4a
movq %rdx, 0x10(%rbx)
movq %rcx, 0x38(%rsp)
leaq 0x1095(%rip), %rcx      # 0x25b3c
movq %rcx, 0x18(%rbx)
testq %rax, %rax
je 0x24abf
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x280(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movaps %xmm0, 0x80(%rsp)
movaps %xmm1, 0x90(%rsp)
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x8d334
leaq 0x40(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x377be
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movl $0x38, %edi
callq 0x11350
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x38(%rsp), %rax
movq %rax, 0x18(%r12)
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x24b50
leaq 0x30(%rsp), %rcx
movups -0x10(%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, 0x10(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq %r12, %rdi
addq $0x20, %rdi
movq %r13, %rsi
callq 0x377be
leaq 0x100(%rsp), %r14
leaq 0x60(%rsp), %rsi
movq %r12, (%rsi)
leaq 0xfec(%rip), %rax       # 0x25b62
movq %rax, 0x18(%rsi)
leaq 0x1111(%rip), %rax      # 0x25c92
movq %rax, 0x10(%rsi)
movq %r14, %rdi
callq 0x8b704
leaq 0x178(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x36ef4
movaps 0x80(%rsp), %xmm0
movaps 0x90(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xa8(%rsp), %rsi
leaq 0x178(%rsp), %rdx
movq %r15, %rdi
movl $0x1, %ecx
callq 0x22a82
movq 0x230(%rsp), %rdi
testq %rdi, %rdi
je 0x24bf5
movq 0x240(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x200(%rsp), %rax
testq %rax, %rax
je 0x24c14
leaq 0x1f0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x1e0(%rsp), %rax
testq %rax, %rax
je 0x24c33
leaq 0x1d0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x198(%rsp), %r15
movq %r15, %rdi
callq 0x36ac6
movq -0x20(%r15), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x24c64
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x24c7d
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x24c94
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x24cad
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x160(%rsp), %rdi
testq %rdi, %rdi
je 0x24cca
movq 0x170(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x130(%rsp), %rax
testq %rax, %rax
je 0x24ce4
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq 0x110(%rsp), %rax
testq %rax, %rax
je 0x24cfe
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x36ac6
movq -0x20(%rbx), %rdi
cmpq %rbp, %rdi
je 0x24d27
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x11360
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x24e1b
jmp 0x24e1b
jmp 0x24e1b
jmp 0x24e1b
jmp 0x24e1b
jmp 0x24e1b
jmp 0x24e1b
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x37032
jmp 0x24de3
movq %rax, %rbx
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x24d88
movq %r12, %rdi
movq %r12, %rsi
movl $0x3, %edx
callq *%rax
movl $0x38, %esi
movq %r12, %rdi
callq 0x11360
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x24dfc
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x24dfc
jmp 0x24e1b
jmp 0x24e1b
movq %rax, %rbx
jmp 0x24dfc
movq %rax, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x24e06
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x24e06
jmp 0x24e1b
jmp 0x24ddb
movq %rax, %rbx
jmp 0x24e06
movq %rax, %rbx
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x24dfc
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x20(%rsp), %rdi
callq 0x24e24
leaq 0xa8(%rsp), %rdi
callq 0x37032
movq %rbx, %rdi
callq 0x11580
movq %rax, %rdi
callq 0x26e38
nop