//
// GJBaseGameLayer::visit from 0x9abf1c to 0x9ad020 (4356 bytes)
//
// 4 xrefs:
// > ??> @ 0xe1718
// > ??> @ 0x1428730
// > ??> @ 0x1435c90
// > ??> @ 0x1475560
//
// This function is hookable on this platform (idp: arm, 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:58:13 +0000
//
__int64 __fastcall GJBaseGameLayer::visit(GJBaseGameLayer *this)
{
GJBaseGameLayer *v1; // x19
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
const cocos2d::CCPoint *v4; // x0
const cocos2d::CCPoint *v5; // x0
char v6; // w0
__int64 v7; // x20
float v8; // s9
__int64 v9; // x0
float v10; // s0
float v11; // s9
__int64 v12; // x20
void (__fastcall *v13)(__int64, __int64 *); // x21
__int64 v14; // x23
float v15; // s10
float v16; // s0
__int64 v17; // x0
float v18; // s11
float v19; // s0
__int64 v20; // x0
float v21; // s0
__int64 v22; // x0
float v23; // s8
float v24; // s9
float v25; // s0
float v26; // s8
float v27; // s0
__int64 v28; // x0
float v29; // s11
float *v30; // x0
__int64 v31; // x20
float v32; // s10
void (__fastcall *v33)(__int64, __int64 *); // x21
__int64 v34; // x23
float v35; // s0
__int64 v36; // x0
float v37; // s13
float v38; // s0
__int64 v39; // x0
float v40; // s12
__int64 v41; // x0
__int64 v42; // x0
__int64 i; // x23
__int64 v44; // x20
__int64 v45; // x21
__int64 MainObject; // x24
__int64 v47; // x27
__int64 v48; // x28
float v49; // s10
float v50; // s8
float v51; // s9
float v52; // s0
float v53; // s9
float v54; // s13
void (__fastcall *v55)(__int64, __int64 *); // x21
__int64 v56; // x24
long double v57; // q0
float v58; // s10
float v59; // s10
void (__fastcall *v60)(__int64, float); // x21
float v61; // s0
int j; // w20
__int64 v63; // x28
__int64 v64; // x0
unsigned int *v65; // x0
__int64 *v66; // x25
__int64 *v67; // x26
__int64 v68; // x21
__int64 v69; // x0
void (__fastcall *v70)(__int64, __int64 *); // x24
__int64 v71; // x0
__int64 v72; // x20
void (__fastcall *v73)(__int64, __int64 *); // x21
cocos2d::CCNode *v74; // x0
__int64 v75; // x0
int v76; // w20
__int64 v77; // x0
float v78; // s0
__int64 v79; // x0
__int64 v80; // x21
float v81; // s1
void (__fastcall *v82)(__int64, __int64 *); // x23
int v83; // w20
__int64 v84; // x25
__int64 v85; // x0
unsigned int *v86; // x0
__int64 *v87; // x24
__int64 *v88; // x27
__int64 v89; // x21
__int64 v90; // x0
void (__fastcall *v91)(__int64, __int64 *); // x19
__int64 v92; // x0
float v94; // s1
void (__fastcall *v95)(__int64, __int64 *); // x21
__int64 v96; // x0
long double v97; // q0
float v98; // s14
float v99; // s14
void (__fastcall *v100)(__int64, float); // x21
float v101; // s0
float v102; // s8
float v103; // s0
float v104; // s8
__int64 v105; // x20
void (__fastcall *v106)(__int64, __int64 *); // x21
__int64 v107; // x23
float v108; // s0
__int64 v109; // x0
float v110; // s8
float v111; // s8
float v112; // s0
float v113; // s9
float v114; // s0
__int64 v115; // x0
float *v116; // x0
__int64 v117; // x20
float v118; // s8
void (__fastcall *v119)(__int64, __int64 *); // x21
__int64 v120; // x23
float v121; // s0
__int64 v122; // x0
float v123; // s9
float v124; // s0
__int64 v125; // x0
__int64 v126; // x0
__int64 v127; // x0
__int64 v128; // x0
__int64 v129; // x0
int v130; // [xsp+A8h] [xbp+A8h]
int v131; // [xsp+ACh] [xbp+ACh]
__int64 v132; // [xsp+F8h] [xbp+F8h]
GJBaseGameLayer *v133; // [xsp+F8h] [xbp+F8h]
__int64 v134; // [xsp+100h] [xbp+100h] BYREF
_BYTE v135[8]; // [xsp+108h] [xbp+108h] BYREF
_BYTE v136[8]; // [xsp+110h] [xbp+110h] BYREF
_BYTE v137[8]; // [xsp+118h] [xbp+118h] BYREF
__int64 v138; // [xsp+120h] [xbp+120h] BYREF
float v139[2]; // [xsp+128h] [xbp+128h] BYREF
_BYTE v140[8]; // [xsp+130h] [xbp+130h] BYREF
_BYTE v141[8]; // [xsp+138h] [xbp+138h] BYREF
__int64 v142; // [xsp+140h] [xbp+140h] BYREF
_BYTE v143[8]; // [xsp+148h] [xbp+148h] BYREF
__int64 v144; // [xsp+150h] [xbp+150h] BYREF
_BYTE v145[16]; // [xsp+158h] [xbp+158h] BYREF
_BYTE v146[16]; // [xsp+168h] [xbp+168h] BYREF
_BYTE v147[16]; // [xsp+178h] [xbp+178h] BYREF
__int64 v148[2]; // [xsp+188h] [xbp+188h] BYREF
__int64 v149; // [xsp+198h] [xbp+198h] BYREF
float v150; // [xsp+1A0h] [xbp+1A0h]
float v151; // [xsp+1A4h] [xbp+1A4h]
v1 = this;
if ( *((float *)this + 3137) < 1.0 )
{
cocos2d::CCNode::visit(this);
return _stack_chk_guard;
}
if ( !*((_QWORD *)this + 407) || !(unsigned __int8)GJBaseGameLayer::isFlipping(this) )
goto LABEL_4;
v94 = *((float *)v1 + 251);
if ( *((float *)v1 + 3141) != 1.0 )
{
if ( v94 <= 0.5 )
goto LABEL_74;
LABEL_4:
v130 = 0;
goto LABEL_5;
}
if ( v94 < 0.5 )
goto LABEL_4;
LABEL_74:
v130 = 1;
GJBaseGameLayer::flipObjects(v1);
LABEL_5:
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v145, (const cocos2d::CCRect *)&unk_155D2E0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v146, (const cocos2d::CCRect *)&unk_155D2E0);
v2 = (cocos2d::CCDirector *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v147, (const cocos2d::CCRect *)&unk_155D2E0);
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v134, v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, *(float *)&v134 * 0.5, *((float *)&v134 + 1) * 0.5);
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, v4);
v5 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 496) + 192LL))(*((_QWORD *)v1 + 496));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, v5);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 352LL))(*((_QWORD *)v1 + 495));
v7 = *((_QWORD *)v1 + 495);
if ( v6 )
v131 = *(unsigned __int8 *)(v7 + 457) ^ 1;
else
v131 = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v7 + 408) + 912LL))(*(_QWORD *)(v7 + 408), 100);
if ( *((float *)v1 + 201) != 0.0 )
{
cocos2d::CCPoint::operator-(&v138, v135);
v8 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493)) + 4);
v9 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495));
v10 = *((float *)v1 + 3143) * -0.5;
if ( *(float *)(v9 + 4) >= v10 )
v10 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495)) + 4);
if ( v131 )
v11 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493)) + 4)
+ (float)(*((float *)v1 + 3143) * 0.5);
else
v11 = v8 - v10;
v12 = *((_QWORD *)v1 + 493);
v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL);
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, (float)-*((float *)v1 + 3142) * 0.5, -v11);
cocos2d::CCPoint::operator+(&v149, v14);
v13(v12, &v149);
cocos2d::CCRect::operator=(v145, *((_QWORD *)v1 + 493) + 424LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v149, (const cocos2d::CCRect *)v145);
v15 = *((float *)v1 + 3142) * 0.5;
v16 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v17 = *((_QWORD *)v1 + 493);
v18 = *((float *)v1 + 3142);
*(float *)&v149 = *(float *)&v149 - (float)(v15 / v16);
v19 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 168LL))(v17);
v20 = *((_QWORD *)v1 + 493);
v150 = v150 + (float)(v18 / v19);
v21 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v20 + 168LL))(v20);
v22 = *((_QWORD *)v1 + 496);
*((float *)&v149 + 1) = *((float *)&v149 + 1) + (float)(v11 / v21);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v22 + 352LL))(v22) )
{
v127 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 496) + 192LL))(*((_QWORD *)v1 + 496));
v23 = *((float *)&v134 + 1) + (float)(*((float *)v1 + 3143) * 0.5);
if ( *(float *)(v127 + 4) <= v23 )
v23 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 496) + 192LL))(*((_QWORD *)v1 + 496)) + 4);
}
else
{
v23 = *((float *)&v134 + 1) + (float)(*((float *)v1 + 3143) * 0.5);
}
v24 = (float)(v23
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493))
+ 4))
+ 1.0;
v25 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v26 = v151 - (float)(v24 / v25);
v27 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v28 = *((_QWORD *)v1 + 493);
v29 = -1.0 - (float)(*((float *)v1 + 3142) * 0.5);
*((float *)&v149 + 1) = *((float *)&v149 + 1) + v26;
v151 = v24 / v27;
v30 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 192LL))(v28);
v31 = *((_QWORD *)v1 + 493);
v32 = v29 - *v30;
v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL);
v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 192LL))(v31);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v144, v32, 0.0);
cocos2d::CCPoint::operator+(v148, v34);
v33(v31, v148);
v35 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v36 = *((_QWORD *)v1 + 493);
v37 = (float)(*(float *)&v134 + *((float *)v1 + 3142)) + 1.0;
*(float *)&v149 = *(float *)&v149 + (float)(v32 / v35);
v38 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v36 + 168LL))(v36);
v39 = *((_QWORD *)v1 + 493);
v150 = v37 / v38;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 1136LL))(v39, &v149);
if ( *((_DWORD *)v1 + 236) != lastGradientUpdate )
{
lastGradientUpdate = *((_DWORD *)v1 + 236);
if ( v131 )
{
v40 = *((float *)v1 + 3143) * 0.5;
}
else
{
v129 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495));
v40 = *((float *)v1 + 3143) * 0.5;
if ( *(float *)(v129 + 4) >= (float)-v40 )
v40 = -*(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495))
+ 4);
}
v41 = *((_QWORD *)v1 + 1550);
if ( v41 )
{
v42 = *(_QWORD *)(v41 + 56);
if ( v42 )
{
for ( i = *(_QWORD *)(v42 + 288); ; i = *(_QWORD *)(i + 288) )
{
v44 = *(_QWORD *)(v42 + 264);
if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 512LL))(v44) )
goto LABEL_35;
v45 = *(_QWORD *)(v44 + 584);
MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)v1, *(_DWORD *)(v45 + 1852));
v132 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)v1, *(_DWORD *)(v45 + 1856));
v47 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)v1, *(_DWORD *)(v45 + 1860));
v48 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)v1, *(_DWORD *)(v45 + 1864));
v49 = *((float *)v1 + 3142) * 0.5;
if ( *(_BYTE *)(v44 + 592)
&& (v49 = v49 / (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 490) + 168LL))(*((_QWORD *)v1 + 490)),
*(_BYTE *)(v44 + 592)) )
{
v50 = v40 / (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 490) + 168LL))(*((_QWORD *)v1 + 490));
v51 = *((float *)v1 + 3143) * 0.5;
if ( *(_BYTE *)(v44 + 592) )
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 490) + 168LL))(*((_QWORD *)v1 + 490));
else
v52 = 1.0;
}
else
{
v50 = v40;
v51 = *((float *)v1 + 3143) * 0.5;
v52 = 1.0;
}
v53 = v51 / v52;
if ( *(_BYTE *)(v45 + 1868) )
break;
v54 = 0.0;
if ( !v47 )
v54 = v49;
if ( v48 )
v49 = 0.0;
if ( v132 )
v50 = 0.0;
if ( MainObject )
v53 = 0.0;
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL);
v56 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 192LL))(v44);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v144, v54, v50);
cocos2d::CCPoint::operator-(v148, v56, &v144, v57);
v55(v44, v148);
if ( (float)(v54 + v49) != 0.0 )
{
v98 = *(float *)&v134;
v99 = v98 * (*(float (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 136LL))(v44, v54 + v49);
v100 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 128LL);
v101 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 136LL))(v44);
v100(v44, v101 * (float)((float)(v49 + (float)(v54 + v99)) / v99));
}
if ( (float)(v50 + v53) == 0.0 )
goto LABEL_35;
v58 = *((float *)&v134 + 1);
v59 = v58 * (*(float (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 152LL))(v44, v50 + v53);
v60 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 144LL);
v61 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 152LL))(v44);
v60(v44, v61 * (float)((float)(v53 + (float)(v50 + v59)) / v59));
if ( !i )
goto LABEL_38;
LABEL_36:
v42 = i;
}
if ( MainObject )
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, (const cocos2d::CCPoint *)&unk_155D2C8);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, v49, v50);
if ( v132 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (const cocos2d::CCPoint *)v139);
if ( v47 )
goto LABEL_79;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, v49 + v139[0], 0.0);
if ( v47 )
{
LABEL_79:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, (const cocos2d::CCPoint *)v139);
if ( v48 )
{
LABEL_80:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v142, (const cocos2d::CCPoint *)v139);
LABEL_81:
v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL);
v96 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 192LL))(v44);
cocos2d::CCPoint::operator-(v148, v96, v139, v97);
v95(v44, v148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, (const cocos2d::CCPoint *)v140);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v144, (const cocos2d::CCPoint *)v141);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, (const cocos2d::CCPoint *)&v142);
cocos2d::CCLayerColor::addToVertices(v44, v143, &v144, v148);
LABEL_35:
if ( !i )
goto LABEL_38;
goto LABEL_36;
}
LABEL_87:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, v49, v53);
cocos2d::CCPoint::operator+(&v142, v139);
goto LABEL_81;
}
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, 0.0, v53 + v139[1]);
if ( v48 )
goto LABEL_80;
goto LABEL_87;
}
}
}
LABEL_38:
for ( j = 0; j != 3; ++j )
{
if ( j )
{
if ( j == 1 )
v63 = *((_QWORD *)v1 + 488);
else
v63 = *((_QWORD *)v1 + 489);
}
else
{
v63 = *((_QWORD *)v1 + 487);
}
v64 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v63 + 488LL))(v63);
if ( v64 )
{
v65 = *(unsigned int **)(v64 + 56);
if ( *v65 )
{
v66 = *((__int64 **)v65 + 2);
v67 = &v66[*v65 - 1];
while ( v67 >= v66 )
{
v68 = *v66;
if ( !*v66 )
break;
v69 = *v66++;
v70 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v68 + 184LL);
v71 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v68 + 192LL))(v69);
cocos2d::CCPoint::operator+(v148, v71);
v70(v68, v148);
}
}
}
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v63 + 184LL))(v63, v135);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v63 + 360LL))(v63, *((float *)v1 + 201));
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v1 + 1664) + 360LL))(
*((_QWORD *)v1 + 1664),
-*((float *)v1 + 201));
v72 = *((_QWORD *)v1 + 1664);
v73 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v72 + 184LL);
v74 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 512LL))(v72);
cocos2d::CCNode::convertToNodeSpace(v148, v74, (const cocos2d::CCPoint *)&unk_155D2C8);
v73(v72, v148);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v142);
v75 = *((_QWORD *)v1 + 1552);
if ( v75 )
goto LABEL_49;
LABEL_98:
v76 = 0;
goto LABEL_54;
}
v102 = 0.0;
cocos2d::CCRect::operator=(v145, *((_QWORD *)v1 + 493) + 424LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v149, (const cocos2d::CCRect *)v145);
if ( *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495)) + 4) >= 0.0 )
v102 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 495) + 192LL))(*((_QWORD *)v1 + 495)) + 4);
v103 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493)) + 4);
if ( v131 )
v104 = -1.0
- *(float *)((*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)v1 + 493) + 192LL))(
*((_QWORD *)v1 + 493),
v103)
+ 4);
else
v104 = (float)(v102 - v103) - 1.0;
v105 = *((_QWORD *)v1 + 493);
v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v105 + 184LL);
v107 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v105 + 192LL))(v105);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v144, 0.0, v104);
cocos2d::CCPoint::operator+(v148, v107);
v106(v105, v148);
v108 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v109 = *((_QWORD *)v1 + 496);
*((float *)&v149 + 1) = *((float *)&v149 + 1) - (float)(v104 / v108);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v109 + 352LL))(v109) )
{
v128 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 496) + 192LL))(*((_QWORD *)v1 + 496));
v110 = *((float *)&v134 + 1);
if ( *(float *)(v128 + 4) <= *((float *)&v134 + 1) )
v110 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 496) + 192LL))(*((_QWORD *)v1 + 496)) + 4);
}
else
{
v110 = *((float *)&v134 + 1);
}
v111 = (float)(v110
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493))
+ 4))
+ 1.0;
v112 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v113 = v151 - (float)(v111 / v112);
v114 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v115 = *((_QWORD *)v1 + 493);
*((float *)&v149 + 1) = *((float *)&v149 + 1) + v113;
v151 = v111 / v114;
v116 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v115 + 192LL))(v115);
v117 = *((_QWORD *)v1 + 493);
v118 = -1.0 - *v116;
v119 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL);
v120 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v117 + 192LL))(v117);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v144, v118, 0.0);
cocos2d::CCPoint::operator+(v148, v120);
v119(v117, v148);
v121 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
v122 = *((_QWORD *)v1 + 493);
v123 = *(float *)&v134 + 2.0;
*(float *)&v149 = *(float *)&v149 + (float)(v118 / v121);
v124 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v122 + 168LL))(v122);
v125 = *((_QWORD *)v1 + 493);
v150 = v123 / v124;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v125 + 1136LL))(v125, &v149);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v142);
v75 = *((_QWORD *)v1 + 1552);
if ( !v75 )
goto LABEL_98;
LABEL_49:
v76 = 0;
if ( *(_BYTE *)(v75 + 1078) && *(int *)(v75 + 1068) > 0 )
{
cocos2d::CCRect::operator=(v148, *((_QWORD *)v1 + 493) + 424LL);
v77 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 192LL))(*((_QWORD *)v1 + 493));
cocos2d::CCPoint::operator=(&v142, v77);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v149, (const cocos2d::CCRect *)v148);
v78 = 100.0 / (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 493) + 168LL))(*((_QWORD *)v1 + 493));
if ( v131 || *((float *)v1 + 201) == 0.0 )
{
v79 = *((_QWORD *)v1 + 493);
*(float *)&v149 = *(float *)&v149 - v78;
v150 = v150 + (float)(v78 * 2.0);
v151 = v151 + (float)(v78 * 2.0);
*((float *)&v149 + 1) = *((float *)&v149 + 1) - v78;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v79 + 1136LL))(v79, &v149);
v80 = *((_QWORD *)v1 + 493);
v81 = -100.0;
v82 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v80 + 184LL);
}
else
{
v126 = *((_QWORD *)v1 + 493);
*((float *)&v149 + 1) = *((float *)&v149 + 1) - v78;
v150 = v150 + (float)(v78 * 2.0);
*(float *)&v149 = *(float *)&v149 - v78;
v151 = v78 + v151;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 1136LL))(v126, &v149);
v80 = *((_QWORD *)v1 + 493);
v81 = 0.0;
v82 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v80 + 184LL);
}
v76 = 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, -100.0, v81);
cocos2d::CCPoint::operator+(&v144, &v142);
v82(v80, &v144);
}
LABEL_54:
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 1569) + 352LL))(*((_QWORD *)v1 + 1569)) )
{
GJBaseGameLayer::visitWithColorFlash(v1);
if ( !v76 )
goto LABEL_56;
LABEL_90:
(*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)v1 + 493) + 1136LL))(*((_QWORD *)v1 + 493), v148);
(*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)v1 + 493) + 184LL))(*((_QWORD *)v1 + 493), &v142);
goto LABEL_56;
}
cocos2d::CCNode::visit(v1);
if ( v76 )
goto LABEL_90;
LABEL_56:
if ( *((float *)v1 + 201) != 0.0 )
{
v83 = 0;
v133 = v1;
do
{
if ( v83 )
{
if ( v83 == 1 )
v84 = *((_QWORD *)v133 + 488);
else
v84 = *((_QWORD *)v133 + 489);
}
else
{
v84 = *((_QWORD *)v133 + 487);
}
v85 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 488LL))(v84);
if ( v85 )
{
v86 = *(unsigned int **)(v85 + 56);
if ( *v86 )
{
v87 = *((__int64 **)v86 + 2);
v88 = &v87[*v86 - 1];
while ( v88 >= v87 )
{
v89 = *v87;
if ( !*v87 )
break;
v90 = *v87++;
v91 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 184LL);
v92 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v89 + 192LL))(v90);
cocos2d::CCPoint::operator+(&v149, v92);
v91(v89, &v149);
}
}
}
++v83;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v84 + 360LL))(v84, 0.0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v84 + 184LL))(v84, &unk_155D2C8);
}
while ( v83 != 3 );
v1 = v133;
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v133 + 1664) + 360LL))(*((_QWORD *)v133 + 1664), 0.0);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)v1 + 1664) + 184LL))(*((_QWORD *)v1 + 1664), &unk_155D2C8);
}
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)v1 + 493) + 1136LL))(*((_QWORD *)v1 + 493), v145);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)v1 + 493) + 184LL))(*((_QWORD *)v1 + 493), v136);
if ( v130 )
GJBaseGameLayer::flipObjects(v1);
return _stack_chk_guard;
}