//
// sub_10056D750 from 0x10056d750 to 0x10056d7e4 (148 bytes)
//
// 2 xrefs:
// > sub_10056D7F0 @ 0x10056d7f5
// > sub_10056D800 @ 0x10056d809
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_10056D750(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = &off_100964190;
v2 = *(cocos2d::CCObject **)(a1 + 136);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( (*(_BYTE *)(a1 + 104) & 1) != 0 )
{
operator delete(*(void **)(a1 + 120));
if ( (*(_BYTE *)(a1 + 80) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 56) & 1) == 0 )
goto LABEL_6;
goto LABEL_11;
}
}
else if ( (*(_BYTE *)(a1 + 80) & 1) == 0 )
{
goto LABEL_5;
}
operator delete(*(void **)(a1 + 96));
if ( (*(_BYTE *)(a1 + 56) & 1) == 0 )
{
LABEL_6:
if ( (*(_BYTE *)(a1 + 32) & 1) == 0 )
goto LABEL_7;
goto LABEL_12;
}
LABEL_11:
operator delete(*(void **)(a1 + 72));
if ( (*(_BYTE *)(a1 + 32) & 1) == 0 )
{
LABEL_7:
if ( (*(_BYTE *)(a1 + 8) & 1) == 0 )
return;
LABEL_13:
operator delete(*(void **)(a1 + 24));
return;
}
LABEL_12:
operator delete(*(void **)(a1 + 48));
if ( (*(_BYTE *)(a1 + 8) & 1) != 0 )
goto LABEL_13;
}