// // SecretLayer3::showUnlockDialog from 0x61c944 to 0x61cb58 (532 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:55:00 +0000 // unsigned int __fastcall SecretLayer3::showUnlockDialog(SecretLayer3 *this) { GameManager *v2; // r9 GameManager *v3; // r0 GameManager *UGV; // r4 GameManager *v5; // r0 GameManager *v6; // r0 char *v7; // r6 GameManager *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r0 int v12; // r2 cocos2d::CCDirector *v13; // r6 int v15; // [sp+4h] [bp-24h] int v16; // [sp+4h] [bp-24h] int v17; // [sp+Ch] [bp-1Ch] BYREF int v18; // [sp+10h] [bp-18h] int v19; // [sp+14h] [bp-14h] int v20; // [sp+18h] [bp-10h] BYREF int v21; // [sp+1Ch] [bp-Ch] int v22; // [sp+20h] [bp-8h] v2 = (GameManager *)cocos2d::CCArray::create(this); v3 = (GameManager *)GameManager::sharedState(v2); UGV = (GameManager *)GameManager::getUGV(v3, "14"); v5 = (GameManager *)GameManager::sharedState(UGV); v6 = (GameManager *)GameManager::getUGV(v5, "15"); v7 = (char *)v6 + (_DWORD)UGV; v8 = (GameManager *)GameManager::sharedState(v6); v17 = 0; v18 = 0; v19 = 0; if ( &v7[GameManager::getUGV(v8, "16")] == (_BYTE *)&dword_0 + 2 ) { std::string::__init(&v17, "...", 3u); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "You found a second key, impressive...", 0x3Fu); LOWORD(v15) = -1; BYTE2(v15) = -1; v9 = (cocos2d::CCObject *)DialogObject::create((int)&v17, (int)&v20, 15, 1065353216, 0, v15); cocos2d::CCArray::addObject(v2, v9); std::string::~string((int)&v20); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "...", 3u); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Only one lock left.", 0x1Bu); } else { std::string::__init(&v17, "...", 3u); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "The key, you found it?", 0x1Eu); LOWORD(v15) = -1; BYTE2(v15) = -1; v10 = (cocos2d::CCObject *)DialogObject::create((int)&v17, (int)&v20, 15, 1065353216, 0, v15); cocos2d::CCArray::addObject(v2, v10); std::string::~string((int)&v20); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "...", 3u); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Excellent, only two locks left.", 0x27u); } LOWORD(v16) = -1; BYTE2(v16) = -1; v11 = (cocos2d::CCObject *)DialogObject::create((int)&v17, (int)&v20, 15, 1065353216, 0, v16); cocos2d::CCArray::addObject(v2, v11); std::string::~string((int)&v20); std::string::~string((int)&v17); v13 = DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)byte_4, v12); (*(void (__fastcall **)(SecretLayer3 *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v13, 100); (*(void (__fastcall **)(cocos2d::CCDirector *, int))(*(_DWORD *)v13 + 36))(v13, 6); *((_DWORD *)v13 + 122) = (char *)this + 316; DialogLayer::updateChatPlacement(v13, 0); return DialogLayer::animateInRandomSide(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source