// // GJBaseGameLayer::update from 0x9ed4f0 to 0x9ee618 (4392 bytes) // // 4 xrefs: // > @ 0x8c878 // > @ 0x1428468 // > @ 0x14359c8 // > @ 0x1475298 // // 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:59:05 +0000 // __int64 __fastcall GJBaseGameLayer::update(GJBaseGameLayer *this, float a2) { char *v3; // x22 __int64 v5; // d0 double v6; // d11 double v7; // d11 GJEffectManager *v8; // x0 float v9; // s8 double v10; // d1 cocos2d::JniHelper *updated; // x0 __int64 v12; // d0 double ModifiedDelta; // d0 double v15; // d8 _BYTE *v16; // x19 _BYTE *v17; // x19 float v18; // s1 double v19; // d0 float v20; // s12 float v21; // s10 double v22; // d0 float v23; // s9 float v24; // s7 float v25; // s5 float v26; // s8 float v27; // s6 float v28; // s3 float v29; // s4 float v30; // s10 float v31; // s2 float v32; // s0 double v33; // d10 double v34; // d12 double v35; // d9 int v36; // w20 double v37; // d14 _BYTE *v38; // x21 float v39; // s10 bool v40; // w24 unsigned __int8 v41; // w23 double v42; // d0 double v43; // d1 int v44; // w1 int v45; // w1 __int64 v46; // x2 float v47; // s0 float v48; // s0 float v49; // s0 int v50; // w26 float v51; // s15 __int64 LastPosition; // x0 _DWORD *v53; // x1 long double v54; // q0 float v55; // s15 float v56; // s11 float *v57; // x0 float v58; // s1 float v59; // s1 __int64 v60; // x27 __int64 v61; // x27 float v62; // s0 float v63; // s0 unsigned __int8 v64; // w23 float v65; // s0 float v66; // s11 PlayerObject *v67; // x1 float v68; // s0 float v69; // s0 float *v70; // x23 float *v71; // x23 __int64 v72; // x23 const cocos2d::CCPoint *v73; // x0 __int64 v74; // x1 _DWORD *v75; // x2 __n128 v76; // q0 float MaxPortalY; // s0 __int64 v78; // x1 float v79; // s0 _QWORD **v80; // x26 float v81; // s0 float v82; // s1 int v83; // w0 float v84; // s0 double v85; // d0 float v86; // s0 float v87; // s0 __int64 v88; // x23 const cocos2d::CCPoint *v89; // x0 float v90; // s0 PlayerObject *v91; // x1 float v92; // s0 float v93; // s0 _BYTE *v94; // x21 int v95; // w21 float v96; // s0 float v97; // s0 float v98; // s8 __int64 isFlipping; // x0 float v100; // s0 _DWORD *v101; // x19 FMODAudioEngine *v102; // x0 unsigned __int64 v103; // x2 __int64 v104; // x4 unsigned __int64 v105; // x6 unsigned __int64 v106; // x3 __int64 v107; // x7 _DWORD *v108; // x21 unsigned __int64 v109; // x3 __int64 v110; // x8 _QWORD *i; // x1 unsigned __int64 v112; // x0 unsigned __int64 v113; // x0 unsigned __int64 v114; // x0 __int64 v115; // x0 __int64 v116; // x0 unsigned __int64 v117; // x5 char *v118; // x0 char *v119; // x1 void *v120; // x0 const cocos2d::CCPoint *v121; // x0 long double v122; // q0 cocos2d::CCDirector *v123; // x0 float v124; // s8 cocos2d::CCDirector *v125; // x0 float v126; // s9 float v127; // s8 __int64 v128; // x25 long double v129; // q0 __int64 v130; // x25 void (__fastcall *v131)(_BYTE *, __int64 *); // x21 void (__fastcall *v132)(_BYTE *, __int64 *); // x21 cocos2d::CCDirector *v133; // x0 __int64 v134; // x21 const cocos2d::CCPoint *v135; // x0 int v136; // [xsp+A4h] [xbp+A4h] __int64 v137; // [xsp+A8h] [xbp+A8h] int v138; // [xsp+B0h] [xbp+B0h] float v139; // [xsp+B4h] [xbp+B4h] double v140; // [xsp+B8h] [xbp+B8h] double v141; // [xsp+C0h] [xbp+C0h] double v142; // [xsp+C8h] [xbp+C8h] int v143; // [xsp+D0h] [xbp+D0h] float v144; // [xsp+D4h] [xbp+D4h] double v145; // [xsp+D8h] [xbp+D8h] double v146; // [xsp+E0h] [xbp+E0h] int v147; // [xsp+F0h] [xbp+F0h] char v148; // [xsp+F4h] [xbp+F4h] GJGameState *v149; // [xsp+F8h] [xbp+F8h] char v150[8]; // [xsp+108h] [xbp+108h] BYREF char v151[8]; // [xsp+110h] [xbp+110h] BYREF char v152[8]; // [xsp+118h] [xbp+118h] BYREF __int64 v153; // [xsp+120h] [xbp+120h] BYREF v3 = (char *)this + 12288; cocos2d::JniHelper::getPlatformTimestamp(_stack_chk_guard); v137 = v5; GJBaseGameLayer::tryResumeAudio(this); if ( !v3[376] || ((*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1472LL))(this, *((float *)this + 204)), !v3[376]) ) { v6 = *((float *)this + 204); v145 = a2; *((_QWORD *)this + 1582) = 0; v7 = a2 / v6; LABEL_3: v8 = *((GJEffectManager **)this + 269); v9 = v145; v10 = *((double *)this + 115) + v145; *((double *)this + 117) = *((double *)this + 117) + v7; *((double *)this + 115) = v10; GJEffectManager::updateEffects(v8, v9); PlayerObject::updateEffects(*((HardStreak ***)this + 407), v9); PlayerObject::updateEffects(*((HardStreak ***)this + 408), v9); GJBaseGameLayer::updateGradientLayers(this); GJBaseGameLayer::updateShaderLayer(this, v9); (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1152LL))(this, v9); GJBaseGameLayer::updateGuideArt((__int64)this); updated = (cocos2d::JniHelper *)GJBaseGameLayer::updateAudioVisualizer((__int64)this); cocos2d::JniHelper::getPlatformTimestamp(updated); *((_QWORD *)this + 1742) = v12; return _stack_chk_guard; } ModifiedDelta = GJBaseGameLayer::getModifiedDelta(this, a2); v148 = v3[376]; v145 = ModifiedDelta; v7 = ModifiedDelta / *((float *)this + 204); if ( !v148 || *((int *)this + 3185) > 0 ) goto LABEL_3; if ( ModifiedDelta <= 0.0 ) return _stack_chk_guard; *(_BYTE *)(*((_QWORD *)this + 407) + 2364LL) = 0; v15 = ModifiedDelta * 60.0; *(_BYTE *)(*((_QWORD *)this + 408) + 2364LL) = 0; v16 = *((_BYTE **)this + 407); if ( !v16[2530] ) { v132 = *(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, (const cocos2d::CCPoint *)(v16 + 2608)); v132(v16, &v153); } if ( *((_BYTE *)this + 1010) ) { v17 = *((_BYTE **)this + 408); if ( !v17[2530] ) { v131 = *(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, (const cocos2d::CCPoint *)(v17 + 2608)); v131(v17, &v153); } } v18 = *((float *)this + 204); if ( v18 <= 1.0 ) v19 = v18; else v19 = 1.0; v20 = v15 / v19 * 4.0; v21 = roundf(v20); if ( v21 <= 1.0 ) { v143 = 1; v22 = 1.0; } else { v22 = (double)(int)v21; v143 = (int)v21; } v144 = *((float *)this + 204); *((_BYTE *)this + 12216) = 0; v146 = v145 / v22; v141 = v15 / v22; v142 = v7 / v22; v140 = v145 / v22 * 60.0; if ( !v3[330] && v3[377] ) { v133 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)(unsigned __int8)v3[377]); cocos2d::CCDirector::getWinSize(&v153, v133); v144 = *((float *)this + 204); *((float *)this + 287) = 15.0 - (float)(75.0 - (float)(*(float *)&v153 * 0.5)); } v3[377] = 0; *((_DWORD *)this + 3439) = (int)(float)((float)((float)*((int *)this + 3427) * 0.1) + (float)((float)*((int *)this + 3439) * 0.9)); v23 = (float)*((int *)v3 + 369); v24 = (float)*((int *)v3 + 371); v25 = (float)*((int *)v3 + 373); v26 = (float)*((int *)v3 + 370); v27 = (float)*((int *)v3 + 372); v28 = (float)*((int *)v3 + 375); v29 = (float)*((int *)v3 + 374); v30 = (float)*((int *)v3 + 376); *((_DWORD *)v3 + 368) = (int)(float)((float)((float)*((int *)v3 + 356) * 0.1) + (float)((float)*((int *)v3 + 368) * 0.9)); *((_DWORD *)v3 + 369) = (int)(float)((float)((float)*((int *)v3 + 357) * 0.1) + (float)(v23 * 0.9)); *((_DWORD *)v3 + 370) = (int)(float)((float)((float)*((int *)v3 + 358) * 0.1) + (float)(v26 * 0.9)); *((_DWORD *)v3 + 371) = (int)(float)((float)((float)*((int *)v3 + 359) * 0.1) + (float)(v24 * 0.9)); *((_DWORD *)v3 + 372) = (int)(float)((float)((float)*((int *)v3 + 360) * 0.1) + (float)(v27 * 0.9)); *((_DWORD *)v3 + 373) = (int)(float)((float)((float)*((int *)v3 + 361) * 0.1) + (float)(v25 * 0.9)); *((_DWORD *)v3 + 374) = (int)(float)((float)((float)*((int *)v3 + 362) * 0.1) + (float)(v29 * 0.9)); *((_DWORD *)v3 + 375) = (int)(float)((float)((float)*((int *)v3 + 363) * 0.1) + (float)(v28 * 0.9)); *((_DWORD *)v3 + 376) = (int)(float)((float)((float)*((int *)v3 + 364) * 0.1) + (float)(v30 * 0.9)); v31 = (float)*((int *)v3 + 378); *((_DWORD *)v3 + 377) = (int)(float)((float)((float)*((int *)v3 + 365) * 0.1) + (float)((float)*((int *)v3 + 377) * 0.9)); *((_DWORD *)v3 + 378) = (int)(float)((float)((float)*((int *)v3 + 366) * 0.1) + (float)(v31 * 0.9)); if ( v143 <= 0 ) { v138 = 0; goto LABEL_101; } v149 = (GJBaseGameLayer *)((char *)this + 424); v32 = v142; v136 = v143 - 1; v3[1656] = 0; v147 = 0; v139 = v32; v138 = 0; if ( (unsigned __int8)GJBaseGameLayer::shouldUseSubstepForButton(this, v32) ) { LABEL_88: v3[1656] = 1; v36 = 0; v37 = v141 * 0.5; v35 = v146 * 0.5; v34 = v142 * 0.5; v33 = v140 * 0.5; } else { LABEL_23: v33 = v140; v34 = v142; v35 = v146; v36 = (unsigned __int8)v3[1656] ^ 1; v37 = v141; } v38 = v3 + 362; v39 = v33; while ( 1 ) { *((_DWORD *)this + 3273) = 0; v40 = v148; v41 = 0; if ( v36 == 1 ) { if ( v136 == v147 ) v40 = 0; v41 = v136 == v147; } *((_DWORD *)v3 + 355) = 0; *((_DWORD *)v3 + 356) = 0; *((_DWORD *)v3 + 357) = 0; *((_DWORD *)v3 + 358) = 0; *((_DWORD *)v3 + 359) = 0; *((_DWORD *)v3 + 360) = 0; *((_DWORD *)v3 + 361) = 0; *((_DWORD *)v3 + 362) = 0; *((_DWORD *)v3 + 363) = 0; *((_DWORD *)v3 + 364) = 0; *((_DWORD *)v3 + 365) = 0; *((_DWORD *)v3 + 366) = 0; v42 = v35 + *((double *)this + 115); v43 = *((double *)this + 117) + v34; *((double *)this + 115) = v42; *((double *)this + 117) = v43; if ( !v3[1048] && !*v38 ) { v44 = *((_DWORD *)this + 3332); *((double *)this + 1665) = *((double *)this + 1665) + v34; if ( v3[1656] ) v45 = v44 + 1; else v45 = v44 + 2; v46 = *(_QWORD *)this; *((_DWORD *)this + 3332) = v45; v47 = v34; (*(void (__fastcall **)(GJBaseGameLayer *, float))(v46 + 1184))(this, v47); v42 = *((double *)this + 115); } *(double *)(*((_QWORD *)this + 407) + 2624LL) = v42; *(_QWORD *)(*((_QWORD *)this + 408) + 2624LL) = *((_QWORD *)this + 115); if ( v36 ) { v80 = *((_QWORD ***)this + 1515); if ( v80 ) { std::__tree,std::pair>,std::__map_value_compare,std::__value_type,std::pair>,std::less>,true>,std::allocator,std::pair>>>::destroy( (__int64)this + 12112, *v80); std::__tree,std::pair>,std::__map_value_compare,std::__value_type,std::pair>,std::less>,true>,std::allocator,std::pair>>>::destroy( (__int64)this + 12112, v80[1]); operator delete(v80); } *((_QWORD *)this + 1516) = 0; *((_QWORD *)this + 1514) = (char *)this + 12120; *((_QWORD *)this + 1515) = 0; std::__tree>::clear((_QWORD *)this + 510); v81 = v146; GJEffectManager::updateSpawnTriggers(*((GJEffectManager **)this + 269), v81); } v48 = *((float *)this + 290); if ( v48 != 0.0 ) GJBaseGameLayer::updateTimeMod(this, v48, 1, *((_BYTE *)this + 1164)); (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1472LL))(this, *((float *)this + 204)); v49 = v34; GJBaseGameLayer::processCommands(this, v49, v3[1656], v41); PlayerObject::resetTouchedRings(*((cocos2d::CCArray ***)this + 407), 0); if ( *((_BYTE *)this + 1010) ) PlayerObject::resetTouchedRings(*((cocos2d::CCArray ***)this + 408), 0); PlayerObject::resetCollisionLog(*((cocos2d::CCDictionary ***)this + 407), 0); if ( *((_BYTE *)this + 1010) ) PlayerObject::resetCollisionLog(*((cocos2d::CCDictionary ***)this + 408), 0); GJEffectManager::preCollisionCheck(*((GJEffectManager **)this + 269)); if ( v36 ) std::__tree>::clear((_QWORD *)this + 510); v50 = *((unsigned __int8 *)this + 1010); v51 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407)) + 4); LastPosition = GameObject::getLastPosition(*((GameObject **)this + 407)); v53 = *((_DWORD **)this + 407); LODWORD(v54) = v53[661]; v55 = v51 - *(float *)(LastPosition + 4); if ( !*v38 ) { *(double *)&v54 = vabds_f32(v55, *(float *)&v54); if ( *(double *)&v54 > v37 * 16.0 ) v55 = 0.0; } v56 = *(float *)(*(__int64 (__fastcall **)(_QWORD, long double))(*(_QWORD *)v53 + 192LL))( *((_QWORD *)this + 407), v54); v57 = (float *)GameObject::getLastPosition(*((GameObject **)this + 407)); v58 = 0.0; if ( !*v38 ) v58 = v56 - *v57; *(float *)(*((_QWORD *)this + 269) + 1624LL) = v58; v59 = 0.0; if ( !*v38 ) v59 = v55; *(float *)(*((_QWORD *)this + 269) + 1628LL) = v59; *(float *)(*((_QWORD *)this + 269) + 1632LL) = -*((float *)this + 287); *(float *)(*((_QWORD *)this + 269) + 1636LL) = -*((float *)this + 288); v60 = *((_QWORD *)this + 269); *(float *)(v60 + 1640) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 368LL))(*((_QWORD *)this + 407)) - *(float *)(*((_QWORD *)this + 407) + 2496LL); v61 = *((_QWORD *)this + 269); *(float *)(v61 + 1644) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 408) + 368LL))(*((_QWORD *)this + 408)) - *(float *)(*((_QWORD *)this + 408) + 2496LL); if ( (unsigned __int8)*v38 < (v36 & 1u) ) { v86 = v146; GJEffectManager::updateTimers(*((GJEffectManager **)this + 269), v86, *((float *)this + 204)); } v62 = v35; GJEffectManager::prepareMoveActions(*((GJEffectManager **)this + 269), v62, v40); v63 = v35; GJBaseGameLayer::processMoveActionsStep(this, v63, v41); GJEffectManager::postMoveActions(*((GJEffectManager **)this + 269)); (*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1176LL))(this); if ( v36 ) { GJBaseGameLayer::updateCollisionBlocks((cocos2d::CCArray **)this); if ( *v38 ) goto LABEL_76; } else if ( *v38 ) { goto LABEL_69; } v64 = 1; if ( !*((_BYTE *)this + 12236) ) v64 = *((_BYTE *)this + 1978); v65 = v35; *(_QWORD *)(*((_QWORD *)this + 408) + 2440LL) = *(_QWORD *)(*((_QWORD *)this + 407) + 2440LL); *(_QWORD *)(*((_QWORD *)this + 408) + 2448LL) = *(_QWORD *)(*((_QWORD *)this + 407) + 2448LL); PlayerObject::updateInternalActions(*((GJActionManager ***)this + 407), v65); if ( *((_BYTE *)this + 1010) ) { v87 = v35; PlayerObject::updateInternalActions(*((GJActionManager ***)this + 408), v87); } v66 = v37; (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 407) + 40LL))(*((_QWORD *)this + 407), v66); v67 = *((PlayerObject **)this + 407); if ( !*((_BYTE *)this + 1979) || !*((_BYTE *)v67 + 2530) ) { v68 = v37; if ( (unsigned int)GJBaseGameLayer::checkCollisions(this, v67, v68, v64) == 1 && *((_BYTE *)this + 12236) && !*((_BYTE *)this + 1978) ) { (*(void (__fastcall **)(GJBaseGameLayer *, _QWORD))(*(_QWORD *)this + 1200LL))(this, *((_QWORD *)this + 407)); } v67 = *((PlayerObject **)this + 407); } v69 = v35; PlayerObject::updateSpecial(v67, v69); if ( v50 && *((_BYTE *)this + 1010) ) { v90 = v37; (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 408) + 40LL))(*((_QWORD *)this + 408), v90); v91 = *((PlayerObject **)this + 408); if ( !*((_BYTE *)this + 1979) || !*((_BYTE *)v91 + 2530) ) { v92 = v37; if ( (unsigned int)GJBaseGameLayer::checkCollisions(this, v91, v92, v64) == 1 && *((_BYTE *)this + 12236) && !*((_BYTE *)this + 1978) ) { (*(void (__fastcall **)(GJBaseGameLayer *, _QWORD))(*(_QWORD *)this + 1200LL))(this, *((_QWORD *)this + 408)); } v91 = *((PlayerObject **)this + 408); } v93 = v35; PlayerObject::updateSpecial(v91, v93); } *((double *)this + 116) = *((double *)this + 116) + v35 / *((float *)this + 204); if ( v36 ) GJBaseGameLayer::checkSpawnObjects(this); v70 = *((float **)this + 407); v70[624] = (*(float (__fastcall **)(float *))(*(_QWORD *)v70 + 368LL))(v70); v71 = *((float **)this + 408); v71[624] = (*(float (__fastcall **)(float *))(*(_QWORD *)v71 + 368LL))(v71); PlayerObject::updateRotation(*((_QWORD *)this + 407), v39); if ( *((_BYTE *)this + 1010) ) PlayerObject::updateRotation(*((_QWORD *)this + 408), v39); v72 = *((_QWORD *)this + 407); v73 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 192LL))(v72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v73); v76 = cocos2d::CCPoint::operator=(v72 + 2480, &v153); if ( *((_BYTE *)this + 1010) ) { v88 = *((_QWORD *)this + 408); v89 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)v88 + 192LL))( v88, *(long double *)&v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v89); v76 = cocos2d::CCPoint::operator=(v88 + 2480, &v153); } if ( !v3[1048] && (*(unsigned __int8 (__fastcall **)(GJBaseGameLayer *, long double))(*(_QWORD *)this + 1328LL))( this, *(long double *)&v76) ) { GJBaseGameLayer::recordHitboxTrail(this); } GJBaseGameLayer::updateSavePositionObjects(this, v74, v75); MaxPortalY = GJBaseGameLayer::getMaxPortalY(this); v78 = *(_QWORD *)this; *((float *)this + 431) = MaxPortalY; (*(void (__fastcall **)(GJBaseGameLayer *))(v78 + 1160))(this); *((double *)this + 1742) = *((double *)this + 1742) + v35; if ( v36 ) { LABEL_76: GJEffectManager::postCollisionCheck(*((GJEffectManager **)this + 269)); GJBaseGameLayer::checkRepellPlayer(this); GJBaseGameLayer::processStateObjects(this); GJGameState::processStateTriggers(v149); } LABEL_69: v79 = v35; GJGameState::updateTweenActions((__int64)v149, v79); GJBaseGameLayer::updateCamera(this, v39); (*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1560LL))(this); if ( v3[256] ) break; (*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1600LL))(this); if ( v36 == 1 ) goto LABEL_81; LABEL_71: v36 = 1; } PlayerObject::updateCheckpointTest(*((CheckpointObject ***)this + 407)); (*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1600LL))(this); if ( v36 != 1 ) goto LABEL_71; LABEL_81: if ( *((float *)this + 205) > 0.0 ) { (*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1464LL))(this); (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1472LL))(this, *((float *)this + 204)); } v82 = *((float *)this + 204); if ( v82 != v144 ) { v83 = v143 - v147 - 1; if ( v83 > 0 ) { v147 = v143; v138 = 1; v84 = (double)v83 * v146; v85 = v84; *((double *)this + 1582) = *((double *)this + 1582) + v85; v145 = v145 - v85; } } if ( v143 > ++v147 ) { v3[1656] = 0; v144 = v82; if ( !(unsigned __int8)GJBaseGameLayer::shouldUseSubstepForButton(this, v139) ) goto LABEL_23; goto LABEL_88; } LABEL_101: if ( *((_BYTE *)this + 12238) ) GJBaseGameLayer::updateSpecialLabels(this); GJBaseGameLayer::updateTimerLabels(this); GJBaseGameLayer::updateQueuedLabels((__int64)this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v151); v94 = *((_BYTE **)this + 407); if ( v94[2530] ) goto LABEL_104; v121 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v94 + 192LL))(*((_QWORD *)this + 407)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v121); *(__n128 *)&v122 = cocos2d::CCPoint::operator=(v94 + 2608, &v153); v123 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1010); if ( *((_BYTE *)this + 1010) ) { v134 = *((_QWORD *)this + 408); v135 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)v134 + 192LL))( v134, v122); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v135); cocos2d::CCPoint::operator=(v134 + 2608, &v153); } v124 = *((float *)this + 251); if ( v124 == 0.0 || v124 == 1.0 ) { LABEL_104: v95 = 0; } else { if ( *((float *)this + 3141) == -1.0 ) v124 = 1.0 - v124; v125 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v123); v95 = 1; cocos2d::CCDirector::getWinSize(&v153, v125); v126 = *(float *)&v153; v127 = (float)((float)(v126 / *((float *)this + 106)) - (float)((float)(*(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407)) - *((float *)this + 248)) * 2.0)) * v124; v128 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v152, v127, 0.0); cocos2d::CCPoint::operator+(&v153, v128); *(__n128 *)&v129 = cocos2d::CCPoint::operator=(v150, &v153); if ( *((_BYTE *)this + 1010) ) { v130 = (*(__int64 (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 408) + 192LL))( *((_QWORD *)this + 408), v129); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v152, v127, 0.0); cocos2d::CCPoint::operator+(&v153, v130); cocos2d::CCPoint::operator=(v151, &v153); } } v96 = *((float *)this + 306); *((_BYTE *)this + 1221) = v96 > 0.0; if ( v96 > 0.0 ) { v97 = v96 - v145; *((float *)this + 306) = v97; } v98 = v145; GJEffectManager::updateEffects(*((GJEffectManager **)this + 269), v98); PlayerObject::updateEffects(*((HardStreak ***)this + 407), v98); PlayerObject::updateEffects(*((HardStreak ***)this + 408), v98); GJBaseGameLayer::updateGradientLayers(this); GJBaseGameLayer::updateShaderLayer(this, v98); if ( v95 ) { (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 407) + 184LL))(*((_QWORD *)this + 407), v150); if ( *((_BYTE *)this + 1010) ) (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 408) + 184LL))(*((_QWORD *)this + 408), v151); } (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1152LL))(this, v98); GJBaseGameLayer::updateGuideArt((__int64)this); GJBaseGameLayer::updateProximityVolumeEffects(this); GJBaseGameLayer::updateAudioVisualizer((__int64)this); isFlipping = (unsigned __int8)GJBaseGameLayer::isFlipping(this); if ( !(_BYTE)isFlipping ) { isFlipping = *((unsigned __int8 *)this + 1009); if ( *((_BYTE *)this + 1009) ) isFlipping = GJBaseGameLayer::flipFinished((PlayerObject **)this); } v100 = *((float *)this + 3411) + v145; if ( v100 < 1.0 ) { *((float *)this + 3411) = v100; } else { v101 = *((_DWORD **)this + 231); *((_DWORD *)this + 3411) = 0; if ( v101 ) { do { while ( 1 ) { v102 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isFlipping); isFlipping = FMODAudioEngine::isMusicPlaying(v102, v101[4]); if ( !(_BYTE)isFlipping ) break; v101 = *(_DWORD **)v101; if ( !v101 ) goto LABEL_115; } v103 = *((_QWORD *)this + 230); v104 = *(_QWORD *)v101; v105 = v103 - 1; v106 = *((_QWORD *)v101 + 1); v107 = (v103 - 1) & v103; v108 = *(_DWORD **)v101; if ( v107 ) v109 = v106 % v103; else v109 = v105 & v106; v110 = *((_QWORD *)this + 229); for ( i = *(_QWORD **)(v110 + 8 * v109); v101 != (_DWORD *)*i; i = (_QWORD *)*i ) ; if ( i == (_QWORD *)((char *)this + 1848) || ((v112 = i[1], v107) ? (v113 = v112 % v103) : (v113 = v105 & v112), v109 != v113) ) { if ( v104 ) { v114 = *(_QWORD *)(v104 + 8); if ( v107 ) { v117 = v114 / v103; if ( v109 == v114 % v103 ) goto LABEL_133; } else { v115 = v105 & v114; if ( v109 == v115 ) goto LABEL_134; } } *(_QWORD *)(v110 + 8 * v109) = 0; v104 = *(_QWORD *)v101; } v116 = v104; if ( v104 ) { v114 = *(_QWORD *)(v104 + 8); if ( v107 ) { v117 = v114 / v103; LABEL_133: v115 = v114 - v117 * v103; } else { v115 = v105 & v114; } LABEL_134: if ( v109 == v115 ) { v116 = v104; } else { *(_QWORD *)(*((_QWORD *)this + 229) + 8 * v115) = i; v116 = *(_QWORD *)v101; } } *i = v116; *(_QWORD *)v101 = 0; --*((_QWORD *)this + 232); v118 = *((char **)v101 + 3); if ( v118 ) { v119 = *((char **)v101 + 4); if ( v118 != v119 ) *((_QWORD *)v101 + 4) = &v119[16 * ~((unsigned __int64)(v119 - 16 - v118) >> 4)]; operator delete(v118); } v120 = v101; v101 = v108; operator delete(v120); } while ( v108 ); } } LABEL_115: v3[137] = 0; *((_QWORD *)this + 1742) = v137; v3[1656] = 0; if ( v138 ) (*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 40LL))(this, 0.0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source