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

// Assembly:
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rcx, 0x28(%rsp)
leaq 0x1e0(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x1c0(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rsi, 0x1a8(%rsp)
movq %rdx, 0x1b0(%rsp)
movq %rdi, 0x1a0(%rsp)
movq %rcx, 0x198(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0xff(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x13570
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rdx
leaq 0x1a8(%rsp), %rsi
callq 0x52e80
jmp 0x4c58b
leaq 0x120(%rsp), %rdi
movq %rdi, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x140(%rsp)
movups %xmm0, 0x130(%rsp)
movups %xmm0, 0x120(%rsp)
movq $0x0, 0x150(%rsp)
callq 0x69ec0
leaq 0x158(%rsp), %rdi
callq 0x6c730
jmp 0x4c5d3
leaq 0x178(%rsp), %rdi
callq 0x1929b0
leaq 0xff(%rsp), %rdi
callq 0x136a0
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
addq $0x20, %rdi
callq 0x190270
movq %rax, 0x18(%rsp)
jmp 0x4c607
leaq 0xbf(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x13570
movq 0x10(%rsp), %rdx
leaq 0xc0(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0x52e80
jmp 0x4c635
movq 0x18(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x190910
movq %rax, 0x8(%rsp)
jmp 0x4c64e
leaq 0xc0(%rsp), %rdi
callq 0x52f50
leaq 0xbf(%rsp), %rdi
callq 0x136a0
movq 0x8(%rsp), %rax
movq 0x28(%rsp), %rsi
movq %rax, 0xe0(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x1929f0
jmp 0x4c686
movq 0x38(%rsp), %rax
movups (%rax), %xmm0
movups 0xa(%rax), %xmm1
movups %xmm1, 0x82(%rsp)
movups %xmm0, 0x78(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x4c850
jmp 0x4c6b3
leaq 0x100(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x4a1e0
movq %rax, (%rsp)
jmp 0x4c6ce
movq (%rsp), %rsi
movq 0xe0(%rsp), %rdi
callq 0x192aa0
jmp 0x4c6e1
leaq 0x98(%rsp), %rdi
callq 0x192b20
leaq 0x58(%rsp), %rdi
callq 0x4c900
movq 0x30(%rsp), %rcx
movq 0xe0(%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 0x100(%rsp), %rdi
callq 0x192b30
addq $0x1b8, %rsp            # imm = 0x1B8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0x4c777
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
callq 0x69ed0
movq 0x48(%rsp), %rdi
callq 0x52f50
leaq 0xff(%rsp), %rdi
callq 0x136a0
jmp 0x4c836
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0x4c829
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0x4c7d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x52f50
leaq 0xbf(%rsp), %rdi
callq 0x136a0
jmp 0x4c829
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0x4c81f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x192b20
leaq 0x58(%rsp), %rdi
callq 0x4c900
leaq 0x100(%rsp), %rdi
callq 0x192b30
movq 0xf0(%rsp), %rdi
callq 0x133f0
nopw %cs:(%rax,%rax)