//
// UIPOptionsLayer::onClose from 0x5d3fa0 to 0x5d3fe8 (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:07 +0000
//
int __fastcall UIPOptionsLayer::onClose(UIPOptionsLayer *this, cocos2d::CCObject *a2)
{
int v4; // r6
int v5; // r0
GameManager *v6; // r0
GameManager *v7; // r0
int v8; // r0
v4 = GameManager::sharedState(this);
v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 179) + 96))(*((_DWORD *)this + 179));
v6 = (GameManager *)cocos2d::CCPoint::operator=(v4 + 1308, v5);
v7 = (GameManager *)GameManager::sharedState(v6);
if ( *((_DWORD *)v7 + 101) )
{
v8 = GameManager::sharedState(v7);
UILayer::updateCheckState(*(cocos2d::CCArray ***)(*(_DWORD *)(v8 + 404) + 11240));
}
return SetupTriggerPopup::onClose(this, a2);
}