// // PauseLayer::onSideButtonPressed from 0x7d4c44 to 0x7d4f80 (828 bytes) // // 4 xrefs: // > PauseLayer::customSetup @ 0x7d97d4 // > @ 0xb3b78 // > PauseLayer::customSetup @ 0x7d8670 // > @ 0x1545228 // // 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:20 +0000 // __int64 __fastcall PauseLayer::onSideButtonPressed(PauseLayer *this, cocos2d::CCObject *a2) { GameManager *v4; // x0 GameManager *v5; // x0 GameManager *v6; // x0 int v7; // w22 GameManager *v8; // x0 __int64 v9; // x0 cocos2d::CCSpriteFrameCache **v10; // x20 void (__fastcall *v11)(cocos2d::CCSpriteFrameCache **, __int64); // x21 cocos2d::CCSpriteFrameCache *v12; // x0 const char *v13; // x1 __int64 v14; // x0 __int64 v16; // x22 void (__fastcall *v17)(__int64, _QWORD); // x20 unsigned __int8 v18; // w0 __int64 v19; // x0 __int64 v20; // x0 int v21; // w2 __int64 v22; // x0 GameManager *v23; // x0 GameManager *v24; // x0 __int64 v25; // x0 GJGameLevel *v26; // x1 __int64 v27; // x0 GameManager *v28; // x0 GameManager *v29; // x0 __int64 v30; // x0 GJGameLevel *v31; // x1 __int64 v32; // x0 __int64 v33; // x0 GJEditorSoundConfig *v34; // x4 __int64 v35; // x0 __int64 v36; // x0 ChallengesPage *v37; // x0 __int64 v38; // x0 GameManager *v39; // x0 GameManager *v40; // x0 __int64 v41; // x0 bool v42; // w2 __int64 v43; // x0 cocos2d::CCNode *v44; // x24 const cocos2d::CCPoint *v45; // x0 GameManager *v46; // x0 __int64 v47; // x0 GJBaseGameLayer *v48; // x1 __int64 v49; // x0 __int64 v50; // x20 void (__fastcall *v51)(__int64, _BYTE *); // x21 __int64 v52; // [xsp+50h] [xbp+50h] BYREF __int64 v53; // [xsp+58h] [xbp+58h] BYREF _BYTE v54[8]; // [xsp+60h] [xbp+60h] BYREF v4 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); switch ( (int)v4 ) { case 0: v20 = GameManager::sharedState(v4); v22 = GameSettingsLayer::create(*(GameSettingsLayer **)(v20 + 544), nullptr, v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)v22 + 1312LL))(v22); break; case 1: PauseLayer::onToggleUI(this, nullptr); break; case 2: v23 = *(GameManager **)(GameManager::sharedState(v4) + 544); if ( v23 ) { v24 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v23) + 544) + 1936LL); if ( v24 ) { v25 = GameManager::sharedState(v24); v27 = DeathTrackerPopup::create(*(DeathTrackerPopup **)(*(_QWORD *)(v25 + 544) + 1936LL), v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)v27 + 1312LL))(v27); } } break; case 3: v28 = *(GameManager **)(GameManager::sharedState(v4) + 544); if ( v28 ) { v29 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v28) + 544) + 1936LL); if ( v29 ) { v30 = GameManager::sharedState(v29); v32 = DeathMarkerSettingsPopup::create(*(DeathMarkerSettingsPopup **)(*(_QWORD *)(v30 + 544) + 1936LL), v31); (*(void (__fastcall **)(__int64))(*(_QWORD *)v32 + 1312LL))(v32); } } break; case 4: v33 = GameManager::sharedState(v4); v35 = InfoLayer::create(*(InfoLayer **)(*(_QWORD *)(v33 + 544) + 1936LL), nullptr, nullptr, nullptr, v34); (*(void (__fastcall **)(__int64))(*(_QWORD *)v35 + 1312LL))(v35); break; case 5: v36 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 1072LL))(a2); v37 = (ChallengesPage *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v36 + 560LL))(v36, 99); v38 = ChallengesPage::create(v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)v38 + 1312LL))(v38); break; case 6: v5 = (GameManager *)GameManager::sharedState(v4); v6 = (GameManager *)GameManager::toggleGameVariable(v5, "0173"); v7 = (unsigned __int8)v6; v8 = *(GameManager **)(GameManager::sharedState(v6) + 544); if ( v8 ) { v9 = GameManager::sharedState(v8); PlayLayer::toggleIgnoreDamage(*(PlayLayer **)(v9 + 544), v7); } v10 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 1072LL))(a2); v11 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v10 + 145); v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v10); if ( v7 ) v13 = "sideBtn_damageOff_001.png"; else v13 = "sideBtn_damageOn_001.png"; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v13); v11(v10, v14); break; case 7: v39 = *(GameManager **)(GameManager::sharedState(v4) + 544); if ( v39 ) { v40 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v39) + 544) + 1936LL); if ( v40 ) { v41 = GameManager::sharedState(v40); v43 = PlatformerControlsPopup::create( *(PlatformerControlsPopup **)(*(_QWORD *)(v41 + 544) + 1936LL), nullptr, v42); (*(void (__fastcall **)(__int64))(*(_QWORD *)v43 + 1312LL))(v43); } } break; case 8: v16 = *((_QWORD *)this + 78); if ( v16 ) { v17 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL); v18 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v16 + 352LL))(*((_QWORD *)this + 78)); v17(v16, v18 ^ 1u); } else { v44 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 512LL))(a2); v45 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 192LL))(a2); cocos2d::CCNode::convertToWorldSpace(&v52, v44, v45); v46 = (GameManager *)cocos2d::CCNode::convertToNodeSpace(&v53, this, (const cocos2d::CCPoint *)&v52); v47 = GameManager::sharedState(v46); v49 = TimeSpeedControl::create(*(TimeSpeedControl **)(v47 + 544), v48); *((_QWORD *)this + 78) = v49; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))( *((_QWORD *)this + 79), v49, 4); v50 = *((_QWORD *)this + 78); v51 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, *(float *)&v53, *((float *)&v53 + 1) - 80.0); v51(v50, v54); } break; case 9: v19 = UIPOptionsLayer::create(v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v19 + 1312LL))(v19); break; default: return _stack_chk_guard; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source