//
// LevelPage::dialogClosed from 0x10048634c to 0x1004863f4 (168 bytes)
//
// 2 xrefs:
// > sub_1004863F4 @ 0x1004863f8
// > ??> @ 0x10096f1d0
//
// 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 11:05:49 +0000
//
void __fastcall LevelPage::dialogClosed(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x0
__int64 v7; // x1
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
v4 = GameManager::sharedState();
GameManager::setUGV(v4, "8", 1);
v5 = *(_QWORD *)(a1 + 568);
if ( v5 )
{
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, "secretDoorBtn2_open_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v7);
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
LevelPage::onTheTower(a1);
}
}