// // SecretLayer2::showCompletedLevel from 0xa8b848 to 0xa8c01c (2004 bytes) // // 3 xrefs: // > @ 0xb89a8 // > SecretLayer2::init @ 0xa90c28 // > @ 0x1545568 // // 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 13:00:37 +0000 // __int64 __fastcall SecretLayer2::showCompletedLevel(SecretLayer2 *this) { cocos2d::CCArray *v2; // x21 cocos2d::CCObject *v3; // x0 cocos2d::CCObject *v4; // x0 cocos2d::CCObject *v5; // x0 cocos2d::CCObject *v6; // x0 cocos2d::CCObject *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCObject *v10; // x0 cocos2d::CCObject *v11; // x0 cocos2d::CCObject *v12; // x0 cocos2d::CCObject *v13; // x0 cocos2d::CCObject *v14; // x0 cocos2d::CCNode *v15; // x19 __int64 v17; // [xsp+58h] [xbp+58h] BYREF __int64 v18; // [xsp+60h] [xbp+60h] void *v19; // [xsp+68h] [xbp+68h] __int64 v20; // [xsp+70h] [xbp+70h] BYREF __int64 v21; // [xsp+78h] [xbp+78h] void *v22; // [xsp+80h] [xbp+80h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Huh!?", 5u); v3 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v3); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "My level... You beat it?", 0x30u); v4 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v4); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "I guess I underestimated you.\nIt will not happen again.", 0x3Du); v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v5); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "... Why are you still here?", 0x33u); v6 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v6); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Ah of course, you want a prize.", 0x2Du); v7 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v7); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "RubRub always gives prizes.", 0x1Bu); v8 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v8); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Uhm... Not sure what to...", 0x44u); v9 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v9); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Oh I know!", 0xAu); v10 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v10); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "I left an old chest down in the basement.", 0x31u); v11 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v11); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "You can have that as a reward!", 0x26u); v12 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v12); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Take the door on the right, I will open it for you.", 0x3Bu); v13 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v13); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Keymaster", 0xDu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init( &v20, "Grab the chest and come back...\n" "DONT TOUCH ANYTHING!", 0x7Eu); v14 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 2, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v2, v14); if ( (v20 & 1) != 0 ) operator delete(v22); if ( (v17 & 1) != 0 ) operator delete(v19); v15 = (cocos2d::CCNode *)DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)((char *)&dword_0 + 2)); *((_QWORD *)v15 + 78) = (char *)this + 424; (*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v15, 100); DialogLayer::updateChatPlacement((__int64)v15, 0); DialogLayer::animateIn(v15, 2u); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source