//
// LevelPage::dialogClosed from 0x8c69d4 to 0x8c6a88 (180 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelPage::dialogClosed @ 0x8c6a8c
// > ??> @ 0xe3d70
// > ??> @ 0x145d300
//
// 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 12:56:34 +0000
//
__int64 __fastcall LevelPage::dialogClosed(LevelPage *this, DialogLayer *a2)
{
GameManager *v3; // x0
__int64 result; // x0
GameManager *v5; // x0
cocos2d::CCSpriteFrameCache **v6; // x19
__int64 (__fastcall *v7)(cocos2d::CCSpriteFrameCache **, __int64); // x20
cocos2d::CCSpriteFrameCache *v8; // x0
__int64 v9; // x0
v3 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v3 == 2 )
{
v5 = (GameManager *)GameManager::sharedState(v3);
result = GameManager::setUGV(v5, "8", 1u);
v6 = *((cocos2d::CCSpriteFrameCache ***)this + 71);
if ( v6 )
{
v7 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v6 + 145);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v6);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "secretDoorBtn2_open_001.png");
return v7(v6, v9);
}
}
else
{
result = (*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
return LevelPage::onTheTower(this, nullptr);
}
return result;
}