//
// sub_100590610 from 0x100590610 to 0x10059069d (141 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b6fc68
//
// 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_100590610(__int64 a1)
{
void *v2; // rdi
*(_QWORD *)a1 = off_100B6FC60;
if ( (*(_BYTE *)(a1 + 200) & 1) != 0 )
{
operator delete(*(void **)(a1 + 216));
if ( (*(_BYTE *)(a1 + 136) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 112) & 1) == 0 )
goto LABEL_4;
LABEL_9:
operator delete(*(void **)(a1 + 128));
v2 = *(void **)(a1 + 80);
if ( !v2 )
return sub_10047FF60(a1);
goto LABEL_5;
}
}
else if ( (*(_BYTE *)(a1 + 136) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 152));
if ( (*(_BYTE *)(a1 + 112) & 1) != 0 )
goto LABEL_9;
LABEL_4:
v2 = *(void **)(a1 + 80);
if ( v2 )
{
LABEL_5:
*(_QWORD *)(a1 + 88) = v2;
operator delete(v2);
}
return sub_10047FF60(a1);
}