//
// CreatorLayer::dialogClosed from 0x1000dc6e0 to 0x1000dc768 (136 bytes)
//
// 2 xrefs:
// > sub_1000DC768 @ 0x1000dc76c
// > ??> @ 0x1008cf6d0
//
// 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 10:58:59 +0000
//
__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x19
__int64 v7; // x0
__int64 v8; // x1
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
return CreatorLayer::onAdventureMap();
if ( !(_DWORD)result )
{
v4 = GameManager::sharedState(result);
v5 = GameManager::setUGV(v4, "5", 1);
v6 = *(_QWORD *)(a1 + 432);
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoorBtn_open_001.png");
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v8);
}
return result;
}