//
// sub_1004EAA80 from 0x1004eaa80 to 0x1004eaacd (77 bytes)
//
// 3 xrefs:
// > ??> @ 0x1004eaa57
// > ??> @ 0x1004f6a93
// > ??> @ 0x1004f6aac
//
// 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:31:21 +0000
//
void __fastcall sub_1004EAA80(__int64 a1)
{
if ( (*(_BYTE *)(a1 + 48) & 1) != 0 )
{
operator delete(*(void **)(a1 + 64));
if ( (*(_BYTE *)(a1 + 24) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)a1 & 1) == 0 )
return;
LABEL_7:
operator delete(*(void **)(a1 + 16));
return;
}
}
else if ( (*(_BYTE *)(a1 + 24) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 40));
if ( (*(_BYTE *)a1 & 1) != 0 )
goto LABEL_7;
}