//
// GJPathPage::onBack from 0xa6d9b4 to 0xa6da3c (136 bytes)
//
// 5 xrefs:
// > GJPathPage::keyBackClicked @ 0xa6da40
// > GJPathPage::unlockAnimationFinished @ 0xa71100
// > ??> @ 0x2cfd0
// > GJPathPage::init @ 0xa6f818
// > ??> @ 0x12294d0
//
// 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 GJPathPage::onBack(GJPathPage *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
if ( !a1->m_animationPlaying )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = v3->getTouchDispatcher(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
GJPathsLayer::darkenButtons(a1->m_pathsLayer, 0);
}
}