// // MenuGameLayer::update from 0x140470860 to 0x140470d2b (1227 bytes) // // 2 xrefs: // > @ 0x1407b3d40 // > @ 0x14092819c // // This function is hookable on this platform (idp: pc, 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 11:32:38 +0000 // void __fastcall MenuGameLayer::update(__int64 a1, float a2) { __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax cocos2d::CCArray *v6; // rax unsigned int v7; // ebx cocos2d::CCArray *v8; // rbp unsigned int v9; // edi struct cocos2d::CCObject *v10; // rax __int64 v11; // rcx __int64 v12; // rax __int64 v13; // rcx cocos2d::CCArray *v14; // rax cocos2d::CCArray *v15; // rdi struct cocos2d::CCObject *v16; // rax const struct cocos2d::CCPoint *v17; // rax __int64 v18; // rax __int64 v19; // rcx float v20; // xmm6_4 __int64 v21; // rax float v22; // xmm0_4 float v23; // xmm8_4 cocos2d::CCDirector *v24; // rax float v25; // xmm7_4 float *v26; // rax __int64 *v27; // rdi __int64 v28; // rbx __int64 v29; // rax float *v30; // rax __int64 v31; // rax float v32; // xmm0_4 float v33; // xmm1_4 float v34; // xmm0_4 float v35; // xmm2_4 __int64 v36; // rbx __int64 v37; // rax __int64 v38; // rdi __int64 v39; // rcx float v40[4]; // [rsp+20h] [rbp-78h] BYREF __int16 v41; // [rsp+A0h] [rbp+8h] BYREF char v42; // [rsp+A2h] [rbp+Ah] float v43; // [rsp+B0h] [rbp+18h] BYREF float v44; // [rsp+B8h] [rbp+20h] BYREF v3 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3, v40); v4 = *(_QWORD *)(a1 + 448); *(float *)(a1 + 412) = a2 + *(float *)(a1 + 412); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v4 + 408) + 320LL) + 8LL))(*(_QWORD *)(v4 + 408) + 320LL); v41 = *(_WORD *)v5; v42 = *(_BYTE *)(v5 + 2); v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 448) + 408LL) + 480LL))(*(_QWORD *)(*(_QWORD *)(a1 + 448) + 408LL)); v7 = 0; v8 = v6; if ( v6 ) { v9 = 0; if ( cocos2d::CCArray::count(v6) ) { do { v10 = cocos2d::CCArray::objectAtIndex(v8, v9); (**((void (__fastcall ***)(__int64, __int16 *))v10 + 40))((__int64)v10 + 320, &v41); ++v9; } while ( v9 < cocos2d::CCArray::count(v8) ); } } v11 = *(_QWORD *)(*(_QWORD *)(a1 + 448) + 416LL); if ( v11 ) { v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v11 + 320) + 8LL))(v11 + 320); v41 = *(_WORD *)v12; v42 = *(_BYTE *)(v12 + 2); v13 = *(_QWORD *)(*(_QWORD *)(a1 + 448) + 416LL); if ( v13 ) { v14 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 480LL))(v13); v15 = v14; if ( v14 ) { if ( cocos2d::CCArray::count(v14) ) { do { v16 = cocos2d::CCArray::objectAtIndex(v15, v7); (**((void (__fastcall ***)(__int64, __int16 *))v16 + 40))((__int64)v16 + 320, &v41); ++v7; } while ( v7 < cocos2d::CCArray::count(v15) ); } } } } v17 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 200LL))(*(_QWORD *)(a1 + 432)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, v17); cocos2d::CCPoint::operator=(*(_QWORD *)(a1 + 432) + 2560LL, v18); PlayerObject::updateInternalActions(*(_QWORD *)(a1 + 432)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 32LL))(*(_QWORD *)(a1 + 432)); v20 = 0.0; *(double *)(*(_QWORD *)(a1 + 432) + 2728LL) = *(float *)(a1 + 412); v21 = *(_QWORD *)(a1 + 432); v22 = *(float *)(v21 + 2552); v23 = *(float *)(v21 + 2744); if ( v22 != 1.0 ) v20 = (float)((float)(1.0 - v22) * v23) * 0.5; v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19); v25 = (float)((float)(cocos2d::CCDirector::getScreenBottom(v24) + 90.0) + (float)(v23 * 0.5)) - v20; if ( v25 > *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 200LL))(*(_QWORD *)(a1 + 432)) + 4) ) { v26 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 200LL))(*(_QWORD *)(a1 + 432)); v27 = *(__int64 **)(a1 + 432); v28 = *v27; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, *v26, v25); (*(void (__fastcall **)(__int64 *, __int64))(v28 + 184))(v27, v29); PlayerObject::hitGround(*(_QWORD *)(a1 + 432), 0, 0); } PlayerObject::updateRotation_1(*(_QWORD *)(a1 + 432)); v30 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 200LL))(*(_QWORD *)(a1 + 432)); if ( *v30 > (float)(v40[0] + 100.0) ) MenuGameLayer::resetPlayer(a1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v41, (float)((float)((float)(a2 * 60.0) * 5.7700019) * 0.89999998) + *(float *)(a1 + 424), 0.0); cocos2d::CCPoint::operator=(a1 + 424, v31); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v43, (float)-*(float *)(a1 + 424) * 0.1, (float)-*(float *)(a1 + 428) * 0.1); v32 = v43; v33 = -*(float *)(a1 + 456); if ( v33 > v43 ) { do v32 = v32 + *(float *)(a1 + 456); while ( v33 > v32 ); v43 = v32; } (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 440) + 184LL))(*(_QWORD *)(a1 + 440), &v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, -*(float *)(a1 + 424), 0.0); v34 = v44; v35 = *(float *)(*(_QWORD *)(a1 + 448) + 424LL); if ( (float)-v35 > v44 ) { do v34 = v34 + v35; while ( (float)-v35 > v34 ); v44 = v34; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, (const struct cocos2d::CCPoint *)&v44); v36 = *(_QWORD *)(a1 + 448); v38 = v37; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v36 + 408) + 184LL))(*(_QWORD *)(v36 + 408), v37); v39 = *(_QWORD *)(v36 + 416); if ( v39 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 184LL))(v39, v38); HardStreak::updateStroke(*(_QWORD *)(*(_QWORD *)(a1 + 432) + 1976LL)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source