//
// sub_10021FA00 from 0x10021fa00 to 0x10021fa55 (85 bytes)
//
// 17 xrefs:
// > ??> @ 0x10021eb71
// > ??> @ 0x10025d3c8
// > ??> @ 0x10025d3e3
// > ??> @ 0x1003c4b62
// > ??> @ 0x1003c4b99
// > ??> @ 0x1003c4bf1
// > ??> @ 0x1005bd31a
// > ??> @ 0x1005bd326
// > ??> @ 0x1005bd3c6
// > ??> @ 0x1005bd411
// > ??> @ 0x1006017a1
// > ??> @ 0x1006017f6
// > ??> @ 0x100601802
// > ??> @ 0x100601831
// > ??> @ 0x100908b49
// > ??> @ 0x100982a0b
// > ??> @ 0x10098dba8
//
// 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:27:03 +0000
//
void __fastcall sub_10021FA00(__int64 a1)
{
if ( (*(_BYTE *)(a1 + 128) & 1) != 0 )
{
operator delete(*(void **)(a1 + 144));
if ( (*(_BYTE *)(a1 + 96) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 8) & 1) == 0 )
return;
LABEL_7:
operator delete(*(void **)(a1 + 24));
return;
}
}
else if ( (*(_BYTE *)(a1 + 96) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 112));
if ( (*(_BYTE *)(a1 + 8) & 1) != 0 )
goto LABEL_7;
}