// // sub_1003A8808 from 0x1003a8808 to 0x1003a892c (292 bytes) // // 1 xrefs: // > SecretLayer2::init @ 0x1003a6d5c // // 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 11:03:50 +0000 // __int64 __fastcall sub_1003A8808(__int64 a1) { int v2; // w0 __int64 v3; // x0 __int64 MainLevel; // x19 __int64 v5; // x20 _DWORD *v6; // x0 char *v7; // x0 char *v9; // x0 __int64 v10; // x20 void *__p[2]; // [xsp+0h] [xbp-40h] BYREF char v12; // [xsp+17h] [xbp-29h] void *v13[2]; // [xsp+18h] [xbp-28h] BYREF char v14; // [xsp+2Fh] [xbp-11h] v2 = GameStatsManager::sharedState(a1); if ( (int)GameStatsManager::getStat(v2, "13") < 200 ) { sub_100009900(v13, "The Keymaster"); sub_100009900(__p, "You are not prepared.\nCollect more diamonds..."); v9 = DialogObject::create((__int64)v13, (__int64)__p, 2, 0, 0xFFFFFF, 1.0); v10 = DialogLayer::create((__int64)v9, 2); if ( v12 < 0 ) operator delete(__p[0]); if ( v14 < 0 ) operator delete(v13[0]); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v10, 100); DialogLayer::updateChatPlacement(v10, 0); return DialogLayer::animateInRandomSide(v10); } else { v3 = GameLevelManager::sharedState(); MainLevel = GameLevelManager::getMainLevel(v3, 3001, 0); *(_DWORD *)(GameManager::sharedState(MainLevel) + 708) = 12; v5 = cocos2d::CCDirector::sharedDirector(); v6 = PlayLayer::scene(MainLevel, 0); v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5); return cocos2d::CCDirector::replaceScene(v5, v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source