//
// sub_1009A9C70 from 0x1009a9c70 to 0x1009a9c9f (47 bytes)
//
// 5 xrefs:
// > ??> @ 0x10098f636
// > ??> @ 0x10098f926
// > ??> @ 0x10098fc16
// > ??> @ 0x100990026
// > ??> @ 0x100990756
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:39:20 +0000
//
void __fastcall sub_1009A9C70(__int64 a1, __int64 a2, __int64 a3)
{
void *v4; // rdi
v4 = *(void **)a2;
if ( *(_QWORD *)a2 )
{
*(_QWORD *)(a2 + 8) = v4;
operator delete(v4);
}
if ( (*(_BYTE *)a3 & 1) != 0 )
operator delete(*(void **)(a3 + 16));
}