//
// sub_10055FF00 from 0x10055ff00 to 0x100560103 (515 bytes)
//
// 2 xrefs:
// > sub_100560110 @ 0x100560115
// > sub_100560120 @ 0x100560129
//
// 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
//
__int64 __fastcall sub_10055FF00(__int64 a1)
{
*(_QWORD *)a1 = off_100961310;
if ( (*(_BYTE *)(a1 + 776) & 1) != 0 )
{
operator delete(*(void **)(a1 + 792));
if ( (*(_BYTE *)(a1 + 752) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 728) & 1) == 0 )
goto LABEL_4;
goto LABEL_18;
}
}
else if ( (*(_BYTE *)(a1 + 752) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 768));
if ( (*(_BYTE *)(a1 + 728) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(a1 + 696) & 1) == 0 )
goto LABEL_5;
goto LABEL_19;
}
LABEL_18:
operator delete(*(void **)(a1 + 744));
if ( (*(_BYTE *)(a1 + 696) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 592) & 1) == 0 )
goto LABEL_6;
goto LABEL_20;
}
LABEL_19:
operator delete(*(void **)(a1 + 712));
if ( (*(_BYTE *)(a1 + 592) & 1) == 0 )
{
LABEL_6:
if ( (*(_BYTE *)(a1 + 568) & 1) == 0 )
goto LABEL_7;
goto LABEL_21;
}
LABEL_20:
operator delete(*(void **)(a1 + 608));
if ( (*(_BYTE *)(a1 + 568) & 1) == 0 )
{
LABEL_7:
if ( (*(_BYTE *)(a1 + 544) & 1) == 0 )
goto LABEL_8;
goto LABEL_22;
}
LABEL_21:
operator delete(*(void **)(a1 + 584));
if ( (*(_BYTE *)(a1 + 544) & 1) == 0 )
{
LABEL_8:
if ( (*(_BYTE *)(a1 + 520) & 1) == 0 )
goto LABEL_9;
goto LABEL_23;
}
LABEL_22:
operator delete(*(void **)(a1 + 560));
if ( (*(_BYTE *)(a1 + 520) & 1) == 0 )
{
LABEL_9:
if ( (*(_BYTE *)(a1 + 496) & 1) == 0 )
goto LABEL_10;
goto LABEL_24;
}
LABEL_23:
operator delete(*(void **)(a1 + 536));
if ( (*(_BYTE *)(a1 + 496) & 1) == 0 )
{
LABEL_10:
if ( (*(_BYTE *)(a1 + 472) & 1) == 0 )
goto LABEL_11;
goto LABEL_25;
}
LABEL_24:
operator delete(*(void **)(a1 + 512));
if ( (*(_BYTE *)(a1 + 472) & 1) == 0 )
{
LABEL_11:
if ( (*(_BYTE *)(a1 + 448) & 1) == 0 )
goto LABEL_12;
goto LABEL_26;
}
LABEL_25:
operator delete(*(void **)(a1 + 488));
if ( (*(_BYTE *)(a1 + 448) & 1) == 0 )
{
LABEL_12:
if ( (*(_BYTE *)(a1 + 344) & 1) == 0 )
goto LABEL_13;
LABEL_27:
operator delete(*(void **)(a1 + 360));
if ( (*(_BYTE *)(a1 + 320) & 1) == 0 )
return cocos2d::CCNode::dCCNode(a1);
goto LABEL_14;
}
LABEL_26:
operator delete(*(void **)(a1 + 464));
if ( (*(_BYTE *)(a1 + 344) & 1) != 0 )
goto LABEL_27;
LABEL_13:
if ( (*(_BYTE *)(a1 + 320) & 1) != 0 )
LABEL_14:
operator delete(*(void **)(a1 + 336));
return cocos2d::CCNode::dCCNode(a1);
}