//
// CreatorLayer::dialogClosed from 0x1401396c0 to 0x14013977f (191 bytes)
//
// 2 xrefs:
// > ??> @ 0x140737d90
// > ??> @ 0x140917210
//
// This function is hookable on this platform (idp: pc, 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 11:27:06 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // r8
__int64 v5; // rcx
__int64 v6; // rdi
__int64 v7; // rbx
cocos2d::CCSpriteFrameCache *v8; // rax
struct cocos2d::CCSpriteFrame *v9; // rax
void *v10; // [rsp+38h] [rbp+10h]
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( (_DWORD)result )
{
if ( (_DWORD)result == 1 )
return CreatorLayer::onAdventureMap(a1 - 416, 0);
}
else
{
v5 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v5 = qword_14090BFD0;
}
LOBYTE(v4) = 1;
GameManager::setUGV(v5, &word_14070D048, v4);
v6 = **(_QWORD **)(a1 + 16);
v7 = *(_QWORD *)(a1 + 16);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "secretDoorBtn_open_001.png");
return (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v6 + 1008))(v7, v9);
}
return result;
}