//
// SecretLayer5::showFirstDialog from 0x6e4940 to 0x6e4ba2 (610 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:57:23 +0000
//
int __fastcall SecretLayer5::showFirstDialog(SecretLayer5 *this)
{
GameManager *v2; // r0
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r9
cocos2d::CCObject *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // r0
int v10; // r2
cocos2d::CCDirector *v11; // r4
int v12; // r0
int v14; // [sp+4h] [bp-24h]
int v15; // [sp+4h] [bp-24h]
int v16; // [sp+4h] [bp-24h]
int v17; // [sp+4h] [bp-24h]
int v18; // [sp+4h] [bp-24h]
int v19; // [sp+Ch] [bp-1Ch] BYREF
int v20; // [sp+10h] [bp-18h]
int v21; // [sp+14h] [bp-14h]
int v22; // [sp+18h] [bp-10h] BYREF
int v23; // [sp+1Ch] [bp-Ch]
int v24; // [sp+20h] [bp-8h]
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (cocos2d::CCArray *)GameManager::setUGV(v2, "38", (_BYTE *)&dword_0 + 1);
v19 = 0;
v20 = 0;
v21 = 0;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
std::string::__init(&v19, "The Wraith", 0xAu);
v22 = 0;
v23 = 0;
v24 = 0;
std::string::__init(
&v22,
"Great... Just what I needed.\nAnother visitor to my prison.",
0x56u);
LOWORD(v14) = -1;
BYTE2(v14) = -1;
v5 = (cocos2d::CCObject *)DialogObject::create((int)&v19, (int)&v22, 54, 1065353216, 1, v14);
cocos2d::CCArray::addObject(v4, v5);
std::string::~string((int)&v22);
std::string::~string((int)&v19);
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(&v19, "The Wraith", 0xAu);
v22 = 0;
v23 = 0;
v24 = 0;
std::string::__init(
&v22,
"Must be my lucky day... or yours.\nI don't really have days anymore.",
0x5Fu);
LOWORD(v15) = -1;
BYTE2(v15) = -1;
v6 = (cocos2d::CCObject *)DialogObject::create((int)&v19, (int)&v22, 53, 1065353216, 0, v15);
cocos2d::CCArray::addObject(v4, v6);
std::string::~string((int)&v22);
std::string::~string((int)&v19);
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(&v19, "The Wraith", 0xAu);
v22 = 0;
v23 = 0;
v24 = 0;
std::string::__init(
&v22,
"I wasn't always like this, you know.\n"
"I used to be something, greater...",
0x73u);
LOWORD(v16) = -1;
BYTE2(v16) = -1;
v7 = (cocos2d::CCObject *)DialogObject::create((int)&v19, (int)&v22, 55, 1065353216, 0, v16);
cocos2d::CCArray::addObject(v4, v7);
std::string::~string((int)&v22);
std::string::~string((int)&v19);
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(&v19, "The Wraith", 0xAu);
v22 = 0;
v23 = 0;
v24 = 0;
std::string::__init(&v22, "Now instead, I get to listen to you.\nWhat a treat...", 0x48u);
LOWORD(v17) = -1;
BYTE2(v17) = -1;
v8 = (cocos2d::CCObject *)DialogObject::create((int)&v19, (int)&v22, 53, 1065353216, 0, v17);
cocos2d::CCArray::addObject(v4, v8);
std::string::~string((int)&v22);
std::string::~string((int)&v19);
v19 = 0;
v20 = 0;
v21 = 0;
std::string::__init(&v19, "The Wraith", 0xAu);
v22 = 0;
v23 = 0;
v24 = 0;
std::string::__init(&v22, "Go on, or don't.\nNot like I can stop you.", 0x45u);
LOWORD(v18) = -1;
BYTE2(v18) = -1;
v9 = (cocos2d::CCObject *)DialogObject::create((int)&v19, (int)&v22, 56, 1065353216, 0, v18);
cocos2d::CCArray::addObject(v4, v9);
std::string::~string((int)&v22);
std::string::~string((int)&v19);
v11 = DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)&byte_4, v10);
(*(void (__fastcall **)(SecretLayer5 *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v11, 100);
DialogLayer::updateChatPlacement(v11, 0);
DialogLayer::animateIn(v11, 2u);
v12 = *((_DWORD *)this + 89);
*((_BYTE *)this + 400) = 0;
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v12 + 500))(v12, 1);
}