//
// PlayLayer::addObject from 0x14050c690 to 0x14050d5a6 (3862 bytes)
//
// 7 xrefs:
// > PlayLayer::setupHasCompleted @ 0x1405059db
// > PlayLayer::processCreateObjectsFromSetup @ 0x14050c03c
// > PlayLayer::addObject @ 0x14050cc78
// > PlayLayer::addLiveStartPosObject @ 0x140518755
// > ??> @ 0x1408d6808
// > ??> @ 0x1408d6878
// > ??> @ 0x14092a9b0
//
// 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 11:33:29 +0000
//
void __fastcall PlayLayer::addObject(__int64 a1, __int64 a2)
{
int v4; // eax
int v5; // eax
__int64 v6; // rax
_QWORD *v7; // rcx
_BYTE *v8; // rdx
__int64 v9; // rax
__int64 v10; // rcx
__m128 v11; // xmm0
__int64 v12; // rax
float v13; // xmm6_4
__int64 v14; // rax
__m128 v15; // xmm0
__int16 v16; // cx
__int64 v17; // rax
const struct cocos2d::CCPoint *v18; // rax
float v19; // xmm6_4
__int64 v20; // rax
__int64 v21; // rdx
float TeleportXOff; // xmm0_4
__int64 v23; // rax
__int64 v24; // rdi
__int64 v25; // rcx
__int64 v26; // rbx
__int64 v27; // rax
__int64 v28; // rdx
double v29; // xmm0_8
float v30; // xmm1_4
__int64 v31; // rax
__int64 v32; // rax
float v33; // xmm1_4
int v34; // ecx
__int64 v35; // rdx
cocos2d::CCString *v36; // rax
const char *CString; // rax
struct cocos2d::CCObject *v38; // rdi
__int64 v39; // rcx
int v40; // eax
int *v41; // rdx
int v42; // ecx
_QWORD *v43; // rax
__int64 v44; // rax
__int64 v45; // rbx
__int64 v46; // rax
int v47; // ecx
int v48; // ecx
int v49; // ecx
int v50; // ecx
int v51; // ecx
int v52; // ecx
__int64 v53; // rcx
__int64 v54; // rcx
int v55; // ecx
int v56; // ecx
int v57; // ecx
int v58; // ecx
int v59; // ecx
unsigned __int8 v60; // al
int v61; // ecx
int v62; // edi
const char *v63; // rcx
int v64; // ecx
int v65; // ecx
int v66; // ecx
int v67; // ecx
int v68; // ecx
int v69; // ecx
int v70; // ecx
cocos2d::CCObject *v71; // r15
__int64 v72; // rcx
__int64 v73; // rcx
__int64 v74; // rbx
const struct cocos2d::CCPoint *v75; // rax
__int64 v76; // rax
int v77; // eax
__int64 v78; // rbx
unsigned __int8 v79; // al
__int64 v80; // rbx
unsigned __int8 v81; // al
__int64 v82; // rbx
__int64 v83; // rbx
float v84; // xmm0_4
__int64 v85; // rax
float v86; // xmm1_4
float v87; // xmm0_4
__int64 v88; // rax
float v89; // xmm2_4
int v90; // ecx
int v91; // ecx
int v92; // ecx
int v93; // ecx
int v94; // ecx
int v95; // ecx
__m128 v96; // [rsp+20h] [rbp-60h]
__m128 v97; // [rsp+30h] [rbp-50h] BYREF
float v98; // [rsp+A8h] [rbp+28h] BYREF
float v99; // [rsp+ACh] [rbp+2Ch]
__int64 v100; // [rsp+B0h] [rbp+30h] BYREF
if ( !a2 )
return;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 25 )
GameObject::determineSlopeDirection(a2);
else
GameObject::updateIsOriented((__int64 *)a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 336LL))(a2, 0);
if ( *(float *)(*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 1664LL))(a2, &v98) > *(float *)(a1 + 14976) )
*(_DWORD *)(a1 + 14976) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 1664LL))(
a2,
&v98);
v4 = *(_DWORD *)(a2 + 1036);
if ( v4 == 3613
|| v4 == 3662
|| (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 20
&& (*(_DWORD *)(a2 + 1256) != 1 || !*(_BYTE *)(a2 + 1488))
&& *(_DWORD *)(a2 + 1036) != 2063 )
{
*(_DWORD *)(a2 + 632) = -1;
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1192LL))(a1, a2);
}
if ( *(_DWORD *)(a2 + 1036) == 3663 )
*(_BYTE *)(a1 + 15232) = 1;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3536), (struct cocos2d::CCObject *)a2);
GJBaseGameLayer::addToGroups(a1, a2, 1u);
if ( *(_DWORD *)(a2 + 1036) == 1615 )
{
v98 = *(float *)(a2 + 1696);
v5 = *(_DWORD *)(a2 + 1916);
v100 = a2;
if ( v5 < 0 )
v98 = *(float *)&v5;
if ( *(_BYTE *)(a2 + 1920) )
{
v6 = sub_1403572D0(a1 + 4440, (__int64)&v97, (unsigned __int8 *)&v98);
v7 = (_QWORD *)(*(_QWORD *)v6 + 24LL);
v8 = *(_BYTE **)(*(_QWORD *)v6 + 32LL);
if ( v8 != *(_BYTE **)(*(_QWORD *)v6 + 40LL) )
{
*(_QWORD *)v8 = a2;
v7[1] += 8LL;
goto LABEL_29;
}
}
else
{
v9 = sub_1403572D0(a1 + 4376, (__int64)&v97, (unsigned __int8 *)&v98);
v7 = (_QWORD *)(*(_QWORD *)v9 + 24LL);
v8 = *(_BYTE **)(*(_QWORD *)v9 + 32LL);
if ( v8 != *(_BYTE **)(*(_QWORD *)v9 + 40LL) )
{
*(_QWORD *)v8 = a2;
v7[1] += 8LL;
goto LABEL_29;
}
}
sub_1400699B0(v7, v8, &v100);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 30
|| (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1648LL))(a2) == 31 )
{
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 14960), (struct cocos2d::CCObject *)a2);
}
LABEL_29:
if ( *(_DWORD *)(a2 + 660) == 1012 )
{
v10 = *(_QWORD *)(a2 + 1272);
v97.m128_i16[6] = 256;
v96.m128_u64[0] = 0x3F26666600000000LL;
v96.m128_i32[2] = 1041865114;
v11 = _mm_shuffle_ps(v96, v96, 147);
v11.m128_f32[0] = v97.m128_f32[3];
LOWORD(v100) = *(_WORD *)(v10 + 327);
BYTE2(v100) = *(_BYTE *)(v10 + 329);
v96 = _mm_shuffle_ps(v11, v11, 57);
v97 = v96;
v12 = GameToolbox::transformColor((__int64)&v98, (unsigned __int16 *)&v100, v97.m128_f32);
*(_WORD *)(a2 + 641) = *(_WORD *)v12;
*(_BYTE *)(a2 + 643) = *(_BYTE *)(v12 + 2);
}
if ( *(_QWORD *)(a2 + 896) && *(_DWORD *)(a2 + 664) == 1012 )
{
v97.m128_i16[6] = 256;
v13 = v97.m128_f32[3];
v96.m128_u64[0] = 0x3F26666600000000LL;
v96.m128_i32[2] = 1041865114;
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2 + 320) + 8LL))(a2 + 320);
v15 = _mm_shuffle_ps(v96, v96, 147);
v15.m128_f32[0] = v13;
v16 = *(_WORD *)v14;
LOBYTE(v14) = *(_BYTE *)(v14 + 2);
LOWORD(v100) = v16;
v97 = _mm_shuffle_ps(v15, v15, 57);
BYTE2(v100) = v14;
v17 = GameToolbox::transformColor((__int64)&v98, (unsigned __int16 *)&v100, v97.m128_f32);
*(_WORD *)(a2 + 641) = *(_WORD *)v17;
*(_BYTE *)(a2 + 643) = *(_BYTE *)(v17 + 2);
}
if ( *(_BYTE *)(a2 + 1260)
&& *(_DWORD *)(a2 + 1256) == 1
&& (!*(_BYTE *)(a2 + 1488) && !*(_BYTE *)(a2 + 1489)
|| (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1536LL))(a2)) )
{
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3560), (struct cocos2d::CCObject *)a2);
}
if ( *(_BYTE *)(a1 + 12670) )
*(_BYTE *)(a2 + 712) = 0;
if ( *(_DWORD *)(a2 + 1036) == 747 )
{
v18 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v98, v18);
v19 = *(float *)(a2 + 1876);
v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
v21 = *(_QWORD *)(a1 + 2792);
v99 = v19 + *(float *)(v20 + 4);
TeleportXOff = TeleportPortalObject::getTeleportXOff(a2, v21);
v98 = v98 + TeleportXOff;
v23 = TeleportPortalObject::create("portal_16_front_001.png", 0);
*(_QWORD *)(a2 + 1864) = v23;
v24 = v23;
v25 = *(_QWORD *)v23;
*(_DWORD *)(v23 + 1036) = 749;
(*(void (__fastcall **)(__int64))(v25 + 1112))(v23);
v26 = *(_QWORD *)v24;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, (const struct cocos2d::CCPoint *)&v98);
(*(void (__fastcall **)(__int64, __int64))(v26 + 1216))(v24, v27);
*(_BYTE *)(v24 + 1060) = 1;
*(_DWORD *)(v24 + 1136) = *(_DWORD *)(a2 + 1136);
*(_DWORD *)(v24 + 1056) = *(_DWORD *)(a2 + 1056);
LOBYTE(v28) = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1272LL))(a2) == 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 1088LL))(v24, v28);
*(_BYTE *)(v24 + 1004) = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1272LL))(a2) == 0;
*(_BYTE *)(v24 + 1050) = *(_BYTE *)(a2 + 1050);
*(_BYTE *)(v24 + 1051) = *(_BYTE *)(a2 + 1051);
*(_BYTE *)(v24 + 1052) = *(_BYTE *)(a2 + 1052);
v29 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 360LL))(a2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v24 + 352LL))(v24);
*(_DWORD *)(v24 + 980) = LODWORD(v29);
*(_DWORD *)(v24 + 984) = LODWORD(v29);
GameObject::copyGroups(v24, a2);
v30 = (float)(int)roundf(*(float *)(a2 + 1160) * 1000.0) / 1000.0;
*(float *)(v24 + 1160) = v30;
v31 = *(_QWORD *)v24;
*(float *)(v24 + 996) = v30;
*(_DWORD *)(v24 + 64) = 0;
(*(void (__fastcall **)(__int64))(v31 + 1288))(v24);
*(_BYTE *)(v24 + 848) = 1;
*(_BYTE *)(v24 + 872) = 1;
*(float *)&v29 = roundf(*(float *)(a2 + 1164) * 1000.0);
*(_DWORD *)(v24 + 68) = 0;
v32 = *(_QWORD *)v24;
v33 = (float)(int)*(float *)&v29 / 1000.0;
*(float *)(v24 + 1164) = v33;
*(float *)(v24 + 1000) = v33;
(*(void (__fastcall **)(__int64))(v32 + 1296))(v24);
*(_BYTE *)(v24 + 848) = 1;
*(_BYTE *)(v24 + 872) = 1;
*(_DWORD *)(v24 + 1328) = *(_DWORD *)(a2 + 1328);
*(_DWORD *)(v24 + 1332) = *(_DWORD *)(a2 + 1332);
if ( *(_BYTE *)(a2 + 1302) )
*(_BYTE *)(v24 + 1302) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v24 + 1464LL))(v24);
PlayLayer::addObject(a1, v24);
}
v34 = *(_DWORD *)(a2 + 1036);
if ( v34 <= 286 )
{
if ( v34 != 286 )
{
switch ( v34 )
{
case 10:
case 11:
case 12:
case 13:
case 45:
case 46:
case 47:
case 99:
case 101:
case 111:
goto LABEL_93;
case 15:
case 16:
case 17:
v35 = *(unsigned int *)(a1 + 14972);
if ( (int)v35 < 0 )
v35 = 0;
if ( (int)v35 > 3 )
v35 = 3;
v36 = cocos2d::CCString::createWithFormat("rod_ball_%02d_001.png", v35);
CString = cocos2d::CCString::getCString(v36);
v38 = GameObject::createWithFrame(CString);
v39 = *(_QWORD *)v38;
*((_DWORD *)v38 + 259) = 37;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v39 + 1112))(v38);
v40 = *(_DWORD *)(a2 + 660);
if ( v40 != 1004 )
{
v41 = *((int **)v38 + 138);
if ( v41 )
{
v42 = 1101;
if ( v40 < 0 )
v40 = 0;
if ( v40 <= 1101 )
v42 = v40;
*v41 = v42;
}
}
v43 = *(_QWORD **)(a2 + 1104);
if ( v43 )
*v43 = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1464LL))(a2);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 1464LL))(v38);
*(_QWORD *)(a2 + 1328) = 0;
*((_QWORD *)v38 + 166) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, *(float *)(a2 + 432) * 0.5, *(float *)(a2 + 436) + 10.0);
cocos2d::CCNode::convertToWorldSpace(a2, &v98, v44);
v45 = *(_QWORD *)v38;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 2800), &v100, &v98);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v45 + 1216))(v38, v46);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 160LL))(v38);
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)a1 + 1192LL))(a1, v38);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3536), v38);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v38 + 336LL))(v38, 0);
GameObject::copyGroups((__int64)v38, a2);
GJBaseGameLayer::addToGroups(a1, (__int64)v38, 1u);
break;
case 29:
case 30:
case 105:
goto LABEL_77;
case 31:
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12920), (struct cocos2d::CCObject *)a2);
break;
case 36:
case 84:
case 141:
goto LABEL_89;
default:
goto LABEL_131;
}
goto LABEL_131;
}
LABEL_93:
if ( *(_BYTE *)(a2 + 1302) )
goto LABEL_131;
v60 = GJBaseGameLayer::addGuideArt(a1, a2);
v61 = *(_DWORD *)(a2 + 1036);
v62 = v60;
if ( v61 <= 286 )
{
if ( v61 == 286 )
{
v63 = "portal_11_back_001.png";
}
else
{
switch ( v61 )
{
case 11:
v63 = "portal_02_back_001.png";
break;
case 12:
v63 = "portal_03_back_001.png";
break;
case 13:
v63 = "portal_04_back_001.png";
break;
case 45:
v63 = "portal_05_back_001.png";
break;
case 46:
v63 = "portal_06_back_001.png";
break;
case 47:
v63 = "portal_07_back_001.png";
break;
case 99:
v63 = "portal_08_back_001.png";
break;
case 101:
v63 = "portal_09_back_001.png";
break;
case 111:
v63 = "portal_10_back_001.png";
break;
default:
goto LABEL_97;
}
}
goto LABEL_128;
}
if ( v61 > 1331 )
{
v68 = v61 - 1933;
if ( !v68 )
{
v63 = "portal_18_back_001.png";
goto LABEL_128;
}
v69 = v68 - 131;
if ( !v69 )
goto LABEL_115;
v70 = v69 - 838;
if ( v70 )
{
if ( v70 == 24 )
v63 = "portal_19_back_001.png";
else
v63 = "portal_01_back_001.png";
goto LABEL_128;
}
}
else
{
if ( v61 == 1331 )
{
v63 = "portal_17_back_001.png";
goto LABEL_128;
}
v64 = v61 - 287;
if ( !v64 )
{
v63 = "portal_12_back_001.png";
goto LABEL_128;
}
v65 = v64 - 373;
if ( !v65 )
{
v63 = "portal_13_back_001.png";
goto LABEL_128;
}
v66 = v65 - 85;
if ( !v66 )
{
v63 = "portal_14_back_001.png";
goto LABEL_128;
}
v67 = v66 - 2;
if ( v67 )
{
if ( v67 != 2 )
{
LABEL_97:
v63 = "portal_01_back_001.png";
LABEL_128:
v71 = GameObject::createWithFrame(v63);
v72 = *(_QWORD *)v71;
*((_DWORD *)v71 + 259) = 38;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v72 + 1656))(v71, 7);
v73 = *(_QWORD *)v71;
*((_BYTE *)v71 + 1298) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *))(v73 + 1112))(v71);
v74 = *(_QWORD *)v71;
v75 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v98, v75);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v74 + 1216))(v71, v76);
*((_BYTE *)v71 + 1060) = 1;
*((_DWORD *)v71 + 281) = 4;
v77 = *(_DWORD *)(a2 + 1136);
if ( !v77 )
v77 = *(_DWORD *)(a2 + 1056);
v78 = *(_QWORD *)v71;
*((_DWORD *)v71 + 264) = v62 + v77 - 100;
v79 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1272LL))(a2);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(v78 + 1088))(v71, v79);
v80 = *(_QWORD *)v71;
v81 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1280LL))(a2);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(v80 + 1096))(v71, v81);
v82 = *(_QWORD *)v71;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2);
(*(void (__fastcall **)(cocos2d::CCObject *))(v82 + 368))(v71);
v83 = *(_QWORD *)v71;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2);
(*(void (__fastcall **)(cocos2d::CCObject *))(v83 + 384))(v71);
*((_DWORD *)v71 + 245) = *(_DWORD *)(a2 + 980);
*((_DWORD *)v71 + 246) = *(_DWORD *)(a2 + 984);
*((_BYTE *)v71 + 1004) = *(_BYTE *)(a2 + 1004);
*((_BYTE *)v71 + 1005) = *(_BYTE *)(a2 + 1005);
v84 = roundf(*(float *)(a2 + 1160) * 1000.0);
*((_DWORD *)v71 + 16) = 0;
v85 = *(_QWORD *)v71;
v86 = (float)(int)v84 / 1000.0;
*((float *)v71 + 290) = v86;
*((float *)v71 + 249) = v86;
(*(void (__fastcall **)(cocos2d::CCObject *))(v85 + 1288))(v71);
*((_BYTE *)v71 + 848) = 1;
*((_BYTE *)v71 + 872) = 1;
v87 = roundf(*(float *)(a2 + 1164) * 1000.0);
*((_DWORD *)v71 + 17) = 0;
v88 = *(_QWORD *)v71;
v89 = (float)(int)v87 / 1000.0;
*((float *)v71 + 291) = v89;
*((float *)v71 + 250) = v89;
(*(void (__fastcall **)(cocos2d::CCObject *))(v88 + 1296))(v71);
*((_BYTE *)v71 + 848) = 1;
*((_BYTE *)v71 + 872) = 1;
*((_DWORD *)v71 + 247) = *(_DWORD *)(a2 + 988);
*((_DWORD *)v71 + 248) = *(_DWORD *)(a2 + 992);
*((_BYTE *)v71 + 1050) = *(_BYTE *)(a2 + 1050);
*((_BYTE *)v71 + 1051) = *(_BYTE *)(a2 + 1051);
*((_BYTE *)v71 + 1052) = *(_BYTE *)(a2 + 1052);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1 + 1192LL))(a1, v71);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3536), v71);
GameObject::copyGroups((__int64)v71, a2);
GJBaseGameLayer::addToGroups(a1, (__int64)v71, 1u);
*(_BYTE *)(a2 + 1060) = 1;
*(_DWORD *)(a2 + 1056) = v62 + 12;
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v71 + 1464LL))(v71);
*((_DWORD *)v71 + 332) = *(_DWORD *)(a2 + 1328);
*((_DWORD *)v71 + 333) = *(_DWORD *)(a2 + 1332);
goto LABEL_131;
}
LABEL_115:
v63 = "portal_16_back_001.png";
goto LABEL_128;
}
}
v63 = "portal_15_back_001.png";
goto LABEL_128;
}
if ( v34 <= 1022 )
{
if ( v34 != 1022 )
{
if ( v34 > 747 )
{
v50 = v34 - 749;
if ( !v50 )
goto LABEL_93;
v51 = v50 - 150;
if ( v51 )
{
v52 = v51 - 1;
if ( v52 )
{
if ( v52 != 15 )
goto LABEL_131;
}
}
}
else
{
if ( v34 == 747 )
goto LABEL_93;
v47 = v34 - 287;
if ( !v47 )
goto LABEL_93;
v48 = v47 - 373;
if ( !v48 )
goto LABEL_93;
v49 = v48 - 84;
if ( v49 )
{
if ( v49 != 1 )
goto LABEL_131;
goto LABEL_93;
}
}
LABEL_77:
if ( *(_BYTE *)(a2 + 1501) )
{
v53 = *(_QWORD *)(a1 + 3512);
*(_WORD *)(a2 + 1465) = *(_WORD *)(v53 + 2706);
*(_BYTE *)(a2 + 1467) = *(_BYTE *)(v53 + 2708);
}
else if ( *(_BYTE *)(a2 + 1502) )
{
v54 = *(_QWORD *)(a1 + 3512);
*(_WORD *)(a2 + 1465) = *(_WORD *)(v54 + 2709);
*(_BYTE *)(a2 + 1467) = *(_BYTE *)(v54 + 2711);
}
goto LABEL_131;
}
goto LABEL_89;
}
if ( v34 > 1933 )
{
v58 = v34 - 2064;
if ( v58 )
{
v59 = v58 - 838;
if ( v59 )
{
if ( v59 != 24 )
goto LABEL_131;
}
}
goto LABEL_93;
}
if ( v34 == 1933 )
goto LABEL_93;
v55 = v34 - 1330;
if ( !v55 )
goto LABEL_89;
v56 = v55 - 1;
if ( !v56 )
goto LABEL_93;
v57 = v56 - 2;
if ( !v57 )
{
LABEL_89:
GJBaseGameLayer::addGuideArt(a1, a2);
goto LABEL_131;
}
if ( v57 == 483 && *(_BYTE *)(a2 + 1693) )
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3544), (struct cocos2d::CCObject *)a2);
LABEL_131:
v90 = *(_DWORD *)(a2 + 1036);
if ( v90 > 1934 )
{
v92 = v90 - 1935;
if ( !v92 )
goto LABEL_146;
v93 = v92 - 965;
if ( !v93 )
goto LABEL_146;
v94 = v93 - 2;
if ( !v94 )
goto LABEL_146;
v95 = v94 - 120;
if ( !v95 || v95 == 5 )
goto LABEL_146;
}
else
{
if ( v90 == 1934 )
goto LABEL_146;
if ( v90 <= 203 )
{
if ( v90 != 203 )
{
v91 = v90 - 200;
if ( v91 )
{
if ( (unsigned int)(v91 - 1) >= 2 )
goto LABEL_147;
}
}
LABEL_146:
if ( *(_BYTE *)(a2 + 1784) )
{
LABEL_150:
EffectGameObject::updateSpeedModType(a2);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 14912), (struct cocos2d::CCObject *)a2);
return;
}
goto LABEL_147;
}
if ( v90 == 1334 || v90 == 1917 )
goto LABEL_146;
}
LABEL_147:
if ( *(_DWORD *)(a2 + 1256) == 1 && *(_BYTE *)(a2 + 1796) && *(_BYTE *)(a2 + 1784) )
goto LABEL_150;
}