//
// GJPathsLayer::onClose from 0xba3a20 to 0xba3a8c (108 bytes)
//
// 5 xrefs:
// > GJPathsLayer::keyBackClicked @ 0xba3a90
// > GJPathPage::unlockAnimationFinished @ 0xba8258
// > ??> @ 0x57f40
// > GJPathsLayer::init @ 0xba5da8
// > ??> @ 0x1542030
//
// 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:48 +0000
//
__int64 __fastcall GJPathsLayer::onClose(GJPathsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
cocos2d::CCNode::stopAllActions(this);
cocos2d::CCNode::unscheduleAllSelectors(this);
(*(void (__fastcall **)(GJPathsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(GJPathsLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}