//
// StartPosBrowser::onClose from 0x48e99e to 0x48e9e8 (74 bytes)
//
// 2 xrefs:
// > StartPosBrowser::keyBackClicked @ 0x48e9ea
// > StartPosBrowser::cellPerformedAction @ 0x48eb24
//
// 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:49:35 +0000
//
int __fastcall StartPosBrowser::onClose(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
if ( *(this + 133) )
{
v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(this + 133));
(*(void (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 133) + 268))(*(this + 133));
*(this + 133) = nullptr;
}
(*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*this + 134))(this, 0);
return (*((int (__fastcall **)(cocos2d::CCObject **, int))*this + 66))(this, 1);
}