//
// GJPathPage::onBack from 0x100300b40 to 0x100300bc9 (137 bytes)
//
// 1 xrefs:
// > GJPathPage::init @ 0x1002ff589
//
// 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 GJPathPage::onBack(GJPathPage *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rax
cocos2d::CCDirector *v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
GJPathsLayer *m_pathsLayer; // rax
int v7; // [rsp-14h] [rbp-14h] BYREF
if ( !a1->m_animationPlaying )
{
v7 = HIDWORD(v2);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v4->getTouchDispatcher)(
v4,
a2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
((void (__fastcall *)(GJPathPage *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(GJPathPage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
m_pathsLayer = a1->m_pathsLayer;
BYTE2(v7) = -1;
LOWORD(v7) = -1;
((void (__fastcall *)(cocos2d::CCSprite *, int *))m_pathsLayer->m_closeSprite->setColor)(
m_pathsLayer->m_closeSprite,
&v7);
}
}