//
// GJPathPage::onBack from 0x6d1bf4 to 0x6d1c42 (78 bytes)
//
// 2 xrefs:
// > GJPathPage::keyBackClicked @ 0x6d1c44
// > GJPathPage::unlockAnimationFinished @ 0x6d44c6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:03 +0000
//
unsigned __int8 *__fastcall GJPathPage::onBack(unsigned __int8 *this, cocos2d::CCObject *a2)
{
GJPathsLayer **v2; // r4
int v3; // r5
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
v2 = (GJPathsLayer **)this;
v3 = *(this + 536);
if ( !*(this + 536) )
{
v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, (cocos2d::CCObject *)v2);
cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v2);
cocos2d::CCNode::unscheduleAllSelectors((cocos2d::CCNode *)v2);
(*((void (__fastcall **)(GJPathsLayer **, int))*v2 + 134))(v2, v3);
(*((void (__fastcall **)(GJPathsLayer **, int))*v2 + 66))(v2, 1);
return (unsigned __int8 *)GJPathsLayer::darkenButtons(v2[132], v3);
}
return this;
}