// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %r8, %r15
movq %rcx, %r14
movq %rdi, %rbx
leaq 0x178(%rsp), %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
leaq 0xa8(%rsp), %r12
leaq 0x40(%rsp), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x209a4
andq $0x0, 0x40(%r12)
leaq 0xf8(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # 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)
andq $0x0, 0x10(%rdi)
movaps 0x2a0(%rsp), %xmm0
movups %xmm0, -0x20(%rdi)
movups 0x2aa(%rsp), %xmm0
movups %xmm0, -0x16(%rdi)
movq %r14, %rsi
callq 0x7196e
leaq 0x280(%rsp), %r12
movups 0x120(%rsp), %xmm0
movups 0x130(%rsp), %xmm1
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x120(%rsp)
leaq 0xbfa(%rip), %rax       # 0x20584
movq %rax, 0x130(%rsp)
movaps %xmm1, 0x10(%rdi)
leaq 0xbd9(%rip), %rax       # 0x20576
movq %rax, 0x138(%rsp)
callq 0x21f04
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movaps %xmm0, 0x80(%rsp)
movaps %xmm1, 0x90(%rsp)
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x70292
leaq 0x60(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2c4a2
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
pushq $0x38
popq %rdi
callq 0x11350
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq 0x58(%rsp), %rax
movq %rax, 0x18(%r14)
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x1fa2f
leaq 0x50(%rsp), %rcx
movups -0x10(%rcx), %xmm0
movups %xmm0, (%r14)
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq %r14, %rdi
addq $0x20, %rdi
movq %r15, %rsi
callq 0x2c4a2
leaq 0x100(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movq %r14, (%rsi)
leaq 0xb47(%rip), %rax       # 0x2059c
movq %rax, 0x18(%rsi)
leaq 0xc1c(%rip), %rax       # 0x2067c
movq %rax, 0x10(%rsi)
callq 0x6ed66
leaq 0x188(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x2bbac
movaps 0x80(%rsp), %xmm0
movaps 0x90(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xa8(%rsp), %rsi
leaq 0x188(%rsp), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x1e212
leaq 0x188(%rsp), %rdi
callq 0x2bc6c
leaq 0x20(%rsp), %rdi
callq 0x21f04
leaq 0x40(%rsp), %rdi
callq 0x1fb5e
leaq 0xa8(%rsp), %rdi
callq 0x2bc6c
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x188(%rsp), %rdi
callq 0x2bc6c
jmp 0x1fb34
movq %rax, %rbx
movq %r14, %rdi
callq 0x21f04
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0x11360
jmp 0x1fb34
jmp 0x1fb31
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x21f04
jmp 0x1fb48
jmp 0x1fb2c
movq %rax, %rbx
jmp 0x1fb48
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x21f04
leaq 0x40(%rsp), %rdi
callq 0x1fb5e
leaq 0xa8(%rsp), %rdi
callq 0x2bc6c
movq %rbx, %rdi
callq 0x11570
nop