// File: Heptagon196[P]Gos/Reflection/ReflMgr.cpp
// Function: ReflMgr::RawAddStaticField(TypeID, TypeID, std::basic_string_view<char, std::char_traits<char>>, std::function<ObjectPtr ()>)
void ReflMgr::RawAddStaticField(TypeID cls, TypeID varType, std::string_view name, std::function<ObjectPtr()> func) {
    FieldInfo info{ std::string{name} };
    auto& field = fieldInfo[cls][std::string{name}];
    field = info.withRegister([func](void* ptr) { return func(); });
    field.varType = varType;
}

// Assembly:
subq $0x198, %rsp            # imm = 0x198
movq %rcx, 0x28(%rsp)
leaq 0x1c0(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x1a0(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rsi, 0x188(%rsp)
movq %rdx, 0x190(%rsp)
movq %rdi, 0x180(%rsp)
movq %rcx, 0x178(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0xdf(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x13570
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
leaq 0x188(%rsp), %rsi
callq 0x52e80
jmp 0x4c99b
leaq 0x100(%rsp), %rdi
movq %rdi, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x120(%rsp)
movups %xmm0, 0x110(%rsp)
movups %xmm0, 0x100(%rsp)
movq $0x0, 0x130(%rsp)
callq 0x69ec0
leaq 0x138(%rsp), %rdi
callq 0x6c730
jmp 0x4c9e3
leaq 0x158(%rsp), %rdi
callq 0x1929b0
leaq 0xdf(%rsp), %rdi
callq 0x136a0
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
addq $0x20, %rdi
callq 0x190270
movq %rax, 0x18(%rsp)
jmp 0x4ca17
leaq 0x9f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x13570
movq 0x10(%rsp), %rdx
leaq 0xa0(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0x52e80
jmp 0x4ca45
movq 0x18(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x190910
movq %rax, 0x8(%rsp)
jmp 0x4ca5e
leaq 0xa0(%rsp), %rdi
callq 0x52f50
leaq 0x9f(%rsp), %rdi
callq 0x136a0
movq 0x8(%rsp), %rax
movq 0x28(%rsp), %rsi
movq %rax, 0xc0(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x192b70
jmp 0x4ca96
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x4cc30
jmp 0x4caa7
leaq 0xe0(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x4a1e0
movq %rax, (%rsp)
jmp 0x4cabf
movq (%rsp), %rsi
movq 0xc0(%rsp), %rdi
callq 0x192aa0
jmp 0x4cad2
leaq 0x78(%rsp), %rdi
callq 0x192b20
leaq 0x58(%rsp), %rdi
callq 0x4cce0
movq 0x30(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq (%rcx), %rdx
movq %rdx, 0x58(%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x60(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x68(%rax)
movw 0x18(%rcx), %cx
movw %cx, 0x70(%rax)
leaq 0xe0(%rsp), %rdi
callq 0x192b30
addq $0x198, %rsp            # imm = 0x198
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4cb65
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
callq 0x69ed0
movq 0x48(%rsp), %rdi
callq 0x52f50
leaq 0xdf(%rsp), %rdi
callq 0x136a0
jmp 0x4cc21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4cc14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4cbc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x52f50
leaq 0x9f(%rsp), %rdi
callq 0x136a0
jmp 0x4cc14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4cc0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x192b20
leaq 0x58(%rsp), %rdi
callq 0x4cce0
leaq 0xe0(%rsp), %rdi
callq 0x192b30
movq 0xd0(%rsp), %rdi
callq 0x133f0
nop