//
// SecretLayer4::showFirstDialog from 0xa94ee8 to 0xa95228 (832 bytes)
//
// 3 xrefs:
// > ??> @ 0xbe1c8
// > SecretLayer4::init @ 0xa97830
// > ??> @ 0x1545848
//
// 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::showFirstDialog(SecretLayer4 *this)
{
GameManager *v2; // x0
cocos2d::CCArray *v3; // x0
cocos2d::CCArray *v4; // x21
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCNode *v9; // x19
__int64 v11; // [xsp+58h] [xbp+58h] BYREF
__int64 v12; // [xsp+60h] [xbp+60h]
void *v13; // [xsp+68h] [xbp+68h]
__int64 v14; // [xsp+70h] [xbp+70h] BYREF
__int64 v15; // [xsp+78h] [xbp+78h]
void *v16; // [xsp+80h] [xbp+80h]
v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard);
v3 = (cocos2d::CCArray *)GameManager::setUGV(v2, "9", 1u);
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
v11 = 0;
v12 = 0;
v13 = nullptr;
std::string::__init(&v11, "The Gatekeeper", 0xEu);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "Wait, you are not RubRub...", 0x23u);
v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v11, (char *)&v14, 3, 1, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v5);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( (v11 & 1) != 0 )
operator delete(v13);
v11 = 0;
v12 = 0;
v13 = nullptr;
std::string::__init(&v11, "The Gatekeeper", 0xEu);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "You seem to be skilled in the art of deception...", 0x39u);
v6 = (cocos2d::CCObject *)DialogObject::create((char *)&v11, (char *)&v14, 3, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v6);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( (v11 & 1) != 0 )
operator delete(v13);
v11 = 0;
v12 = 0;
v13 = nullptr;
std::string::__init(&v11, "The Gatekeeper", 0xEu);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "But it does not matter, your trickery ends here.", 0x38u);
v7 = (cocos2d::CCObject *)DialogObject::create((char *)&v11, (char *)&v14, 3, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v7);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( (v11 & 1) != 0 )
operator delete(v13);
v11 = 0;
v12 = 0;
v13 = nullptr;
std::string::__init(&v11, "The Gatekeeper", 0xEu);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "Leave now, before you cause more problems...", 0x4Cu);
v8 = (cocos2d::CCObject *)DialogObject::create((char *)&v11, (char *)&v14, 3, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v8);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( (v11 & 1) != 0 )
operator delete(v13);
v9 = (cocos2d::CCNode *)DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2));
(*(void (__fastcall **)(SecretLayer4 *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v9, 100);
DialogLayer::updateChatPlacement((__int64)v9, 0);
DialogLayer::animateIn(v9, 2u);
return _stack_chk_guard;
}