// // LevelListLayer::onBack from 0x6d81b4 to 0x6d82b4 (256 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:08 +0000 // unsigned __int8 *__fastcall LevelListLayer::onBack( unsigned __int8 *this, cocos2d::CCObject *a2, GJSearchObject *a3, int a4) { unsigned __int8 *v4; // r5 int v6; // r4 int v7; // r0 GameLevelManager *v8; // r0 int v9; // r8 GameLevelManager *v10; // r0 GameLevelManager *v11; // r5 int v12; // r0 GJSearchObject *v13; // r1 AppDelegate *SearchScene; // r5 GameLevelManager *v15; // r0 AppDelegate *v16; // r0 cocos2d::CCDirector *v17; // r4 cocos2d::CCScene *v18; // r2 cocos2d::CCScene *v19; // r0 LevelBrowserLayer *v20; // r0 GJSearchObject *v21; // r1 int v22[2]; // [sp+0h] [bp-10h] BYREF GJSearchObject *v23; // [sp+8h] [bp-8h] int v24; // [sp+Ch] [bp-4h] v22[0] = (int)this; v22[1] = (int)a2; v23 = a3; v24 = a4; v4 = this; v6 = *(this + 660); if ( !*(this + 660) ) { (*(void (__fastcall **)(unsigned __int8 *, _DWORD))(*(_DWORD *)this + 536))(this, *(this + 660)); v7 = *((_DWORD *)v4 + 166); if ( v7 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 580))(v7, v6); v8 = (GameLevelManager *)LevelListLayer::verifyListName((LevelListLayer *)v4); v9 = GameLevelManager::sharedState(v8); std::string::basic_string(v22, (int)(v4 + 628)); std::string::operator=((unsigned __int8 *)(v9 + 784), (unsigned __int8 *)v22); v10 = (GameLevelManager *)std::string::~string((int)v22); if ( *(_DWORD *)(*((_DWORD *)v4 + 160) + 408) == 2 ) { v11 = (GameLevelManager *)GameLevelManager::sharedState(v10); v12 = GameLevelManager::sharedState(v11); std::string::basic_string(v22, v12 + 784); if ( (v22[0] & 1) != 0 ) v13 = v23; else v13 = (GJSearchObject *)((char *)v22 + 1); SearchScene = GameLevelManager::getSearchScene(v11, v13); v15 = (GameLevelManager *)std::string::~string((int)v22); v16 = (AppDelegate *)GameLevelManager::sharedState(v15); if ( *((_BYTE *)v16 + 816) || !SearchScene ) { *(_BYTE *)(GameLevelManager::sharedState(v16) + 816) = 0; v20 = (LevelBrowserLayer *)GJSearchObject::create(102); v16 = LevelBrowserLayer::scene(v20, v21); SearchScene = v16; } v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); v19 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create( (cocos2d::CCTransitionFade *)0x3F000000, *(float *)&SearchScene, v18); return (unsigned __int8 *)cocos2d::CCDirector::replaceScene(v17, v19); } else { return (unsigned __int8 *)LevelBrowserLayer::onBack((LevelBrowserLayer *)v4, a2); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source