//
// UIPOptionsLayer::onClose from 0xa1eb2c to 0xa1eba0 (116 bytes)
//
// 2 xrefs:
// > ??> @ 0xab4d8
// > ??> @ 0x1485ae8
//
// 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:59:39 +0000
//
__int64 __fastcall UIPOptionsLayer::onClose(UIPOptionsLayer *this, cocos2d::CCObject *a2)
{
__int64 v4; // x21
__int64 v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
__int64 v8; // x0
v4 = GameManager::sharedState(this);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 127) + 192LL))(*((_QWORD *)this + 127));
cocos2d::CCPoint::operator=(v4 + 1704, v5);
v7 = *(GameManager **)(GameManager::sharedState(v6) + 544);
if ( v7 )
{
v8 = GameManager::sharedState(v7);
UILayer::updateCheckState(*(UILayer **)(*(_QWORD *)(v8 + 544) + 13288LL));
}
return SetupTriggerPopup::onClose(this, a2);
}