//
// sub_10021222C from 0x10021222c to 0x100212284 (88 bytes)
//
// 1 xrefs:
// > sub_1002121F8 @ 0x10021220c
//
// 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
//
void __fastcall sub_10021222C(__int64 a1, __int64 a2)
{
__int64 v2; // x8
void *v5; // x0
v2 = *(_QWORD *)(a1 + 16);
while ( v2 != a2 )
{
*(_QWORD *)(a1 + 16) = v2 - 40;
v5 = *(void **)(v2 - 24);
if ( v5 )
{
*(_QWORD *)(v2 - 16) = v5;
operator delete(v5);
v2 = *(_QWORD *)(a1 + 16);
}
else
{
v2 -= 40;
}
}
}