//
// sub_10058D060 from 0x10058d060 to 0x10058d0f2 (146 bytes)
//
// 0 xrefs:
//
// 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:25 +0000
//
__int64 __fastcall sub_10058D060(__int64 a1)
{
*(_QWORD *)a1 = off_100B6E8B0;
if ( (*(_BYTE *)(a1 + 400) & 1) != 0 )
{
operator delete(*(void **)(a1 + 416));
if ( (*(_BYTE *)(a1 + 376) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 352) & 1) == 0 )
goto LABEL_4;
LABEL_9:
operator delete(*(void **)(a1 + 368));
if ( (*(_BYTE *)(a1 + 328) & 1) == 0 )
return cocos2d::CCNode::dCCNode(a1);
goto LABEL_5;
}
}
else if ( (*(_BYTE *)(a1 + 376) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 392));
if ( (*(_BYTE *)(a1 + 352) & 1) != 0 )
goto LABEL_9;
LABEL_4:
if ( (*(_BYTE *)(a1 + 328) & 1) != 0 )
LABEL_5:
operator delete(*(void **)(a1 + 344));
return cocos2d::CCNode::dCCNode(a1);
}