//
// GJBaseGameLayer::updateCamera from 0x9e3900 to 0x9e5864 (8036 bytes)
//
// 9 xrefs:
// > PlayLayer::setupHasCompleted @ 0x707e18
// > PlayLayer::setupHasCompleted @ 0x7080ac
// > PlayLayer::switchToStartPosObject @ 0x710fe8
// > PlayLayer::resetLevel @ 0x7115dc
// > LevelEditorLayer::onPlaytest @ 0x79660c
// > LevelEditorLayer::onPlaytest @ 0x796704
// > GJBaseGameLayer::checkCameraLimitAfterTeleport @ 0x9e5940
// > GJBaseGameLayer::update @ 0x9edd78
// > ??> @ 0xc7be8
//
// 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:59 +0000
//
__int64 __fastcall GJBaseGameLayer::updateCamera(GJBaseGameLayer *this, float a2)
{
cocos2d::CCDirector *v4; // x0
float v5; // s15
float v6; // s8
float v7; // s13
float v8; // s12
float v9; // s8
float v10; // w27
float v11; // s0
float v12; // s9
float v13; // s0
float v14; // s14
float v15; // s0
float v16; // s10
float v17; // s0
float v18; // s0
float v19; // s2
__int64 v20; // x0
unsigned __int8 v21; // w0
unsigned __int8 *v22; // x1
float v23; // s1
float v24; // s0
long double v25; // q0
float v26; // s0
float v27; // s0
float v28; // s2
float v29; // s1
float v30; // s0
float v31; // s1
long double v32; // q0
const cocos2d::CCPoint *v33; // x0
__int64 v34; // x26
__int64 LastPosition; // x0
long double v36; // q0
float v37; // s0
float v38; // w0
float v39; // s0
float v40; // s9
float v41; // s1
float v42; // s3
float v43; // s0
float *v44; // x0
float *v45; // x23
GJBaseGameLayer *v46; // x24
int v47; // w19
int v48; // w26
unsigned int v49; // w1
float v50; // s14
float v51; // s1
float v52; // s0
float *v53; // x0
float v54; // s0
float v55; // s1
float v56; // s4
float v57; // s2
float v58; // s5
float v59; // s0
float v60; // s0
float v61; // s0
float v62; // s0
__int64 v63; // x19
float *v64; // x28
float v65; // s1
float v66; // s0
float v67; // s1
float v68; // s0
long double v69; // q0
cocos2d::CCDictionary *v70; // x2
int *v71; // x27
float *v72; // x23
int v73; // w22
int v74; // w26
float v75; // s0
float v76; // s2
int v77; // w0
float v78; // s0
GJGameState *v79; // x4
int v80; // w1
int v81; // w2
float v82; // s3
float v83; // s2
float v84; // s0
long double v85; // q0
float v86; // s0
__int64 v87; // x22
void (__fastcall *v88)(__int64, __int64 *, long double); // x24
long double v89; // q0
int v90; // w2
long double v91; // q0
int v93; // w2
float v94; // s1
float v95; // s2
float v96; // s0
float v97; // s4
cocos2d::CCDictionary *v98; // x2
float v99; // s0
GJGameState *v100; // x0
float v101; // s3
int v102; // w1
int v103; // w2
_BOOL4 v104; // w2
float v105; // s0
__int64 MainObject; // x0
int v107; // w6
_BOOL4 v108; // w2
float *v109; // x5
float v110; // s2
float v111; // s1
float v112; // s5
char isFlying; // w0
float v114; // s0
float v115; // s1
float v116; // s0
int v117; // w2
int v118; // w3
float v119; // s2
float v120; // s0
float v121; // s14
float v122; // s1
float v123; // s0
float v124; // s2
float v125; // s0
float v126; // s0
float v127; // s1
float v128; // s1
float v129; // s0
float v130; // s2
float v131; // w1
float *v132; // x0
float v133; // s0
float v134; // s0
float v135; // s1
float v136; // s0
float v137; // s4
float v138; // s4
float v139; // s0
float v140; // s1
float v141; // s0
float v142; // s0
float v143; // s0
float v144; // s1
float v145; // s0
float v146; // s0
float v147; // s0
int v148; // w6
int v149; // w6
int v150; // w0
float v151; // s0
float v152; // s1
float v153; // s0
float v154; // s1
float v155; // s0
float v156; // s5
float v157; // s0
float v158; // s0
float v159; // s4
float v160; // w1
float v161; // s2
float v162; // s1
float v163; // s0
_BOOL4 v164; // [xsp+A8h] [xbp+A8h]
_BOOL4 v165; // [xsp+A8h] [xbp+A8h]
int v166; // [xsp+A8h] [xbp+A8h]
int v167; // [xsp+A8h] [xbp+A8h]
_BOOL4 v168; // [xsp+A8h] [xbp+A8h]
float *v169; // [xsp+A8h] [xbp+A8h]
int v170; // [xsp+A8h] [xbp+A8h]
_BOOL4 v171; // [xsp+A8h] [xbp+A8h]
int v172; // [xsp+A8h] [xbp+A8h]
int v173; // [xsp+B0h] [xbp+B0h]
int v174; // [xsp+B4h] [xbp+B4h]
const cocos2d::CCPoint *v175; // [xsp+C8h] [xbp+C8h]
_BOOL4 v176; // [xsp+D0h] [xbp+D0h]
int v177; // [xsp+D0h] [xbp+D0h]
int v178; // [xsp+D0h] [xbp+D0h]
int v179; // [xsp+D0h] [xbp+D0h]
int v180; // [xsp+D0h] [xbp+D0h]
float *v181; // [xsp+D0h] [xbp+D0h]
_BOOL4 v182; // [xsp+D0h] [xbp+D0h]
int v183; // [xsp+D0h] [xbp+D0h]
int v184; // [xsp+D0h] [xbp+D0h]
char *v185; // [xsp+D8h] [xbp+D8h]
char *v186; // [xsp+E0h] [xbp+E0h]
int v187; // [xsp+F8h] [xbp+F8h]
float *v188; // [xsp+100h] [xbp+100h]
float *v189; // [xsp+118h] [xbp+118h]
int v190; // [xsp+128h] [xbp+128h]
int v191; // [xsp+12Ch] [xbp+12Ch]
float *v192; // [xsp+138h] [xbp+138h]
cocos2d::CCPoint *v193; // [xsp+140h] [xbp+140h]
float *v194; // [xsp+148h] [xbp+148h]
unsigned int v195; // [xsp+160h] [xbp+160h]
char *v196; // [xsp+168h] [xbp+168h]
char *v197; // [xsp+168h] [xbp+168h]
float v198; // [xsp+170h] [xbp+170h]
float v199; // [xsp+180h] [xbp+180h]
float *v200; // [xsp+180h] [xbp+180h]
int v201; // [xsp+198h] [xbp+198h]
float v202; // [xsp+19Ch] [xbp+19Ch]
int v203; // [xsp+19Ch] [xbp+19Ch]
__int64 v204; // [xsp+1A8h] [xbp+1A8h] BYREF
_DWORD v205[2]; // [xsp+1B0h] [xbp+1B0h] BYREF
_DWORD v206[2]; // [xsp+1B8h] [xbp+1B8h] BYREF
float v207; // [xsp+1C0h] [xbp+1C0h] BYREF
float v208; // [xsp+1C4h] [xbp+1C4h]
float v209; // [xsp+1C8h] [xbp+1C8h] BYREF
float v210; // [xsp+1CCh] [xbp+1CCh]
float v211; // [xsp+1D0h] [xbp+1D0h] BYREF
float v212; // [xsp+1D4h] [xbp+1D4h]
float v213; // [xsp+1D8h] [xbp+1D8h] BYREF
float v214; // [xsp+1DCh] [xbp+1DCh]
float v215; // [xsp+1E0h] [xbp+1E0h] BYREF
float v216; // [xsp+1E4h] [xbp+1E4h]
__int64 v217; // [xsp+1E8h] [xbp+1E8h] BYREF
float v218; // [xsp+1F0h] [xbp+1F0h] BYREF
float v219; // [xsp+1F4h] [xbp+1F4h]
char v220[8]; // [xsp+1F8h] [xbp+1F8h] BYREF
float v221[2]; // [xsp+200h] [xbp+200h] BYREF
float v222; // [xsp+208h] [xbp+208h] BYREF
float v223; // [xsp+20Ch] [xbp+20Ch]
float v224; // [xsp+210h] [xbp+210h] BYREF
float v225; // [xsp+214h] [xbp+214h]
float v226; // [xsp+218h] [xbp+218h] BYREF
float v227; // [xsp+21Ch] [xbp+21Ch]
__int64 v228; // [xsp+220h] [xbp+220h] BYREF
float v229; // [xsp+228h] [xbp+228h] BYREF
float v230; // [xsp+22Ch] [xbp+22Ch]
float v231; // [xsp+230h] [xbp+230h] BYREF
__int64 v232; // [xsp+238h] [xbp+238h] BYREF
__int64 v233; // [xsp+240h] [xbp+240h] BYREF
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v204, v4);
v5 = *((float *)this + 188);
v6 = *((float *)this + 106);
v7 = *((float *)&v204 + 1);
v8 = *(float *)&v204 / v6;
v9 = *((float *)&v204 + 1) / v6;
v10 = *(float *)&v204 / v5;
if ( *((int *)this + 265) <= 0 )
{
v12 = -99999.0;
if ( *((int *)this + 264) > 0 )
{
LABEL_3:
GJBaseGameLayer::getCameraEdgeValue(this, 1);
v14 = v13;
if ( *((int *)this + 266) > 0 )
goto LABEL_4;
LABEL_65:
v16 = (float)(*((float *)this + 3410) - 150.0) - v9;
GJBaseGameLayer::getCameraEdgeValue(this, 4);
if ( v43 > 0.0 )
goto LABEL_5;
LABEL_66:
v202 = 0.0;
goto LABEL_6;
}
}
else
{
GJBaseGameLayer::getCameraEdgeValue(this, 2);
v12 = v11 - v8;
if ( *((int *)this + 264) > 0 )
goto LABEL_3;
}
v14 = -99999.0;
if ( *((int *)this + 266) <= 0 )
goto LABEL_65;
LABEL_4:
GJBaseGameLayer::getCameraEdgeValue(this, 3);
v16 = v15 - v9;
GJBaseGameLayer::getCameraEdgeValue(this, 4);
if ( v17 <= 0.0 )
goto LABEL_66;
LABEL_5:
GJBaseGameLayer::getCameraEdgeValue(this, 4);
v202 = v18;
LABEL_6:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v205, (float)*((int *)this + 264), (float)*((int *)this + 267));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v206, (float)*((int *)this + 265), (float)*((int *)this + 266));
if ( *((_QWORD *)this + 1576) )
{
v19 = *((float *)this + 108);
if ( v12 == -99999.0
|| v12 > (float)((float)(*((float *)this + 3150) - (float)(*(float *)&v204 / *((float *)this + 106))) - v19) )
{
v12 = (float)(*((float *)this + 3150) - (float)(*(float *)&v204 / *((float *)this + 106))) - v19;
v206[0] = 1.0;
}
}
v20 = *((_QWORD *)this + 409);
if ( *(_BYTE *)(v20 + 428) )
{
v193 = (GJBaseGameLayer *)((char *)this + 12288);
}
else
{
v193 = (GJBaseGameLayer *)((char *)this + 12288);
if ( !*((_BYTE *)this + 12618) || *((_BYTE *)this + 12616) )
goto LABEL_12;
}
if ( !*(_BYTE *)(v20 + 429) && v14 <= 15.0 )
v14 = 15.0;
LABEL_12:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v207, v12, v16);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, v14, v202);
v21 = PlayerObject::isInBasicMode(*((PlayerObject **)this + 407));
v22 = *((unsigned __int8 **)this + 407);
v187 = v21;
v203 = v22[2427];
v201 = v22[2426];
v191 = v22[2423];
if ( !*((_BYTE *)v193 + 317) && a2 != 0.0 )
{
if ( *((_BYTE *)this + 1720) )
{
v24 = 1.0;
if ( *((_BYTE *)this + 1721) )
goto LABEL_54;
}
else
{
v24 = (float)(*((float *)this + 144) != 0.0);
if ( *((_BYTE *)this + 1721) )
{
LABEL_54:
v23 = 1.0;
goto LABEL_15;
}
}
v23 = (float)(*((float *)this + 145) != 0.0);
goto LABEL_15;
}
v23 = 1.0;
v24 = 1.0;
LABEL_15:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v211, v24, v23);
if ( a2 > 0.0 && *((unsigned __int8 *)this + 1212) != v203 )
{
if ( *((float *)this + 142) == 0.0 && v211 == 0.0 )
{
*((float *)this + 144) = 1.0;
*((float *)this + 146) = 1.0;
*((float *)this + 150) = 1.0;
*((float *)this + 148) = 2.0;
*((_DWORD *)this + 152) = 0;
}
if ( *((float *)this + 143) == 0.0 && v212 == 0.0 )
{
*((float *)this + 145) = 1.0;
*((float *)this + 147) = 1.0;
*((float *)this + 151) = 1.0;
*((float *)this + 149) = 2.0;
*((_DWORD *)this + 153) = 0;
}
}
if ( !*((_BYTE *)this + 1720) && !*((_BYTE *)this + 1721) )
{
if ( !v201 )
goto LABEL_24;
LABEL_31:
v26 = -1.0;
if ( !v203 )
goto LABEL_25;
goto LABEL_32;
}
*((_BYTE *)this + 1720) = 0;
*((_BYTE *)this + 1721) = 0;
*((_DWORD *)this + 298) = 0;
if ( v201 )
goto LABEL_31;
LABEL_24:
v26 = 1.0;
if ( !v203 )
{
LABEL_25:
v27 = v26 * (float)*((int *)this + 169);
if ( *((_BYTE *)this + 680) )
v28 = 1.0;
else
v28 = *((float *)this + 106);
*(float *)&v25 = v27 / v28;
v29 = 0.0;
goto LABEL_35;
}
LABEL_32:
v30 = v26 * (float)*((int *)this + 171);
if ( *((_BYTE *)this + 688) )
v31 = 1.0;
else
v31 = *((float *)this + 106);
v29 = v30 / v31;
LODWORD(v25) = 0;
LABEL_35:
v198 = *(float *)&v25;
v199 = v29;
v186 = (char *)this + 504;
cocos2d::CCPoint::operator-(&v233, (char *)this + 992, (char *)this + 504, v25);
v185 = (char *)this + 456;
*(__n128 *)&v32 = cocos2d::CCPoint::operator=((char *)this + 992, &v233);
cocos2d::CCPoint::operator-(&v232, (char *)this + 432, (char *)this + 456, v32);
v196 = (char *)this + 0x2000;
cocos2d::CCPoint::operator+(&v233, (char *)this + 992);
cocos2d::CCPoint::operator=((char *)this + 992, &v233);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v213, v198, v199);
v33 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v215, v33);
v34 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407));
LastPosition = GameObject::getLastPosition(*((GameObject **)this + 407));
cocos2d::CCPoint::operator-(&v217, v34, LastPosition, v36);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v218, (GJBaseGameLayer *)((char *)this + 992));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v220, *(float *)&v204 * 0.5, *((float *)&v204 + 1) * 0.5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v221,
(float)(*(float *)&v204 * 0.5) + -2.0,
(float)(*((float *)&v204 + 1) * 0.5) + -2.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v222,
-(float)((float)((float)(*((float *)this + 179) * (float)(v221[0] - 30.0)) + 30.0) - (float)(*(float *)&v204 * 0.5)),
-(float)((float)((float)(*((float *)this + 179) * (float)(v221[1] - 30.0)) + 30.0)
- (float)(*((float *)&v204 + 1) * 0.5)));
cocos2d::CCPoint::operator*(&v222, 1.0 / *((float *)this + 106));
cocos2d::CCPoint::operator=(&v222, &v233);
if ( *((_BYTE *)this + 12238) )
{
if ( *(_BYTE *)(*((_QWORD *)this + 407) + 2423LL) )
{
*(float *)&v173 = 55.0;
*(float *)&v174 = 27.5;
}
else
{
*(float *)&v173 = 27.5;
*(float *)&v174 = 55.0;
}
v37 = 8.0;
}
else
{
if ( *(_BYTE *)(*((_QWORD *)this + 407) + 2423LL) )
{
*(float *)&v173 = 70.0;
*(float *)&v174 = 40.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v224, 1.0, 10.0);
if ( v203 )
goto LABEL_40;
goto LABEL_58;
}
*(float *)&v173 = 40.0;
*(float *)&v174 = 70.0;
v37 = 1.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v224, v37, 10.0);
if ( v203 )
{
LABEL_40:
v190 = v191 ^ 1;
v38 = v225;
v225 = v224;
v224 = v38;
goto LABEL_41;
}
LABEL_58:
if ( v191 )
{
v190 = 0;
LABEL_41:
if ( *((float *)this + 106) != *((float *)this + 188) )
{
v39 = 0.5;
LABEL_43:
v40 = v218 - (float)((float)(v8 * v39) - (float)(v10 * v39));
v218 = v40;
goto LABEL_205;
}
goto LABEL_68;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)(*((_QWORD *)this + 407) + 2532LL));
if ( *((float *)&v233 + 1) == 105.0 )
{
v42 = *((float *)this + 188);
v41 = *((float *)this + 106);
if ( v42 < v41 )
{
isFlying = PlayerObject::isFlying(*((PlayerObject **)this + 407));
v41 = *((float *)this + 106);
v42 = *((float *)this + 188);
if ( !isFlying )
{
v195 = v216 <= (float)(v9 - (float)(90.0 / v41));
if ( v41 == v42 )
{
v190 = 1;
LABEL_211:
v200 = (float *)((char *)this + 568);
v194 = (float *)((char *)this + 648);
goto LABEL_69;
}
v190 = 1;
v40 = v218 - (float)((float)(v8 * 0.5) - (float)(v10 * 0.5));
v218 = v40;
if ( v216 <= (float)(v9 - (float)(90.0 / v41)) )
{
LABEL_206:
if ( *((_BYTE *)this + 12238) )
{
if ( v203 )
{
v139 = *((float *)this + 163);
v194 = (float *)((char *)this + 648);
v200 = (float *)((char *)this + 568);
if ( v139 != 0.0 && *((float *)this + 143) == 0.0 )
{
v140 = *((float *)this + 161);
v141 = v140 / v139;
if ( v141 <= 1.0 )
{
if ( (v142 = v141 * v214, v142 >= 0.0) && v140 >= 0.0 || v142 < 0.0 && v140 < 0.0 )
{
v143 = v142 - v140;
v144 = v143 + v140;
v145 = v143 + v219;
*((float *)this + 161) = v144;
v219 = v145;
}
}
}
goto LABEL_69;
}
v114 = *((float *)this + 162);
if ( v114 != 0.0 && *((float *)this + 142) == 0.0 )
{
v115 = *((float *)this + 160);
v116 = v115 / v114;
if ( v116 <= 1.0 )
{
if ( (v146 = v116 * v213, v146 >= 0.0) && v115 >= 0.0 || v146 < 0.0 && v115 < 0.0 )
{
v147 = v146 - v115;
v200 = (float *)((char *)this + 568);
v194 = (float *)((char *)this + 648);
*((float *)this + 160) = v147 + v115;
v218 = v40 + v147;
goto LABEL_69;
}
}
}
}
goto LABEL_211;
}
LABEL_205:
v195 = 0;
v219 = v219 - (float)((float)(v9 * 0.5) - (float)((float)(v7 / v5) * 0.5));
goto LABEL_206;
}
}
}
else
{
v41 = *((float *)this + 106);
v42 = *((float *)this + 188);
}
if ( v42 != v41 )
{
v190 = 1;
v39 = 0.5;
goto LABEL_43;
}
v190 = 1;
LABEL_68:
v195 = 0;
v200 = (float *)((char *)this + 568);
v194 = (float *)((char *)this + 648);
LABEL_69:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (const cocos2d::CCPoint *)&v218);
v175 = (GJBaseGameLayer *)((char *)this + 992);
v189 = (float *)((char *)this + 1196);
v192 = (float *)((char *)this + 448);
v44 = (float *)((char *)this + 656);
v45 = (float *)((char *)this + 432);
v46 = this;
v47 = 0;
v48 = 1;
v188 = v44;
while ( 1 )
{
v49 = ((unsigned __int8)v47 ^ 1) & 1;
if ( (((unsigned __int8)v47 ^ 1) & 1) != 0 )
{
v50 = v8 * 0.5;
}
else
{
v50 = v9 * 0.5;
PlayerObject::getYVelocity(*((PlayerObject **)v46 + 407));
v49 = ((unsigned __int8)v47 ^ 1) & 1;
}
if ( v47 )
{
if ( v200[1] != 0.0 )
{
v51 = *((float *)v46 + 139);
v52 = *((float *)v46 + 153);
if ( v52 == 0.0 && v51 == 0.0 )
{
v53 = (float *)((char *)v46 + 480);
v225 = 1.0;
LABEL_77:
v54 = v53[1];
if ( *((_BYTE *)v46 + 784) )
{
v55 = *((float *)v46 + 123);
v56 = (float)((float)(*((float *)v46 + 187) * 0.5) / *((float *)v46 + 106)) + 90.0;
if ( v56 > v55 )
{
v57 = *((float *)v46 + 119);
v58 = 0.0;
if ( v55 != v57 )
v58 = (float)(v55 - v54) / (float)(v55 - v57);
v54 = v54 + (float)((float)(1.0 - v58) * (float)(v56 - v55));
}
}
v227 = v45[1] + (float)(v54 - v50);
goto LABEL_83;
}
v164 = v51 != 0.0;
v176 = v52 != 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v229);
v104 = v176;
if ( v164 )
{
v105 = *((float *)v46 + 141);
LABEL_183:
v165 = v104;
MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)v46, (int)v105);
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)MainObject + 1360LL))(&v233);
cocos2d::CCPoint::operator=(&v229, &v233);
v107 = 1;
v108 = v165;
goto LABEL_184;
}
goto LABEL_267;
}
if ( v195 > v49 )
{
v227 = v45[1] + 0.0;
goto LABEL_83;
}
}
else
{
if ( *v200 != 0.0 )
{
v152 = *((float *)v46 + 138);
v153 = *((float *)v46 + 152);
if ( v153 == 0.0 && v152 == 0.0 )
{
v53 = (float *)((char *)v46 + 480);
v224 = 1.0;
goto LABEL_300;
}
v171 = v152 != 0.0;
v182 = v153 != 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v229);
v104 = v182;
if ( v171 )
{
v105 = *((float *)v46 + 140);
goto LABEL_183;
}
LABEL_267:
v168 = v104;
cocos2d::CCPoint::operator=(&v229, (char *)v46 + 488);
v108 = v168;
v107 = 0;
LABEL_184:
if ( v47 )
{
v109 = (float *)((char *)v46 + 528);
v110 = *((float *)v46 + 133);
if ( v110 >= 1.0 )
{
v53 = (float *)((char *)v46 + 480);
*((float *)v46 + 121) = v230;
if ( !v107 )
goto LABEL_194;
goto LABEL_187;
}
if ( !v108 )
{
v112 = *((float *)v46 + 135);
if ( v110 == v112 )
{
if ( !v107 )
{
LABEL_193:
v53 = (float *)((char *)v46 + 480);
goto LABEL_194;
}
v53 = (float *)((char *)v46 + 480);
}
else
{
v53 = (float *)((char *)v46 + 480);
*((float *)v46 + 121) = *((float *)v46 + 121)
+ (float)((float)(v230 - *((float *)v46 + 121))
/ (float)((float)(1.0 - v112) / (float)(v110 - v112)));
*((float *)v46 + 135) = v110;
if ( !v107 )
goto LABEL_194;
}
LABEL_187:
v111 = *((float *)v46 + 137) * v109[1];
if ( v111 > 1.0 )
{
LABEL_188:
if ( !v47 )
goto LABEL_299;
v225 = v111;
goto LABEL_77;
}
LABEL_194:
v111 = 1.0;
goto LABEL_188;
}
goto LABEL_294;
}
v156 = *((float *)v46 + 132);
v109 = (float *)((char *)v46 + 528);
v157 = v229;
if ( v156 < 1.0 )
{
if ( v108 )
{
LABEL_294:
v169 = v109;
v180 = v107;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v231,
(float)((float)(*((float *)v46 + 128) * *((float *)v46 + 130)) / 3.0) + *((float *)v46 + 118),
(float)((float)(*((float *)v46 + 129) * *((float *)v46 + 131)) / 3.0) + *((float *)v46 + 119));
v148 = v180;
v181 = v169;
v170 = v148;
if ( v47 )
{
lerp(
(const cocos2d::CCPoint *)&v229,
(const cocos2d::CCPoint *)&v231,
*((float *)v46 + 155),
(float *)&v232);
cubicBezier(
(GJBaseGameLayer *)((char *)v46 + 472),
(const cocos2d::CCPoint *)&v231,
(const cocos2d::CCPoint *)&v232,
(const cocos2d::CCPoint *)&v229,
v181[1],
(float *)&v233);
v149 = v170;
v109 = v181;
v53 = (float *)((char *)v46 + 480);
*((_DWORD *)v46 + 121) = HIDWORD(v233);
}
else
{
lerp(
(const cocos2d::CCPoint *)&v229,
(const cocos2d::CCPoint *)&v231,
*((float *)v46 + 154),
(float *)&v232);
cubicBezier(
(GJBaseGameLayer *)((char *)v46 + 472),
(const cocos2d::CCPoint *)&v231,
(const cocos2d::CCPoint *)&v232,
(const cocos2d::CCPoint *)&v229,
*v181,
(float *)&v233);
v53 = (float *)((char *)v46 + 480);
v109 = v181;
v149 = v170;
*((_DWORD *)v46 + 120) = v233;
}
if ( !v149 )
goto LABEL_194;
if ( v47 )
goto LABEL_187;
goto LABEL_298;
}
v161 = *((float *)v46 + 134);
if ( v156 == v161 )
{
if ( !v107 )
goto LABEL_193;
v53 = (float *)((char *)v46 + 480);
goto LABEL_298;
}
v53 = (float *)((char *)v46 + 480);
v162 = *((float *)v46 + 120);
*((float *)v46 + 134) = v156;
*((float *)v46 + 120) = v162
+ (float)((float)(v157 - v162) / (float)((float)(1.0 - v161) / (float)(v156 - v161)));
}
else
{
v53 = (float *)((char *)v46 + 480);
*((float *)v46 + 120) = v229;
}
if ( !v107 )
{
v111 = 1.0;
goto LABEL_188;
}
LABEL_298:
v111 = *((float *)v46 + 136) * *v109;
if ( v111 <= 1.0 )
goto LABEL_194;
LABEL_299:
v224 = v111;
LABEL_300:
v226 = *v45 + (float)(*v53 - v50);
v59 = v207;
goto LABEL_84;
}
if ( v195 > v49 )
{
v226 = *v45 + 0.0;
goto LABEL_172;
}
}
if ( v49 == (v203 ^ 1) )
{
if ( !v47 )
{
v160 = v213;
*v194 = v213;
if ( *((float *)v46 + 173) == 0.0 )
{
v132 = (float *)((char *)v46 + 640);
if ( *((float *)v46 + 106) != *((float *)v46 + 188)
&& (v132 = (float *)((char *)v46 + 640), *((float *)v46 + 160) == *v188)
&& *((unsigned __int8 *)v46 + 1213) == v201 )
{
*((float *)v46 + 160) = v160;
}
else
{
v158 = *v132;
v159 = v213;
if ( v213 <= *v132 )
{
v163 = v158 - fabsf(*(float *)&v217);
if ( v213 <= v163 )
v159 = v163;
}
else if ( v213 >= (float)(v158 + fabsf(*(float *)&v217)) )
{
v159 = fabsf(*(float *)&v217) + *v132;
}
*v132 = v159;
}
}
else
{
v132 = (float *)((char *)v46 + 640);
*((float *)v46 + 160) = v160;
}
v133 = v211;
goto LABEL_259;
}
v131 = v214;
v194[1] = v214;
if ( *((float *)v46 + 174) != 0.0 )
{
v132 = (float *)((char *)v46 + 640);
*((float *)v46 + 161) = v131;
goto LABEL_258;
}
v132 = (float *)((char *)v46 + 640);
if ( *((float *)v46 + 106) != *((float *)v46 + 188) )
{
v135 = *((float *)v46 + 161);
if ( v135 != v188[1] )
{
LABEL_275:
v136 = v214;
if ( v214 <= v135 )
{
v138 = *((float *)v46 + 161) - fabsf(*((float *)&v217 + 1));
if ( v214 <= v138 )
{
*((float *)v46 + 161) = v138;
goto LABEL_258;
}
}
else
{
v137 = fabsf(*((float *)&v217 + 1));
if ( v214 >= (float)(v137 + v135) )
v136 = v137 + *((float *)v46 + 161);
}
*((float *)v46 + 161) = v136;
LABEL_258:
v133 = v212;
LABEL_259:
if ( v133 == 0.0 )
{
if ( !v47 )
goto LABEL_364;
v134 = v132[1];
}
else
{
if ( !v47 )
{
*v132 = v213;
LABEL_364:
v226 = *v45 + (float)((float)(v215 - v50) + *v132);
LABEL_172:
v59 = v207;
goto LABEL_84;
}
v134 = v214;
v132[1] = v214;
}
v227 = v45[1] + (float)((float)(v216 - v50) + v134);
goto LABEL_83;
}
if ( *((unsigned __int8 *)v46 + 1213) == v201 )
{
*((float *)v46 + 161) = v131;
goto LABEL_258;
}
}
v135 = *((float *)v46 + 161);
goto LABEL_275;
}
v93 = v49 ? v191 : v190;
if ( v187 )
{
v94 = *(float *)&v173;
v95 = *(float *)&v174;
if ( v47 )
goto LABEL_165;
}
else
{
if ( v47 )
{
v94 = v223;
v95 = v223;
v225 = *((float *)v46 + 180);
LABEL_165:
v96 = v219;
v97 = v216 + v45[1];
goto LABEL_166;
}
v95 = v222;
v94 = v222;
v224 = *((float *)v46 + 180);
}
v96 = v218;
v97 = v215 + *v45;
LABEL_166:
if ( (float)((float)(v50 + v96) + v95) >= v97 )
{
if ( v47 )
{
v130 = v45[1];
if ( (float)((float)(v50 + v219) - v94) <= (float)(v216 + v130) )
{
if ( !v187 || !v196[4046] )
goto LABEL_171;
v179 = v93;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v233,
(const cocos2d::CCPoint *)(*((_QWORD *)v46 + 407) + 2532LL));
v119 = *((float *)&v233 + 1);
v117 = v179;
v120 = v45[1];
}
else
{
v227 = v130 + (float)((float)(v216 - v50) + v94);
if ( !v187 || !v196[4046] )
goto LABEL_83;
v167 = v93;
v178 = v93;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v233,
(const cocos2d::CCPoint *)(*((_QWORD *)v46 + 407) + 2532LL));
v118 = v178;
v117 = v167;
LABEL_219:
v119 = *((float *)&v233 + 1);
v120 = v45[1];
if ( v118 )
goto LABEL_244;
}
v121 = v120 + (float)(v119 - v50);
goto LABEL_221;
}
if ( (float)(v215 + *v45) >= (float)((float)(v50 + v218) - v94) )
{
if ( !v187 || !v196[4046] )
goto LABEL_172;
v184 = v93;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v233,
(const cocos2d::CCPoint *)(*((_QWORD *)v46 + 407) + 2532LL));
v119 = *(float *)&v233;
v117 = v184;
v121 = (float)(*(float *)&v233 - v50) + *v45;
goto LABEL_221;
}
v226 = *v45 + (float)((float)(v215 - v50) + v94);
if ( !v187 || !v196[4046] )
goto LABEL_172;
v172 = v93;
v183 = v93;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)(*((_QWORD *)v46 + 407) + 2532LL));
v118 = v183;
v117 = v172;
}
else
{
if ( v47 )
v227 = (float)((float)(v216 - v50) - v95) + v45[1];
else
v226 = *v45 + (float)((float)(v215 - v50) - v95);
if ( !v187 || !v196[4046] )
{
LABEL_171:
if ( !v47 )
goto LABEL_172;
goto LABEL_83;
}
v166 = v93 ^ 1;
v177 = v93;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)(*((_QWORD *)v46 + 407) + 2532LL));
v117 = v177;
v118 = v166;
if ( v47 )
goto LABEL_219;
}
v119 = *(float *)&v233;
v121 = (float)(*(float *)&v233 - v50) + *v45;
if ( v118 )
goto LABEL_348;
LABEL_221:
if ( v117 )
{
if ( v47 )
{
if ( v227 < v121 )
{
v122 = v219;
if ( v219 < v121 && v119 <= v216 )
goto LABEL_226;
}
goto LABEL_244;
}
if ( v226 < v121 && v218 < v121 && v119 <= v215 )
{
LABEL_347:
v226 = v121;
v224 = 30.0;
}
}
else
{
if ( v47 )
{
if ( v227 > v121 )
{
v122 = v219;
if ( v219 > v121 && v119 >= v216 )
{
LABEL_226:
v123 = v121;
v124 = 30.0;
v227 = v121;
v225 = 30.0;
LABEL_227:
v125 = vabds_f32(v123, v122);
goto LABEL_228;
}
}
LABEL_244:
v123 = v227;
v122 = v219;
v124 = v225;
goto LABEL_227;
}
if ( v226 > v121 && v218 > v121 && v119 >= v215 )
goto LABEL_347;
}
LABEL_348:
v124 = v224;
v125 = vabds_f32(v226, v218);
LABEL_228:
v126 = 30.0 - (float)((float)(v125 / 100.0) * 20.0);
if ( v126 >= 30.0 )
{
if ( v124 < 30.0 )
{
if ( v126 >= 30.0 )
v126 = 30.0;
LABEL_248:
if ( !v47 )
goto LABEL_249;
goto LABEL_232;
}
}
else if ( v126 > v124 )
{
goto LABEL_248;
}
if ( !v47 )
{
v126 = v224;
LABEL_249:
v224 = v126;
v127 = *v189;
goto LABEL_233;
}
v126 = v225;
LABEL_232:
v127 = v189[1];
v225 = v126;
LABEL_233:
if ( v127 <= v126 )
goto LABEL_171;
if ( !v47 )
{
v154 = *v189;
if ( a2 <= 0.0 )
v155 = v154 + (float)((float)(v224 - v154) / 10.0);
else
v155 = v154 + (float)((float)(v224 - v154) / (float)(10.0 / a2));
v224 = v155;
goto LABEL_172;
}
v128 = v189[1];
v129 = a2 <= 0.0
? v128 + (float)((float)(v225 - v128) / 10.0)
: v128 + (float)((float)(v225 - v128) / (float)(10.0 / a2));
v225 = v129;
LABEL_83:
v59 = v208;
LABEL_84:
if ( v59 == -99999.0 )
goto LABEL_148;
if ( v47 )
{
if ( v227 > v208 )
v227 = v208;
v60 = *(float *)&v206[1];
}
else
{
if ( v226 > v207 )
v226 = v207;
v60 = *(float *)v206;
}
if ( v60 <= 0.0 && !v196[4046] )
{
LABEL_148:
if ( v47 )
goto LABEL_96;
LABEL_149:
v61 = v209;
goto LABEL_97;
}
if ( v47 )
{
if ( v227 > (float)(v208 - 60.0)
&& (v227 >= v192[1] || v227 >= v219)
&& v225 < 24.0
&& (v225 != 1.0 || v200[1] == 0.0) )
{
v225 = v225 + (float)((float)(1.0 - (float)((float)(v208 - v227) / 60.0)) * (float)(24.0 - v225));
}
LABEL_96:
v61 = v210;
goto LABEL_97;
}
if ( v226 <= (float)(v207 - 60.0) )
goto LABEL_149;
if ( v226 >= *v192 || v226 >= v218 )
{
if ( v224 >= 24.0 )
goto LABEL_149;
if ( v224 != 1.0 || *v200 == 0.0 )
{
v224 = v224 + (float)((float)(1.0 - (float)((float)(v207 - v226) / 60.0)) * (float)(24.0 - v224));
v61 = v209;
}
else
{
v61 = v209;
}
}
else
{
v61 = v209;
}
LABEL_97:
if ( v61 == -99999.0 )
goto LABEL_109;
if ( v47 )
{
if ( v227 < v210 )
v227 = v210;
v62 = *(float *)&v205[1];
}
else
{
if ( v226 < v209 )
v226 = v209;
v62 = *(float *)v205;
}
if ( v62 <= 0.0 && !v196[4046] )
break;
if ( v47 )
{
if ( v227 < (float)(v210 + 60.0)
&& (v227 <= v192[1] || v227 <= v219)
&& v225 < 24.0
&& (v225 != 1.0 || v200[1] == 0.0) )
{
v225 = v225 + (float)((float)(1.0 - (float)((float)(v227 - v210) / 60.0)) * (float)(24.0 - v225));
}
}
else if ( v226 < (float)(v209 + 60.0)
&& (v226 <= *v192 || v226 <= v218)
&& v224 < 24.0
&& (v224 != 1.0 || *v200 == 0.0) )
{
v224 = v224 + (float)((float)(1.0 - (float)((float)(v226 - v209) / 60.0)) * (float)(24.0 - v224));
goto LABEL_152;
}
LABEL_109:
if ( v48 == 2 )
goto LABEL_110;
LABEL_152:
++v47;
++v48;
}
if ( v48 != 2 )
goto LABEL_152;
LABEL_110:
v63 = (__int64)v46;
v64 = v45;
cocos2d::CCPoint::operator=(v192, &v226);
if ( v212 == 0.0 )
{
v99 = *((float *)v46 + 298);
if ( v99 > 0.0 )
{
v225 = 30.0;
*((float *)v46 + 298) = v99 - (float)(a2 / 60.0);
}
}
else
{
*((_DWORD *)v46 + 298) = 0;
v225 = 1.0;
}
if ( v211 != 0.0 )
v224 = 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v232, (const cocos2d::CCPoint *)&v207);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)&v209);
limitCamera(&v226, (float *)&v232, (float *)&v233);
v65 = v224;
v66 = v226;
if ( v224 > 1.0 )
{
if ( a2 > 0.0 )
v65 = v224 / a2;
v66 = v218 + (float)((float)(v226 - v218) / v65);
}
v67 = v225;
v218 = v66;
v68 = v227;
if ( v225 > 1.0 )
{
if ( a2 > 0.0 )
v67 = v225 / a2;
v68 = v219 + (float)((float)(v227 - v219) / v67);
}
v219 = v68;
cocos2d::CCPoint::operator=(v189, &v224);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v232, (const cocos2d::CCPoint *)&v207);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)&v209);
limitCamera(&v218, (float *)&v232, (float *)&v233);
LODWORD(v69) = *((_DWORD *)v46 + 251);
if ( *(float *)&v69 == 1.0 )
{
if ( *((float *)v46 + 3141) != -1.0 )
*((_BYTE *)v193 + 316) = 1;
v70 = *(cocos2d::CCDictionary **)v46;
*((float *)v46 + 3141) = -1.0;
v69 = ((long double (__fastcall *)(GJBaseGameLayer *, __int64))*((_QWORD *)v70 + 192))(v46, 1);
}
else if ( *(float *)&v69 == 0.0 )
{
if ( *((float *)v46 + 3141) != 1.0 )
*((_BYTE *)v193 + 316) = 1;
v98 = *(cocos2d::CCDictionary **)v46;
*((float *)v46 + 3141) = 1.0;
(*((void (__fastcall **)(GJBaseGameLayer *, _QWORD))v98 + 192))(v46, 0);
}
v197 = (char *)v46 + 1204;
cocos2d::CCPoint::operator-(&v228, (char *)v46 + 1204, &v218, v69);
v71 = (int *)((char *)v46 + 496);
v72 = (float *)((char *)v46 + 576);
v73 = 0;
v74 = 1;
while ( 2 )
{
if ( v73 )
{
if ( *((float *)v46 + 145) != 0.0 )
{
*((_DWORD *)v46 + 145) = 0;
v75 = *((float *)&v228 + 1);
*((_DWORD *)v46 + 125) = HIDWORD(v228);
v76 = *((float *)v46 + 147);
if ( v76 > 0.0 )
{
if ( *((float *)v46 + 153) != 0.0 )
{
GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)v46 + 424), 13);
v77 = *((_DWORD *)v46 + 125);
v78 = *((float *)v46 + 151);
v79 = (GJBaseGameLayer *)((char *)v46 + 424);
*((_DWORD *)v46 + 133) = 0;
v80 = 22;
v81 = (int)v78;
*((_DWORD *)v46 + 157) = v77;
v82 = *((float *)v46 + 149);
v83 = *((float *)v46 + 147);
goto LABEL_132;
}
v100 = (GJBaseGameLayer *)((char *)v46 + 424);
v101 = *((float *)v46 + 149);
v102 = 13;
v103 = (int)*((float *)v46 + 151);
LABEL_180:
GJGameState::tweenValue(v100, v75, 0.0, v102, v76, v103, v101, -1, -1);
goto LABEL_133;
}
GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)v46 + 424), 13);
*((_DWORD *)v46 + 125) = 0;
}
LABEL_134:
v84 = v200[1];
}
else
{
if ( *v72 != 0.0 )
{
*v72 = 0.0;
v75 = *(float *)&v228;
*v71 = v228;
v76 = *((float *)v46 + 146);
if ( v76 <= 0.0 )
{
GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)v46 + 424), 12);
*v71 = 0;
}
else
{
if ( *((float *)v46 + 152) == 0.0 )
{
v100 = (GJBaseGameLayer *)((char *)v46 + 424);
v102 = 12;
v103 = (int)*((float *)v46 + 150);
v101 = *((float *)v46 + 148);
goto LABEL_180;
}
GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)v46 + 424), 12);
v150 = *v71;
v80 = 21;
v151 = *((float *)v46 + 150);
v79 = (GJBaseGameLayer *)((char *)v46 + 424);
*((_DWORD *)v46 + 132) = 0;
v83 = *((float *)v46 + 146);
*((_DWORD *)v46 + 156) = v150;
v81 = (int)v151;
v82 = *((float *)v46 + 148);
LABEL_132:
GJGameState::tweenValue(v79, 0.0, 1.0, v80, v83, v81, v82, -1, -1);
LABEL_133:
if ( v73 )
goto LABEL_134;
}
}
v84 = *v200;
}
if ( v84 == 0.0 )
{
if ( v73 )
{
if ( *((float *)v46 + 153) != 0.0 )
{
if ( *((float *)v46 + 133) < 1.0 )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v231,
(float)((float)(*((float *)v46 + 128) * *((float *)v46 + 146)) / 3.0) + *((float *)v46 + 156),
(float)((float)(*((float *)v46 + 129) * *((float *)v46 + 147)) / 3.0) + *((float *)v46 + 157));
lerp(
(const cocos2d::CCPoint *)&unk_155D2C8,
(const cocos2d::CCPoint *)&v231,
*((float *)v46 + 155),
(float *)&v232);
cubicBezier(
(GJBaseGameLayer *)((char *)v46 + 624),
(const cocos2d::CCPoint *)&v231,
(const cocos2d::CCPoint *)&v232,
(const cocos2d::CCPoint *)&unk_155D2C8,
*((float *)v46 + 133),
(float *)&v233);
*((_DWORD *)v46 + 125) = HIDWORD(v233);
}
else
{
*((_DWORD *)v46 + 153) = 0;
*((_DWORD *)v46 + 125) = 0;
}
}
break;
}
if ( *((float *)v46 + 152) == 0.0 )
break;
if ( *((float *)v46 + 132) < 1.0 )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v231,
(float)((float)(*((float *)v46 + 128) * *((float *)v46 + 146)) / 3.0) + *((float *)v46 + 156),
(float)((float)(*((float *)v46 + 129) * *((float *)v46 + 147)) / 3.0) + *((float *)v46 + 157));
lerp(
(const cocos2d::CCPoint *)&unk_155D2C8,
(const cocos2d::CCPoint *)&v231,
*((float *)v46 + 154),
(float *)&v232);
cubicBezier(
(GJBaseGameLayer *)((char *)v46 + 624),
(const cocos2d::CCPoint *)&v231,
(const cocos2d::CCPoint *)&v232,
(const cocos2d::CCPoint *)&unk_155D2C8,
*((float *)v46 + 132),
(float *)&v233);
*v71 = v233;
break;
}
*((_DWORD *)v46 + 152) = 0;
*v71 = 0;
LABEL_156:
++v73;
++v74;
continue;
}
break;
}
if ( v74 != 2 )
goto LABEL_156;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v229, (const cocos2d::CCPoint *)&v218);
cocos2d::CCPoint::operator+(&v233, &v218);
cocos2d::CCPoint::operator=(&v218, &v233);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v232, (const cocos2d::CCPoint *)&v207);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, (const cocos2d::CCPoint *)&v209);
limitCamera(&v218, (float *)&v232, (float *)&v233);
cocos2d::CCPoint::operator-(&v233, &v218, &v229, v85);
cocos2d::CCPoint::operator=(v186, &v233);
cocos2d::CCPoint::operator=(v175, &v218);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, v175);
if ( *((_BYTE *)v46 + 1221) )
GJBaseGameLayer::applyShake((__int64)v46, &v231);
v86 = *((float *)v46 + 3141);
if ( v86 == -1.0 )
v231 = (float)-v231 - v8;
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v46 + 490) + 128LL))(
*((_QWORD *)v46 + 490),
v86 * *((float *)v46 + 106));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v46 + 490) + 144LL))(
*((_QWORD *)v46 + 490),
*((float *)v46 + 106));
v87 = *((_QWORD *)v46 + 490);
v88 = *(void (__fastcall **)(__int64, __int64 *, long double))(*(_QWORD *)v87 + 184LL);
cocos2d::CCPoint::operator-(&v232, &v231);
*(__n128 *)&v89 = cocos2d::CCPoint::operator*(&v232, *(float *)(v63 + 424));
v88(v87, &v233, v89);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v233, v175);
GJBaseGameLayer::updateCameraBGArt(v63, (__int64)&v233, *(float *)(v63 + 424));
v90 = *(_DWORD *)(v63 + 424);
*(_BYTE *)(v63 + 1212) = v203;
*(_BYTE *)(v63 + 1213) = v201;
*(_DWORD *)(v63 + 752) = v90;
cocos2d::CCPoint::operator-(&v232, v175, v197, v91);
cocos2d::CCPoint::operator*(&v232, 240.0);
cocos2d::CCPoint::operator=(v63 + 464, &v233);
cocos2d::CCPoint::operator=(v197, v175);
*(float *)(v63 + 768) = (float)(v219 + (float)(v9 * 0.5)) - *(float *)(v63 + 436);
cocos2d::CCPoint::operator=(v185, v64);
cocos2d::CCPoint::operator=(v188, v194);
*(_DWORD *)(v63 + 692) = 0;
*(_DWORD *)(v63 + 696) = 0;
GJBaseGameLayer::updateExtraGameLayers((GJBaseGameLayer *)v63);
return _stack_chk_guard;
}