//
// GJPathPage::keyBackClicked from 0x100302a70 to 0x100302af9 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090acf0
//
// 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::keyBackClicked(GJPathPage *a1)
{
__int64 v1; // rax
cocos2d::CCDirector *v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
GJPathsLayer *m_pathsLayer; // rax
int v6; // [rsp-14h] [rbp-14h] BYREF
if ( !a1->m_animationPlaying )
{
v6 = HIDWORD(v1);
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 *)(GJPathPage *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(GJPathPage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
m_pathsLayer = a1->m_pathsLayer;
BYTE2(v6) = -1;
LOWORD(v6) = -1;
((void (__fastcall *)(cocos2d::CCSprite *, int *))m_pathsLayer->m_closeSprite->setColor)(
m_pathsLayer->m_closeSprite,
&v6);
}
}