//
// SecretLayer2::dialogClosed from 0x1004a0c40 to 0x1004a0ca1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x100945aa8
//
// 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 __fastcall SecretLayer2::dialogClosed(SecretLayer2 *a1, DialogLayer *a2)
{
GameManager *v2; // rax
__int64 v3; // rbx
cocos2d::CCSpriteFrameCache *v4; // rax
cocos2d::CCSpriteFrame *v5; // rax
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "4", 1);
v3 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_secretDoorButton->getNormalImage)(a1->m_secretDoorButton);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "secretDoor_open_001.png");
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v3 + 1144LL))(v3, v5);
}