//
// SecretLayer2::showCompletedLevel from 0x61b37c to 0x61b908 (1420 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:54:59 +0000
//
unsigned int __fastcall SecretLayer2::showCompletedLevel(SecretLayer2 *this)
{
cocos2d::CCArray *v2; // r6
cocos2d::CCObject *v3; // r0
cocos2d::CCObject *v4; // r0
cocos2d::CCObject *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r0
cocos2d::CCObject *v12; // r0
cocos2d::CCObject *v13; // r0
cocos2d::CCObject *v14; // r0
int v15; // r2
cocos2d::CCLayerColor *v16; // r0
cocos2d::CCDirector *v17; // r4
int v19; // [sp+4h] [bp-24h]
int v20; // [sp+4h] [bp-24h]
int v21; // [sp+4h] [bp-24h]
int v22; // [sp+4h] [bp-24h]
int v23; // [sp+4h] [bp-24h]
int v24; // [sp+4h] [bp-24h]
int v25; // [sp+4h] [bp-24h]
int v26; // [sp+4h] [bp-24h]
int v27; // [sp+4h] [bp-24h]
int v28; // [sp+4h] [bp-24h]
int v29; // [sp+4h] [bp-24h]
int v30; // [sp+4h] [bp-24h]
int v31; // [sp+Ch] [bp-1Ch] BYREF
int v32; // [sp+10h] [bp-18h]
int v33; // [sp+14h] [bp-14h]
int v34; // [sp+18h] [bp-10h] BYREF
int v35; // [sp+1Ch] [bp-Ch]
int v36; // [sp+20h] [bp-8h]
v31 = 0;
v32 = 0;
v33 = 0;
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "Huh!?", 5u);
LOWORD(v19) = -1;
BYTE2(v19) = -1;
v3 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 1, v19);
cocos2d::CCArray::addObject(v2, v3);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "My level... You beat it?", 0x30u);
LOWORD(v20) = -1;
BYTE2(v20) = -1;
v4 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v20);
cocos2d::CCArray::addObject(v2, v4);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "I guess I underestimated you.\nIt will not happen again.", 0x3Du);
LOWORD(v21) = -1;
BYTE2(v21) = -1;
v5 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v21);
cocos2d::CCArray::addObject(v2, v5);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "... Why are you still here?", 0x33u);
LOWORD(v22) = -1;
BYTE2(v22) = -1;
v6 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v22);
cocos2d::CCArray::addObject(v2, v6);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "Ah of course, you want a prize.", 0x2Du);
LOWORD(v23) = -1;
BYTE2(v23) = -1;
v7 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v23);
cocos2d::CCArray::addObject(v2, v7);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "RubRub always gives prizes.", 0x1Bu);
LOWORD(v24) = -1;
BYTE2(v24) = -1;
v8 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v24);
cocos2d::CCArray::addObject(v2, v8);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "Uhm... Not sure what to...", 0x44u);
LOWORD(v25) = -1;
BYTE2(v25) = -1;
v9 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v25);
cocos2d::CCArray::addObject(v2, v9);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "Oh I know!", 0xAu);
LOWORD(v26) = -1;
BYTE2(v26) = -1;
v10 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v26);
cocos2d::CCArray::addObject(v2, v10);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "I left an old chest down in the basement.", 0x31u);
LOWORD(v27) = -1;
BYTE2(v27) = -1;
v11 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v27);
cocos2d::CCArray::addObject(v2, v11);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "You can have that as a reward!", 0x26u);
LOWORD(v28) = -1;
BYTE2(v28) = -1;
v12 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v28);
cocos2d::CCArray::addObject(v2, v12);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(&v34, "Take the door on the right, I will open it for you.", 0x3Bu);
LOWORD(v29) = -1;
BYTE2(v29) = -1;
v13 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v29);
cocos2d::CCArray::addObject(v2, v13);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v31 = 0;
v32 = 0;
v33 = 0;
std::string::__init(&v31, "The Keymaster", 0xDu);
v34 = 0;
v35 = 0;
v36 = 0;
std::string::__init(
&v34,
"Grab the chest and come back...\n"
"DONT TOUCH ANYTHING!",
0x7Eu);
LOWORD(v30) = -1;
BYTE2(v30) = -1;
v14 = (cocos2d::CCObject *)DialogObject::create((int)&v31, (int)&v34, 2, 1065353216, 0, v30);
cocos2d::CCArray::addObject(v2, v14);
std::string::~string((int)&v34);
std::string::~string((int)&v31);
v16 = DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)((char *)&dword_0 + 2), v15);
*((_DWORD *)v16 + 122) = (char *)this + 324;
v17 = v16;
(*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCLayerColor *, int))(*(_DWORD *)this + 232))(this, v16, 100);
DialogLayer::updateChatPlacement(v17, 0);
return DialogLayer::animateIn(v17, 2u);
}