//
// sub_100510220 from 0x100510220 to 0x100510248 (40 bytes)
//
// 4 xrefs:
// > sub_100510B8C @ 0x100510bb0
// > sub_100510C98 @ 0x100510cbc
// > sub_100510CE4 @ 0x100510d00
// > sub_1005110EC @ 0x100511134
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100510220(__int64 a1, __int64 a2)
{
_QWORD *v2; // x10
v2 = *(_QWORD **)(a2 + 584);
*v2 = *(_QWORD *)(a2 + 576);
*(_QWORD *)(*(_QWORD *)(a2 + 576) + 8LL) = v2;
*(_QWORD *)(a2 + 584) = a2 + 576;
*(_QWORD *)(a2 + 576) = a2 + 576;
return 0;
}