// // MenuGameLayer::update from 0x7da844 to 0x7dab20 (732 bytes) // // 2 xrefs: // > @ 0xf7948 // > @ 0x1439328 // // 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:54:23 +0000 // __int64 __fastcall MenuGameLayer::update(MenuGameLayer *this, float a2) { float v4; // s11 cocos2d::CCDirector *v5; // x0 __int64 v6; // x22 const cocos2d::CCPoint *v7; // x0 float *v8; // x0 float v9; // s1 float v10; // s9 cocos2d::CCDirector *v11; // x0 float v12; // s0 float v13; // s9 float *v14; // x0 float v15; // s2 float v16; // s0 __int64 v17; // x22 float v18; // s0 float v19; // s2 __int64 v21; // x22 void (__fastcall *v22)(__int64, _BYTE *); // x23 float *v23; // x0 __int64 v24; // [xsp+68h] [xbp+68h] BYREF float v25; // [xsp+70h] [xbp+70h] BYREF float v26; // [xsp+78h] [xbp+78h] BYREF _BYTE v27[8]; // [xsp+80h] [xbp+80h] BYREF v4 = 0.0; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v24, v5); *((float *)this + 102) = *((float *)this + 102) + a2; MenuGameLayer::updateColors(this); v6 = *((_QWORD *)this + 54); v7 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v7); cocos2d::CCPoint::operator=(v6 + 2480, v27); PlayerObject::updateInternalActions(*((GJActionManager ***)this + 54), a2); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 54) + 40LL))(*((_QWORD *)this + 54), a2 * 60.0); *(double *)(*((_QWORD *)this + 54) + 2624LL) = *((float *)this + 102); v8 = *((float **)this + 54); v9 = v8[618]; v10 = v8[660]; if ( v9 != 1.0 ) v4 = (float)(v10 * (float)(1.0 - v9)) * 0.5; v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8); cocos2d::CCDirector::getScreenBottom(v11); v13 = (float)((float)(v12 + 90.0) + (float)(v10 * 0.5)) - v4; if ( v13 > *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 54) + 192LL))(*((_QWORD *)this + 54)) + 4) ) { v21 = *((_QWORD *)this + 54); v22 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v21 + 184LL); v23 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *v23, v13); v22(v21, v27); PlayerObject::hitGround(*((PlayerObject **)this + 54), nullptr, 0); } PlayerObject::updateRotation(*((_QWORD *)this + 54), a2 * 60.0); v14 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 54) + 192LL))(*((_QWORD *)this + 54)); if ( *v14 > (float)(*(float *)&v24 + 100.0) ) MenuGameLayer::resetPlayer((cocos2d::CCMotionStreak ***)this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v27, *((float *)this + 105) + (float)((float)((float)(a2 * 60.0) * 5.77) * 0.9), 0.0); cocos2d::CCPoint::operator=((char *)this + 420, v27); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v25, (float)-*((float *)this + 105) * 0.1, (float)-*((float *)this + 106) * 0.1); v15 = *((float *)this + 114); v16 = v25; if ( (float)-v15 > v25 ) { do v16 = v16 + v15; while ( v16 < (float)-v15 ); v25 = v16; } (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 55) + 184LL))(*((_QWORD *)this + 55), &v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, -*((float *)this + 105), 0.0); v17 = *((_QWORD *)this + 56); v18 = v26; v19 = *(float *)(v17 + 424); if ( (float)-v19 > v26 ) { do v18 = v18 + v19; while ( v18 < (float)-v19 ); v26 = v18; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const cocos2d::CCPoint *)&v26); GJGroundLayer::updateGroundPos(v17, v27); PlayerObject::updateEffects(*((HardStreak ***)this + 54), a2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source