//
// sub_10009A640 from 0x10009a640 to 0x10009a6a2 (98 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b4938
//
// 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_10009A640(__int64 a1)
{
void *v2; // rdi
__int128 v3; // xmm0
void *v4; // rdi
*(_QWORD *)a1 = &off_1008B4938;
if ( (*(_BYTE *)(a1 + 33) & 2) != 0 )
{
v2 = *(void **)(a1 + 40);
if ( v2 )
operator delete[](v2);
}
*(_DWORD *)(a1 + 32) = 0;
v3 = 0;
*(_OWORD *)(a1 + 40) = 0;
if ( (*(_BYTE *)(a1 + 9) & 2) != 0 )
{
v4 = *(void **)(a1 + 16);
if ( v4 )
{
operator delete[](v4);
v3 = 0;
}
}
*(_DWORD *)(a1 + 8) = 0;
*(_OWORD *)(a1 + 16) = v3;
}