//
// sub_1005904C0 from 0x1005904c0 to 0x10059055c (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b6fbf0
//
// 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
//
__int64 *__fastcall sub_1005904C0(__int64 a1)
{
*(_QWORD *)a1 = off_100B6FBE8;
if ( (*(_BYTE *)(a1 + 168) & 1) != 0 )
{
operator delete(*(void **)(a1 + 184));
if ( (*(_BYTE *)(a1 + 144) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 120) & 1) == 0 )
goto LABEL_4;
goto LABEL_10;
}
}
else if ( (*(_BYTE *)(a1 + 144) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 160));
if ( (*(_BYTE *)(a1 + 120) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(a1 + 80) & 1) == 0 )
goto LABEL_5;
LABEL_11:
operator delete(*(void **)(a1 + 96));
if ( (*(_BYTE *)(a1 + 56) & 1) == 0 )
return sub_10047FF60(a1);
goto LABEL_6;
}
LABEL_10:
operator delete(*(void **)(a1 + 136));
if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
goto LABEL_11;
LABEL_5:
if ( (*(_BYTE *)(a1 + 56) & 1) != 0 )
LABEL_6:
operator delete(*(void **)(a1 + 72));
return sub_10047FF60(a1);
}