//
// SecretLayer5::showFirstDialog from 0x59c0f4 to 0x59c318 (548 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SecretLayer5::showFirstDialog(SecretLayer5 *a1)
{
GameManager *v2; // r0
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r8
cocos2d::CCObject *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // r0
DialogLayer *v10; // r4
CCTextInputNode *m_textInput; // r0
int v12; // [sp+4h] [bp-20h]
int v13; // [sp+4h] [bp-20h]
int v14; // [sp+4h] [bp-20h]
int v15; // [sp+4h] [bp-20h]
int v16; // [sp+4h] [bp-20h]
char v17; // [sp+14h] [bp-10h] BYREF
_BYTE v18[4]; // [sp+18h] [bp-Ch] BYREF
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "38", 1);
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
sub_776584((int)&v17, "The Wraith");
sub_776584((int)v18, "Great... Just what I needed.\nAnother visitor to my prison.");
LOWORD(v12) = -1;
BYTE2(v12) = -1;
v5 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v17,
(std::string)v18,
(std::string)54,
1065353216,
COERCE_FLOAT(1),
v12);
cocos2d::CCArray::addObject(v4, v5);
sub_774008(v18);
sub_774008(&v17);
sub_776584((int)&v17, "The Wraith");
sub_776584(
(int)v18,
"Must be my lucky day... or yours.\nI don't really have days anymore.");
LOWORD(v13) = -1;
BYTE2(v13) = -1;
v6 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v17,
(std::string)v18,
(std::string)53,
1065353216,
0.0,
v13);
cocos2d::CCArray::addObject(v4, v6);
sub_774008(v18);
sub_774008(&v17);
sub_776584((int)&v17, "The Wraith");
sub_776584(
(int)v18,
"I wasn't always like this, you know.\n"
"I used to be something, greater...");
LOWORD(v14) = -1;
BYTE2(v14) = -1;
v7 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v17,
(std::string)v18,
(std::string)55,
1065353216,
0.0,
v14);
cocos2d::CCArray::addObject(v4, v7);
sub_774008(v18);
sub_774008(&v17);
sub_776584((int)&v17, "The Wraith");
sub_776584((int)v18, "Now instead, I get to listen to you.\nWhat a treat...");
LOWORD(v15) = -1;
BYTE2(v15) = -1;
v8 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v17,
(std::string)v18,
(std::string)53,
1065353216,
0.0,
v15);
cocos2d::CCArray::addObject(v4, v8);
sub_774008(v18);
sub_774008(&v17);
sub_776584((int)&v17, "The Wraith");
sub_776584((int)v18, "Go on, or don't.\nNot like I can stop you.");
LOWORD(v16) = -1;
BYTE2(v16) = -1;
v9 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v17,
(std::string)v18,
(std::string)56,
1065353216,
0.0,
v16);
cocos2d::CCArray::addObject(v4, v9);
sub_774008(v18);
sub_774008(&v17);
v10 = DialogLayer::createWithObjects(v4, (int)byte_4);
a1->addChild_0(a1, v10, 100);
DialogLayer::updateChatPlacement(v10, Center);
DialogLayer::animateIn(v10, FromLeft);
m_textInput = a1->m_textInput;
a1->m_uiLocked = 0;
m_textInput->setTouchEnabled(m_textInput, 1);
}