//
// SecretLayer5::showFirstDialog from 0x1000752dc to 0x100075584 (680 bytes)
//
// 1 xrefs:
// > SecretLayer5::init @ 0x100074b6c
//
// 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 __fastcall SecretLayer5::showFirstDialog(SecretLayer5 *a1)
{
GameManager *v2; // x0
__int64 v3; // x0
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
DialogLayer *v10; // x20
void *v11[2]; // [xsp+0h] [xbp-110h] BYREF
char v12; // [xsp+17h] [xbp-F9h]
void *v13[2]; // [xsp+18h] [xbp-F8h] BYREF
char v14; // [xsp+2Fh] [xbp-E1h]
void *v15[2]; // [xsp+30h] [xbp-E0h] BYREF
char v16; // [xsp+47h] [xbp-C9h]
void *v17[2]; // [xsp+48h] [xbp-C8h] BYREF
char v18; // [xsp+5Fh] [xbp-B1h]
void *__p[2]; // [xsp+60h] [xbp-B0h] BYREF
char v20; // [xsp+77h] [xbp-99h]
void *v21[2]; // [xsp+78h] [xbp-98h] BYREF
char v22; // [xsp+8Fh] [xbp-81h]
void *v23[2]; // [xsp+90h] [xbp-80h] BYREF
char v24; // [xsp+A7h] [xbp-69h]
void *v25[2]; // [xsp+A8h] [xbp-68h] BYREF
char v26; // [xsp+BFh] [xbp-51h]
void *v27[2]; // [xsp+C0h] [xbp-50h] BYREF
char v28; // [xsp+D7h] [xbp-39h]
void *v29[2]; // [xsp+D8h] [xbp-38h] BYREF
char v30; // [xsp+EFh] [xbp-21h]
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "38", 1);
v4 = (cocos2d::CCArray *)sub_10024A15C(v3);
sub_100009900(v29, "The Wraith");
sub_100009900(v27, "Great... Just what I needed.\nAnother visitor to my prison.");
v5 = DialogObject::create(v29, v27, 54, 1, 0xFFFFFF, 1.0);
sub_10024A2D0(v4, v5);
if ( v28 < 0 )
operator delete(v27[0]);
if ( v30 < 0 )
operator delete(v29[0]);
sub_100009900(v25, "The Wraith");
sub_100009900(v23, "Must be my lucky day... or yours.\nI don't really have days anymore.");
v6 = DialogObject::create(v25, v23, 53, 0, 0xFFFFFF, 1.0);
sub_10024A2D0(v4, v6);
if ( v24 < 0 )
operator delete(v23[0]);
if ( v26 < 0 )
operator delete(v25[0]);
sub_100009900(v21, "The Wraith");
sub_100009900(
__p,
"I wasn't always like this, you know.\n"
"I used to be something, greater...");
v7 = DialogObject::create(v21, __p, 55, 0, 0xFFFFFF, 1.0);
sub_10024A2D0(v4, v7);
if ( v20 < 0 )
operator delete(__p[0]);
if ( v22 < 0 )
operator delete(v21[0]);
sub_100009900(v17, "The Wraith");
sub_100009900(v15, "Now instead, I get to listen to you.\nWhat a treat...");
v8 = DialogObject::create(v17, v15, 53, 0, 0xFFFFFF, 1.0);
sub_10024A2D0(v4, v8);
if ( v16 < 0 )
operator delete(v15[0]);
if ( v18 < 0 )
operator delete(v17[0]);
sub_100009900(v13, "The Wraith");
sub_100009900(v11, "Go on, or don't.\nNot like I can stop you.");
v9 = DialogObject::create(v13, v11, 56, 0, 0xFFFFFF, 1.0);
sub_10024A2D0(v4, v9);
if ( v12 < 0 )
operator delete(v11[0]);
if ( v14 < 0 )
operator delete(v13[0]);
v10 = DialogLayer::createWithObjects(v4, 4);
((void (__fastcall *)(SecretLayer5 *, DialogLayer *, __int64))a1->addChild_0)(a1, v10, 100);
DialogLayer::updateChatPlacement(v10, Center);
DialogLayer::animateIn(v10, FromLeft);
a1->m_uiLocked = 0;
((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_textInput->setTouchEnabled)(a1->m_textInput, 1);
}