// // LevelEditorLayer::updateEditor from 0x7a8cb0 to 0x7a90d0 (1056 bytes) // // 3 xrefs: // > @ 0xc76a8 // > LevelEditorLayer::init @ 0x7af3a0 // > @ 0x1545d58 // // 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:53:44 +0000 // __int64 __fastcall LevelEditorLayer::updateEditor(LevelEditorLayer *this, float a2) { char *v4; // x21 cocos2d::CCDirector *v5; // x0 __int64 v6; // x0 int v7; // w2 int v8; // w3 int v9; // w0 _BOOL4 v10; // w0 __int64 v11; // x1 double v13; // d9 __int64 v14; // x22 void (__fastcall *v15)(__int64); // x23 __int64 v16; // x22 void (__fastcall *v17)(__int64); // x23 float v18; // s0 __int64 v19; // x0 DeathMarkerLayer *v20; // x0 DeathMarkerLayer *v21; // x0 __int64 v22; // x0 long double v23; // q0 long double v24; // q0 long double v25; // q0 __int64 v26; // x0 double v27; // d0 __int64 v28; // [xsp+68h] [xbp+68h] BYREF __int64 v29; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCDirector *v30[2]; // [xsp+78h] [xbp+78h] BYREF if ( *((_QWORD *)this + 1781) ) { v4 = (char *)this + 12288; v5 = (cocos2d::CCDirector *)(unsigned int)(*((_DWORD *)this + 3684) + 1); *((_DWORD *)this + 3684) = (_DWORD)v5; v6 = cocos2d::CCDirector::sharedDirector(v5); v7 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6) + 124); v8 = *((_DWORD *)this + 3674); v9 = *((_DWORD *)this + 493); if ( v8 != -1 && v9 != 1 ) *((_DWORD *)this + 3685) = *((_DWORD *)this + 3685) - v8 + v7; *((_DWORD *)this + 3674) = v7; } else { v9 = *((_DWORD *)this + 493); v4 = (char *)this + 12288; } if ( v4[2650] ) { v4[2650] = 0; ++*((_DWORD *)this + 3735); } v10 = v9 == 1; v4[376] = v10; if ( v10 ) { v11 = *(_QWORD *)this; *((float *)this + 3683) = *((float *)this + 3683) + a2; (*(void (__fastcall **)(LevelEditorLayer *, float))(v11 + 40))(this, a2); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 1786) + 40LL))(*((_QWORD *)this + 1786), a2); LABEL_10: LevelEditorLayer::updateGridLayer(this); return _stack_chk_guard; } GJBaseGameLayer::tryResumeAudio(this); if ( v4[2648] ) { GJBaseGameLayer::getModifiedDelta(this, a2); a2 = v27; } else { *((_QWORD *)this + 1582) = 0; } if ( a2 > 0.0 ) { *((double *)this + 115) = *((double *)this + 115) + a2; clock_gettime(0, (struct timespec *)v30); v13 = (double)(__int64)v30[0] + (double)(__int64)v30[1] / 1000000000.0; *(float *)&v13 = v13 - *(double *)(cocos2d::CCDirector::sharedDirector(v30[0]) + 152); if ( *(float *)&v13 < 10.0 ) *((double *)this + 1836) = *((double *)this + 1836) + a2; GJBaseGameLayer::updateBGArtSpeed(this, 0.1, 0.1); LevelEditorLayer::updateGameObjects(this); (*(void (__fastcall **)(LevelEditorLayer *, float))(*(_QWORD *)this + 1192LL))(this, a2); LevelEditorLayer::updateGridLayerParent(this); v14 = *((_QWORD *)this + 488); v15 = *(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 344LL); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v14 + 496LL))(v14) <= 1 ) (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 491) + 496LL))(*((_QWORD *)this + 491)); v15(v14); v16 = *((_QWORD *)this + 489); v17 = *(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 344LL); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v16 + 496LL))(v16) <= 1 ) (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 492) + 496LL))(*((_QWORD *)this + 492)); v17(v16); GJBaseGameLayer::updateGradientLayers(this); GJBaseGameLayer::updateExtraGameLayers(this); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 496) + 344LL))(*((_QWORD *)this + 496), 0); v18 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); v19 = *((_QWORD *)this + 243); *((float *)this + 106) = v18; if ( v19 || *((_QWORD *)this + 244) ) { GJBaseGameLayer::syncDeathMarkerFlip(this); sub_786D34(*((_QWORD *)this + 490), (cocos2d::CCRect *)v30); v20 = *((DeathMarkerLayer **)this + 243); if ( v20 ) DeathMarkerLayer::updateVisibility(v20, (const cocos2d::CCRect *)v30); v21 = *((DeathMarkerLayer **)this + 244); if ( v21 ) DeathMarkerLayer::updateVisibility(v21, (const cocos2d::CCRect *)v30); } v22 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490)); cocos2d::CCPoint::operator-(&v28, v22, &prevGamelayerPos, v23); cocos2d::CCPoint::operator*(&v28, 1.0 / *((float *)this + 106)); cocos2d::CCPoint::operator-(&v29, (char *)this + 1204, v30, v24); if ( *((float *)this + 106) != *((float *)this + 188) ) cocos2d::CCPoint::operator=(&v29, (char *)this + 1204); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const cocos2d::CCPoint *)&v29); GJBaseGameLayer::updateCameraBGArt(this, v30, *((float *)this + 106)); *((_DWORD *)this + 188) = *((_DWORD *)this + 106); *(__n128 *)&v25 = cocos2d::CCPoint::operator=((char *)this + 1204, &v29); v26 = (*(__int64 (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))( *((_QWORD *)this + 490), v25); cocos2d::CCPoint::operator=(&prevGamelayerPos, v26); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 1786) + 40LL))(*((_QWORD *)this + 1786), a2); LevelEditorLayer::checkAutoSave(this, a2); goto LABEL_10; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source