//
// GJGameLevel::dGJGameLevel from 0x10055b090 to 0x10055b388 (760 bytes)
//
// 2 xrefs:
// > sub_10055B390 @ 0x10055b395
// > sub_10055B3A0 @ 0x10055b3a9
//
// 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 GJGameLevel::dGJGameLevel(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_100960C10;
v2 = *(cocos2d::CCObject **)(a1 + 320);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( (*(_BYTE *)(a1 + 1296) & 1) != 0 )
{
operator delete(*(void **)(a1 + 1312));
if ( (*(_BYTE *)(a1 + 1272) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 1240) & 1) == 0 )
goto LABEL_6;
goto LABEL_26;
}
}
else if ( (*(_BYTE *)(a1 + 1272) & 1) == 0 )
{
goto LABEL_5;
}
operator delete(*(void **)(a1 + 1288));
if ( (*(_BYTE *)(a1 + 1240) & 1) == 0 )
{
LABEL_6:
if ( (*(_BYTE *)(a1 + 1200) & 1) == 0 )
goto LABEL_7;
goto LABEL_27;
}
LABEL_26:
operator delete(*(void **)(a1 + 1256));
if ( (*(_BYTE *)(a1 + 1200) & 1) == 0 )
{
LABEL_7:
if ( (*(_BYTE *)(a1 + 1152) & 1) == 0 )
goto LABEL_8;
goto LABEL_28;
}
LABEL_27:
operator delete(*(void **)(a1 + 1216));
if ( (*(_BYTE *)(a1 + 1152) & 1) == 0 )
{
LABEL_8:
if ( (*(_BYTE *)(a1 + 1128) & 1) == 0 )
goto LABEL_9;
goto LABEL_29;
}
LABEL_28:
operator delete(*(void **)(a1 + 1168));
if ( (*(_BYTE *)(a1 + 1128) & 1) == 0 )
{
LABEL_9:
if ( (*(_BYTE *)(a1 + 1096) & 1) == 0 )
goto LABEL_10;
goto LABEL_30;
}
LABEL_29:
operator delete(*(void **)(a1 + 1144));
if ( (*(_BYTE *)(a1 + 1096) & 1) == 0 )
{
LABEL_10:
if ( (*(_BYTE *)(a1 + 1064) & 1) == 0 )
goto LABEL_11;
goto LABEL_31;
}
LABEL_30:
operator delete(*(void **)(a1 + 1112));
if ( (*(_BYTE *)(a1 + 1064) & 1) == 0 )
{
LABEL_11:
if ( (*(_BYTE *)(a1 + 1040) & 1) == 0 )
goto LABEL_12;
goto LABEL_32;
}
LABEL_31:
operator delete(*(void **)(a1 + 1080));
if ( (*(_BYTE *)(a1 + 1040) & 1) == 0 )
{
LABEL_12:
if ( (*(_BYTE *)(a1 + 968) & 1) == 0 )
goto LABEL_13;
goto LABEL_33;
}
LABEL_32:
operator delete(*(void **)(a1 + 1056));
if ( (*(_BYTE *)(a1 + 968) & 1) == 0 )
{
LABEL_13:
if ( (*(_BYTE *)(a1 + 536) & 1) == 0 )
goto LABEL_14;
goto LABEL_34;
}
LABEL_33:
operator delete(*(void **)(a1 + 984));
if ( (*(_BYTE *)(a1 + 536) & 1) == 0 )
{
LABEL_14:
if ( (*(_BYTE *)(a1 + 512) & 1) == 0 )
goto LABEL_15;
goto LABEL_35;
}
LABEL_34:
operator delete(*(void **)(a1 + 552));
if ( (*(_BYTE *)(a1 + 512) & 1) == 0 )
{
LABEL_15:
if ( (*(_BYTE *)(a1 + 488) & 1) == 0 )
goto LABEL_16;
goto LABEL_36;
}
LABEL_35:
operator delete(*(void **)(a1 + 528));
if ( (*(_BYTE *)(a1 + 488) & 1) == 0 )
{
LABEL_16:
if ( (*(_BYTE *)(a1 + 464) & 1) == 0 )
goto LABEL_17;
goto LABEL_37;
}
LABEL_36:
operator delete(*(void **)(a1 + 504));
if ( (*(_BYTE *)(a1 + 464) & 1) == 0 )
{
LABEL_17:
if ( (*(_BYTE *)(a1 + 440) & 1) == 0 )
goto LABEL_18;
goto LABEL_38;
}
LABEL_37:
operator delete(*(void **)(a1 + 480));
if ( (*(_BYTE *)(a1 + 440) & 1) == 0 )
{
LABEL_18:
if ( (*(_BYTE *)(a1 + 416) & 1) == 0 )
goto LABEL_19;
goto LABEL_39;
}
LABEL_38:
operator delete(*(void **)(a1 + 456));
if ( (*(_BYTE *)(a1 + 416) & 1) == 0 )
{
LABEL_19:
if ( (*(_BYTE *)(a1 + 392) & 1) == 0 )
goto LABEL_20;
goto LABEL_40;
}
LABEL_39:
operator delete(*(void **)(a1 + 432));
if ( (*(_BYTE *)(a1 + 392) & 1) == 0 )
{
LABEL_20:
if ( (*(_BYTE *)(a1 + 368) & 1) == 0 )
goto LABEL_21;
LABEL_41:
operator delete(*(void **)(a1 + 384));
if ( (*(_BYTE *)(a1 + 344) & 1) == 0 )
return cocos2d::CCNode::dCCNode(a1);
goto LABEL_22;
}
LABEL_40:
operator delete(*(void **)(a1 + 408));
if ( (*(_BYTE *)(a1 + 368) & 1) != 0 )
goto LABEL_41;
LABEL_21:
if ( (*(_BYTE *)(a1 + 344) & 1) != 0 )
LABEL_22:
operator delete(*(void **)(a1 + 360));
return cocos2d::CCNode::dCCNode(a1);
}