//
// sub_1005908D0 from 0x1005908d0 to 0x10059093e (110 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b6fd60
//
// 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:32:26 +0000
//
void __fastcall sub_1005908D0(__int64 __p)
{
*(_QWORD *)__p = off_100B6FD50;
if ( (*(_BYTE *)(__p + 136) & 1) == 0 )
{
if ( (*(_BYTE *)(__p + 104) & 1) == 0 )
goto LABEL_3;
LABEL_7:
operator delete(*(void **)(__p + 120));
if ( (*(_BYTE *)(__p + 80) & 1) == 0 )
goto LABEL_5;
goto LABEL_4;
}
operator delete(*(void **)(__p + 152));
if ( (*(_BYTE *)(__p + 104) & 1) != 0 )
goto LABEL_7;
LABEL_3:
if ( (*(_BYTE *)(__p + 80) & 1) != 0 )
LABEL_4:
operator delete(*(void **)(__p + 96));
LABEL_5:
sub_10047FF60(__p);
operator delete((void *)__p);
}