//
// sub_1009A9B20 from 0x1009a9b20 to 0x1009a9b6e (78 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009583f0
//
// 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_1009A9B20(void **a1, void **a2, void **a3)
{
void **v4; // r12
void *v5; // rdi
v4 = (void **)*a1;
v5 = a2;
if ( v4 != a2 )
{
do
{
if ( (*(_BYTE *)(v4 - 3) & 1) != 0 )
operator delete(*(v4 - 1));
v4 -= 3;
}
while ( v4 != a2 );
v5 = *a3;
}
*a1 = a2;
operator delete(v5);
}