//
// GJPathPage::onBack from 0x140396dc0 to 0x140396e5d (157 bytes)
//
// 4 xrefs:
// > GJPathPage::unlockAnimationFinished @ 0x140396cff
// > GJPathPage::keyBackClicked @ 0x140396e69
// > GJPathPage::init @ 0x1403938b4
// > ??> @ 0x140923114
//
// This function is hookable on this platform (idp: pc, 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 11:31:13 +0000
//
void __fastcall GJPathPage::onBack(__int64 a1)
{
__int64 v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
__int64 v4; // rdx
__int64 v5; // rax
__int16 v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+32h] [rbp+Ah]
if ( !*(_BYTE *)(a1 + 692) )
{
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (struct cocos2d::CCObject *)a1);
cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)a1);
cocos2d::CCNode::unscheduleAllSelectors((cocos2d::CCNode *)a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);
v6 = -1;
v5 = *(_QWORD *)(a1 + 680);
v7 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(v5 + 672) + 320LL))(*(_QWORD *)(v5 + 672) + 320LL, &v6);
}
}