//
// OptionsScrollLayer::onClose from 0x6bd194 to 0x6bd206 (114 bytes)
//
// 1 xrefs:
// > OptionsScrollLayer::keyBackClicked @ 0x6bd208
//
// 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:56:47 +0000
//
int __fastcall OptionsScrollLayer::onClose(OptionsScrollLayer *this, cocos2d::CCObject *a2)
{
OptionsScrollLayer *v2; // r4
int v3; // r3
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
void (__fastcall ***v6)(_DWORD, OptionsScrollLayer *, int); // r0
v2 = this;
v3 = *((_DWORD *)this + 134);
if ( v3 )
{
*(_DWORD *)(v3 + 420) = 0;
this = (OptionsScrollLayer *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 580))(*((_DWORD *)this + 134));
}
if ( *((_DWORD *)v2 + 132) )
{
v4 = cocos2d::CCDirector::sharedDirector(this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *((cocos2d::CCObject **)v2 + 132));
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 132) + 268))(*((_DWORD *)v2 + 132));
*((_DWORD *)v2 + 132) = 0;
}
v6 = *((void (__fastcall ****)(_DWORD, OptionsScrollLayer *, int))v2 + 112);
if ( v6 )
(**v6)(v6, v2, 1);
(*(void (__fastcall **)(OptionsScrollLayer *, _DWORD))(*(_DWORD *)v2 + 536))(v2, 0);
return (*(int (__fastcall **)(OptionsScrollLayer *, int))(*(_DWORD *)v2 + 264))(v2, 1);
}