//
// GJPathPage::onBack from 0xba426c to 0xba42f4 (136 bytes)
//
// 5 xrefs:
// > GJPathPage::keyBackClicked @ 0xba42f8
// > GJPathPage::unlockAnimationFinished @ 0xba8244
// > ??> @ 0x43e40
// > GJPathPage::init @ 0xba6548
// > ??> @ 0x15413b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:48 +0000
//
GJPathsLayer **__fastcall GJPathPage::onBack(GJPathsLayer **this, cocos2d::CCObject *a2)
{
GJPathsLayer **v2; // x19
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
if ( !*((_BYTE *)this + 692) )
{
v2 = this;
v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)v2);
cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v2);
cocos2d::CCNode::unscheduleAllSelectors((cocos2d::CCNode *)v2);
(*((void (__fastcall **)(GJPathsLayer **, _QWORD))*v2 + 134))(v2, 0);
(*((void (__fastcall **)(GJPathsLayer **, __int64))*v2 + 66))(v2, 1);
return (GJPathsLayer **)GJPathsLayer::darkenButtons(v2[85], 0);
}
return this;
}