//
// LevelAreaInnerLayer::showFloor1CompleteDialog from 0xb5a7a4 to 0xb5ab84 (992 bytes)
//
// 3 xrefs:
// > ??> @ 0x755c8
// > LevelAreaInnerLayer::init @ 0xb5d280
// > ??> @ 0x1542f90
//
// 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:02:08 +0000
//
__int64 __fastcall LevelAreaInnerLayer::showFloor1CompleteDialog(LevelAreaInnerLayer *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::CCObject *v9; // x0
cocos2d::CCDirector *v10; // x19
__int64 v11; // x0
__int64 v13; // [xsp+58h] [xbp+58h] BYREF
__int64 v14; // [xsp+60h] [xbp+60h]
void *v15; // [xsp+68h] [xbp+68h]
__int64 v16; // [xsp+70h] [xbp+70h] BYREF
__int64 v17; // [xsp+78h] [xbp+78h]
void *v18; // [xsp+80h] [xbp+80h]
v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard);
v3 = (cocos2d::CCArray *)GameManager::setUGV(v2, "33", 1u);
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Scratch", 7u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Where have you been?!\nI've been looking everywhere for you!", 0x3Bu);
v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v13, (char *)&v16, 14, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v5);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v13 & 1) != 0 )
operator delete(v15);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Scratch", 7u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "You really shouldn't be poking around here.", 0x33u);
v6 = (cocos2d::CCObject *)DialogObject::create((char *)&v13, (char *)&v16, 11, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v6);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v13 & 1) != 0 )
operator delete(v15);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Scratch", 7u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Never know what you could find.\nOr who...", 0x49u);
v7 = (cocos2d::CCObject *)DialogObject::create((char *)&v13, (char *)&v16, 13, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v7);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v13 & 1) != 0 )
operator delete(v15);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Scratch", 7u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "... I thought this was a simple cube game.", 0x52u);
v8 = (cocos2d::CCObject *)DialogObject::create((char *)&v13, (char *)&v16, 26, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v8);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v13 & 1) != 0 )
operator delete(v15);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Scratch", 7u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "...", 0xFu);
v9 = (cocos2d::CCObject *)DialogObject::create((char *)&v13, (char *)&v16, 8, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v4, v9);
if ( (v16 & 1) != 0 )
operator delete(v18);
if ( (v13 & 1) != 0 )
operator delete(v15);
v10 = (cocos2d::CCDirector *)DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2));
v11 = cocos2d::CCDirector::sharedDirector(v10);
(*(void (__fastcall **)(_QWORD, cocos2d::CCDirector *, __int64))(**(_QWORD **)(v11 + 272) + 464LL))(
*(_QWORD *)(v11 + 272),
v10,
1000);
*((_QWORD *)v10 + 78) = (char *)this + 408;
DialogLayer::updateChatPlacement((__int64)v10, 0);
DialogLayer::animateInRandomSide(v10);
return _stack_chk_guard;
}