//
// SecretLayer2::dialogClosed from 0x1403e45c0 to 0x1403e465a (154 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405d37c8
// > ??> @ 0x1406d7f4c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SecretLayer2::dialogClosed(SecretLayer2 *a1, DialogLayer *a2)
{
GameManager *v3; // rcx
__int64 *v4; // rbx
__int64 v5; // rdi
__int64 v6; // rcx
cocos2d::CCSpriteFrameCache *v7; // rax
struct cocos2d::CCSpriteFrame *v8; // rax
void *v9; // [rsp+30h] [rbp+8h]
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameManager::setUGV(v3, (const char *)&word_140531E94, 1);
v4 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_fSkewY + 936LL))(*(_QWORD *)&a1->m_fSkewY);
v5 = *v4;
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoor_open_001.png");
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v5 + 992))(v4, v8);
}