//
// LevelAreaLayer::showDialog from 0x6a3c30 to 0x6a3d76 (326 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:56:29 +0000
//
unsigned int __fastcall LevelAreaLayer::showDialog(LevelAreaLayer *this)
{
GameManager *v2; // r0
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r9
cocos2d::CCObject *v5; // r0
cocos2d::CCObject *v6; // r0
int v7; // r2
cocos2d::CCLayerColor *v8; // r0
cocos2d::CCDirector *v9; // r4
int v10; // r0
int v12; // [sp+4h] [bp-24h]
int v13; // [sp+4h] [bp-24h]
int v14; // [sp+Ch] [bp-1Ch] BYREF
int v15; // [sp+10h] [bp-18h]
int v16; // [sp+14h] [bp-14h]
int v17; // [sp+18h] [bp-10h] BYREF
int v18; // [sp+1Ch] [bp-Ch]
int v19; // [sp+20h] [bp-8h]
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (cocos2d::CCArray *)GameManager::setUGV(v2, "29", (_BYTE *)&dword_0 + 1);
v14 = 0;
v15 = 0;
v16 = 0;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
std::string::__init(&v14, "Scratch", 7u);
v17 = 0;
v18 = 0;
v19 = 0;
std::string::__init(&v17, "Who left the lights on?", 0x1Fu);
LOWORD(v12) = -1;
BYTE2(v12) = -1;
v5 = (cocos2d::CCObject *)DialogObject::create((int)&v14, (int)&v17, 13, 1065353216, 0, v12);
cocos2d::CCArray::addObject(v4, v5);
std::string::~string((int)&v17);
std::string::~string((int)&v14);
v14 = 0;
v15 = 0;
v16 = 0;
std::string::__init(&v14, "Scratch", 7u);
v17 = 0;
v18 = 0;
v19 = 0;
std::string::__init(&v17, "I got a bad feeling about this...", 0x3Bu);
LOWORD(v13) = -1;
BYTE2(v13) = -1;
v6 = (cocos2d::CCObject *)DialogObject::create((int)&v14, (int)&v17, 11, 1065353216, 0, v13);
cocos2d::CCArray::addObject(v4, v6);
std::string::~string((int)&v17);
std::string::~string((int)&v14);
v8 = DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2), v7);
*((_DWORD *)v8 + 122) = (char *)this + 316;
v9 = v8;
v10 = cocos2d::CCDirector::sharedDirector(v8);
(*(void (__fastcall **)(_DWORD, cocos2d::CCDirector *, int))(**(_DWORD **)(v10 + 220) + 232))(
*(_DWORD *)(v10 + 220),
v9,
1000);
*((_DWORD *)v9 + 122) = (char *)this + 316;
DialogLayer::updateChatPlacement(v9, 0);
return DialogLayer::animateInRandomSide(v9);
}