//
// WorldSelectLayer::showCompleteDialog from 0xaa6d6c to 0xaa7018 (684 bytes)
//
// 3 xrefs:
// > ??> @ 0x53de8
// > WorldSelectLayer::init @ 0xaa856c
// > ??> @ 0x1541d40
//
// 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:51 +0000
//
__int64 __fastcall WorldSelectLayer::showCompleteDialog(WorldSelectLayer *this)
{
GameManager *v2; // x0
cocos2d::CCArray *v3; // x0
cocos2d::CCArray *v4; // x22
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
DialogLayer *v8; // x19
__int64 v10; // [xsp+58h] [xbp+58h] BYREF
__int64 v11; // [xsp+60h] [xbp+60h]
void *v12; // [xsp+68h] [xbp+68h]
__int64 v13; // [xsp+70h] [xbp+70h] BYREF
__int64 v14; // [xsp+78h] [xbp+78h]
void *v15; // [xsp+80h] [xbp+80h]
*((_BYTE *)this + 464) = 0;
v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard);
v3 = (cocos2d::CCArray *)GameManager::setUGV(v2, "18", 1u);
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "The Keymaster", 0xDu);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(
&v13,
"Well, well, well... I see you have completed the first two islands.",
0x59u);
v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 2, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v5);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "The Keymaster", 0xDu);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Not bad, not bad at all.\nWhy not try some online levels?", 0x4Cu);
v6 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 2, 0, 0xFFFFFF, 0.85);
cocos2d::CCArray::addObject(v4, v6);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "The Keymaster", 0xDu);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Let's see what more you can do...", 0x3Bu);
v7 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 2, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v7);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v8 = (DialogLayer *)DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2));
(*(void (__fastcall **)(WorldSelectLayer *, DialogLayer *, __int64))(*(_QWORD *)this + 464LL))(this, v8, 100);
DialogLayer::updateChatPlacement((__int64)v8, 0);
DialogLayer::animateInRandomSide(v8);
return _stack_chk_guard;
}