//
// sub_10058D1A0 from 0x10058d1a0 to 0x10058d23a (154 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b6e8c0
//
// 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
//
void __fastcall sub_10058D1A0(void **__p)
{
*__p = off_100B6E8B0;
if ( ((_BYTE)__p[50] & 1) != 0 )
{
operator delete(__p[52]);
if ( ((_BYTE)__p[47] & 1) == 0 )
{
LABEL_3:
if ( ((_BYTE)__p[44] & 1) == 0 )
goto LABEL_4;
LABEL_9:
operator delete(__p[46]);
if ( ((_BYTE)__p[41] & 1) == 0 )
goto LABEL_6;
goto LABEL_5;
}
}
else if ( ((_BYTE)__p[47] & 1) == 0 )
{
goto LABEL_3;
}
operator delete(__p[49]);
if ( ((_BYTE)__p[44] & 1) != 0 )
goto LABEL_9;
LABEL_4:
if ( ((_BYTE)__p[41] & 1) != 0 )
LABEL_5:
operator delete(__p[43]);
LABEL_6:
cocos2d::CCNode::dCCNode((__int64)__p);
operator delete(__p);
}