// File: /workspace/github_cpp_makefile_star2_O1/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 0x27dc8
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x40(%rbx)
xorl %eax, %eax
movq %rax, 0x50(%rbx)
leaq 0xf8(%rsp), %rcx
movq %rcx, -0x30(%rcx)
movq $0x1, -0x28(%rcx)
movups %xmm0, -0x20(%rcx)
movl $0x3f800000, -0x10(%rcx) # imm = 0x3F800000
leaq 0x160(%rsp), %rdi
movq %rax, -0x10(%rdi)
movups %xmm0, -0x20(%rdi)
movups %xmm0, -0x60(%rdi)
movups %xmm0, -0x50(%rdi)
movups %xmm0, -0x40(%rdi)
movups %xmm0, -0x30(%rdi)
movups %xmm0, -0x70(%rdi)
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups 0x2aa(%rsp), %xmm0
movups %xmm0, -0x16(%rdi)
movaps 0x2a0(%rsp), %xmm0
movups %xmm0, -0x20(%rdi)
movq %r14, %rsi
callq 0x90012
leaq 0x120(%rsp), %rbx
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
leaq 0x10d2(%rip), %rcx      # 0x26582
movq %rcx, 0x38(%rsp)
leaq 0x10d4(%rip), %rdx      # 0x26590
movq %rdx, 0x30(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x20(%rsp)
movups %xmm1, (%rbx)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rsi
movq %rax, 0x30(%rsp)
movq %rdx, 0x10(%rbx)
movq %rsi, 0x38(%rsp)
movq %rcx, 0x18(%rbx)
testq %rax, %rax
je 0x254fa
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 0x8de52
leaq 0x40(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x38402
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 0x2558b
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 0x38402
leaq 0x100(%rsp), %r14
leaq 0x60(%rsp), %rsi
movq %r12, (%rsi)
leaq 0xff7(%rip), %rax       # 0x265a8
movq %rax, 0x18(%rsi)
leaq 0x111c(%rip), %rax      # 0x266d8
movq %rax, 0x10(%rsi)
movq %r14, %rdi
callq 0x8c242
leaq 0x178(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x37ae8
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 0x2343c
movq 0x230(%rsp), %rdi
testq %rdi, %rdi
je 0x25630
movq 0x240(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x200(%rsp), %rax
testq %rax, %rax
je 0x2564f
leaq 0x1f0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x1e0(%rsp), %rax
testq %rax, %rax
je 0x2566e
leaq 0x1d0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x198(%rsp), %r15
movq %r15, %rdi
callq 0x376f2
movq -0x20(%r15), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x2569f
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x256b8
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x256cf
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x256e8
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x160(%rsp), %rdi
testq %rdi, %rdi
je 0x25705
movq 0x170(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x130(%rsp), %rax
testq %rax, %rax
je 0x2571f
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq 0x110(%rsp), %rax
testq %rax, %rax
je 0x25739
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x376f2
movq -0x20(%rbx), %rdi
cmpq %rbp, %rdi
je 0x25762
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 0x25859
jmp 0x25859
jmp 0x25859
jmp 0x25859
jmp 0x25859
jmp 0x25859
jmp 0x25859
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x37c26
jmp 0x25821
movq %rax, %rbx
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x257c3
movq %r12, %rdi
movq %r12, %rsi
movl $0x3, %edx
callq *%rax
movl $0x38, %esi
movq %r12, %rdi
callq 0x11360
jmp 0x257da
jmp 0x25859
movq %rax, %rbx
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x2583a
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2583a
jmp 0x25859
movq %rax, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x25844
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x25844
jmp 0x25859
jmp 0x25819
movq %rax, %rbx
jmp 0x25844
movq %rax, %rbx
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x2583a
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x20(%rsp), %rdi
callq 0x25862
leaq 0xa8(%rsp), %rdi
callq 0x37c26
movq %rbx, %rdi
callq 0x11580
movq %rax, %rdi
callq 0x2789a
nop