//
// StartPosBrowser::onClose from 0x7d50e0 to 0x7d515c (124 bytes)
//
// 5 xrefs:
// > StartPosBrowser::keyBackClicked @ 0x7d5160
// > StartPosBrowser::cellPerformedAction @ 0x7d5340
// > ??> @ 0xa7860
// > StartPosBrowser::init @ 0x7d6f9c
// > ??> @ 0x1544b60
//
// 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:54:20 +0000
//
__int64 __fastcall StartPosBrowser::onClose(StartPosBrowser *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
v3 = *((cocos2d::CCDirector **)this + 86);
if ( v3 )
{
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)this + 86));
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 536LL))(*((_QWORD *)this + 86));
*((_QWORD *)this + 86) = 0;
}
(*(void (__fastcall **)(StartPosBrowser *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(StartPosBrowser *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}