//
// sub_1009A9980 from 0x1009a9980 to 0x1009a99d5 (85 bytes)
//
// 31 xrefs:
// > ??> @ 0x100853526
// > ??> @ 0x100853564
// > ??> @ 0x1008535a2
// > ??> @ 0x1008535e0
// > ??> @ 0x10085361e
// > ??> @ 0x10085365c
// > ??> @ 0x10085369a
// > ??> @ 0x1008536d8
// > ??> @ 0x100853716
// > ??> @ 0x100853754
// > ??> @ 0x100853792
// > ??> @ 0x1008537d0
// > ??> @ 0x10085380e
// > ??> @ 0x10085384c
// > ??> @ 0x10085388a
// > ??> @ 0x1008538c8
// > ??> @ 0x100855146
// > ??> @ 0x100855184
// > ??> @ 0x100855242
// > ??> @ 0x10085866a
// > ??> @ 0x100858728
// > ??> @ 0x100858c85
// > ??> @ 0x100858d6d
// > ??> @ 0x100858e34
// > ??> @ 0x100858e72
// > ??> @ 0x100858f5a
// > ??> @ 0x100858f98
// > ??> @ 0x100858fd6
// > ??> @ 0x100859014
// > ??> @ 0x100859052
// > ??> @ 0x100859137
//
// 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
//
bool __fastcall sub_1009A9980(__int64 a1, __int64 a2, __int64 a3, _BYTE *a4)
{
if ( (*(_BYTE *)a1 & 1) != 0 )
operator delete(*(void **)(a1 + 16));
if ( (*(_BYTE *)a2 & 1) != 0 )
operator delete(*(void **)(a2 + 16));
if ( (*(_BYTE *)a3 & 1) != 0 )
operator delete(*(void **)(a3 + 16));
return (*a4 & 1) == 0;
}