//
// GJPathPage::onBack from 0x58c20c to 0x58c25a (78 bytes)
//
// 2 xrefs:
// > GJPathPage::keyBackClicked @ 0x58c25c
// > GJPathPage::unlockAnimationFinished @ 0x58e2d6
//
// 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)
{
_BOOL4 m_animationPlaying; // r5
cocos2d::CCDirector *v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
m_animationPlaying = a1->m_animationPlaying;
if ( !a1->m_animationPlaying )
{
v4 = cocos2d::CCDirector::sharedDirector();
v5 = v4->getTouchDispatcher(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
a1->setKeypadEnabled(a1, m_animationPlaying);
a1->removeFromParentAndCleanup(a1, 1);
GJPathsLayer::darkenButtons(a1->m_pathsLayer, m_animationPlaying);
}
}