// // SecretLayer4::showDialog from 0xa94874 to 0xa94ee8 (1652 bytes) // // 1 xrefs: // > @ 0x541a8 // // 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:42 +0000 // __int64 __fastcall SecretLayer4::showDialog(SecretLayer4 *this, int a2) { cocos2d::CCArray *v3; // x23 cocos2d::CCObject *v4; // x0 cocos2d::CCObject *v5; // x0 cocos2d::CCNode *v6; // x20 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::CCObject *v15; // x0 __int64 v17; // [xsp+68h] [xbp+68h] BYREF __int64 v18; // [xsp+70h] [xbp+70h] void *v19; // [xsp+78h] [xbp+78h] __int64 v20; // [xsp+80h] [xbp+80h] BYREF __int64 v21; // [xsp+88h] [xbp+88h] void *v22; // [xsp+90h] [xbp+90h] v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); switch ( a2 ) { case 1: v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "This is random message 1", 0x18u); v10 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, 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 Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Random message 1 end", 0x14u); v11 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v11); goto LABEL_7; case 2: v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "This is random message 2", 0x18u); v12 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, 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 Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Random message 2 end", 0x14u); v13 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v13); goto LABEL_7; case 3: v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "This is random message 3", 0x18u); v14 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v14); 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 Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Random message 3 end", 0x14u); v15 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v15); goto LABEL_7; case 4: v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "This is random message 4", 0x18u); v4 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, 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 Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Random message 4 end", 0x14u); v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v5); LABEL_7: if ( (v20 & 1) == 0 ) goto LABEL_8; goto LABEL_16; case 5: v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "The Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "This is random message 5", 0x18u); v8 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 1, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, 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 Gatekeeper", 0xEu); v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, "Random message 5 end", 0x14u); v9 = (cocos2d::CCObject *)DialogObject::create((char *)&v17, (char *)&v20, 3, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v3, v9); if ( (v20 & 1) != 0 ) { LABEL_16: operator delete(v22); if ( (v17 & 1) == 0 ) goto LABEL_9; } else { LABEL_8: if ( (v17 & 1) == 0 ) goto LABEL_9; } operator delete(v19); LABEL_9: v6 = (cocos2d::CCNode *)DialogLayer::createWithObjects(v3, (cocos2d::CCArray *)((char *)&dword_0 + 2)); *((_QWORD *)v6 + 78) = (char *)this + 424; (*(void (__fastcall **)(SecretLayer4 *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v6, 100); DialogLayer::updateChatPlacement((__int64)v6, 0); DialogLayer::animateIn(v6, 2u); return _stack_chk_guard; default: return _stack_chk_guard; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source