//
// sub_100140A10 from 0x100140a10 to 0x100140a64 (84 bytes)
//
// 1 xrefs:
// > sub_1001409DC @ 0x1001409f0
//
// 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_100140A10(__int64 a1, void **a2)
{
void **v2; // x9
void **v5; // x8
v2 = *(void ***)(a1 + 16);
if ( v2 != a2 )
{
do
{
v5 = v2 - 13;
*(_QWORD *)(a1 + 16) = v2 - 13;
if ( *((char *)v2 - 81) < 0 )
{
operator delete(*v5);
v5 = *(void ***)(a1 + 16);
}
v2 = v5;
}
while ( v5 != a2 );
}
}