//
// GJPathPage::onBack from 0x140288fa0 to 0x14028903e (158 bytes)
//
// 4 xrefs:
// > GJPathPage::unlockAnimationFinished @ 0x140288edc
// > GJPathPage::keyBackClicked @ 0x140289049
// > GJPathPage::init @ 0x140285b7c
// > ??> @ 0x1406d15ec
//
// 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)
{
__int64 v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
_BOOL8 v5; // rdx
GJPathsLayer *m_pathsLayer; // rcx
__int16 v7; // [rsp+30h] [rbp+8h] BYREF
char v8; // [rsp+32h] [rbp+Ah]
if ( !a1->m_animationPlaying )
{
v3 = cocos2d::CCDirector::sharedDirector(a1);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
m_pathsLayer = a1->m_pathsLayer;
v7 = -1;
v8 = -1;
m_pathsLayer->m_closeSprite->setColor(
&m_pathsLayer->m_closeSprite->cocos2d::CCRGBAProtocol,
(const cocos2d::ccColor3B *)&v7);
}
}