//
// SecretLayer2::dialogClosed from 0x14057a090 to 0x14057a12d (157 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407df9b0
// > ??> @ 0x14092c858
//
// 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:34:24 +0000
//
__int64 __fastcall SecretLayer2::dialogClosed(__int64 a1)
{
__int64 v2; // rcx
__int64 *v3; // rdi
__int64 v4; // rbx
__int64 v5; // rdx
__int64 v6; // rcx
cocos2d::CCSpriteFrameCache *v7; // rax
struct cocos2d::CCSpriteFrame *v8; // rax
void *v10; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameManager::setUGV(v2, &word_14070D04C, 1u);
v3 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 88) + 952LL))(*(_QWORD *)(a1 + 88));
v4 = *v3;
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoor_open_001.png");
return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v8);
}