//
// OptionsScrollLayer::onClose from 0xb83748 to 0xb83804 (188 bytes)
//
// 4 xrefs:
// > OptionsScrollLayer::keyBackClicked @ 0xb83808
// > ??> @ 0x51bc8
// > OptionsScrollLayer::init @ 0xb88644
// > ??> @ 0x1541c08
//
// 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 13:02:29 +0000
//
__int64 __fastcall OptionsScrollLayer::onClose(OptionsScrollLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCDirector *v4; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
void (__fastcall ***v7)(_QWORD, OptionsScrollLayer *, __int64); // x0
v3 = *((_QWORD *)this + 87);
if ( v3 )
{
*(_QWORD *)(v3 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 87) + 1160LL))(*((_QWORD *)this + 87), 0);
}
v4 = *((cocos2d::CCDirector **)this + 85);
if ( v4 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *((cocos2d::CCObject **)this + 85));
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 85) + 536LL))(*((_QWORD *)this + 85));
*((_QWORD *)this + 85) = 0;
}
v7 = *((void (__fastcall ****)(_QWORD, OptionsScrollLayer *, __int64))this + 70);
if ( v7 )
(**v7)(v7, this, 1);
(*(void (__fastcall **)(OptionsScrollLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(OptionsScrollLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}