//
// GJPathsLayer::onClose from 0x1003b841c to 0x1003b8484 (104 bytes)
//
// 4 xrefs:
// > GJPathsLayer::keyBackClicked @ 0x1003b8818
// > sub_1003B881C @ 0x1003b8820
// > GJPathPage::unlockAnimationFinished @ 0x1003bae84
// > GJPathsLayer::init @ 0x1003b810c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJPathsLayer::onClose(GJPathsLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
((void (__fastcall *)(GJPathsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(GJPathsLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}