//
// GJPathsLayer::onClose from 0x6d15b2 to 0x6d15ee (60 bytes)
//
// 2 xrefs:
// > GJPathsLayer::keyBackClicked @ 0x6d15f0
// > GJPathPage::unlockAnimationFinished @ 0x6d44d8
//
// 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:57:03 +0000
//
int __fastcall GJPathsLayer::onClose(GJPathsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
cocos2d::CCNode::stopAllActions(this);
cocos2d::CCNode::unscheduleAllSelectors(this);
(*(void (__fastcall **)(GJPathsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(GJPathsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}