//
// sub_100590DC0 from 0x100590dc0 to 0x100590e7a (186 bytes)
//
// 2 xrefs:
// > sub_100590D90 @ 0x100590d95
// > sub_100590DA0 @ 0x100590da9
//
// 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_100590DC0(__int64 a1)
{
*(_QWORD *)a1 = off_100B6FEB8;
if ( (*(_BYTE *)(a1 + 224) & 1) != 0 )
{
operator delete(*(void **)(a1 + 240));
if ( (*(_BYTE *)(a1 + 176) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 136) & 1) == 0 )
goto LABEL_4;
goto LABEL_11;
}
}
else if ( (*(_BYTE *)(a1 + 176) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 192));
if ( (*(_BYTE *)(a1 + 136) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(a1 + 112) & 1) == 0 )
goto LABEL_5;
goto LABEL_12;
}
LABEL_11:
operator delete(*(void **)(a1 + 152));
if ( (*(_BYTE *)(a1 + 112) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 88) & 1) == 0 )
goto LABEL_6;
LABEL_13:
operator delete(*(void **)(a1 + 104));
if ( (*(_BYTE *)(a1 + 64) & 1) == 0 )
return sub_10047FF60(a1);
goto LABEL_7;
}
LABEL_12:
operator delete(*(void **)(a1 + 128));
if ( (*(_BYTE *)(a1 + 88) & 1) != 0 )
goto LABEL_13;
LABEL_6:
if ( (*(_BYTE *)(a1 + 64) & 1) != 0 )
LABEL_7:
operator delete(*(void **)(a1 + 80));
return sub_10047FF60(a1);
}