//
// GJPathPage::keyBackClicked from 0x1002ed750 to 0x1002ed7d9 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b12590
//
// 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 12:28:24 +0000
//
__int64 __fastcall GJPathPage::keyBackClicked(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
int v7; // [rsp-14h] [rbp-14h] BYREF
if ( !*(_BYTE *)(a1 + 692) )
{
v7 = HIDWORD(result);
v4 = cocos2d::CCDirector::sharedDirector(a1, a2);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);
cocos2d::CCNode::stopAllActions(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
v6 = *(_QWORD *)(a1 + 680);
BYTE2(v7) = -1;
LOWORD(v7) = -1;
return (*(__int64 (__fastcall **)(_QWORD, int *))(**(_QWORD **)(v6 + 672) + 960LL))(*(_QWORD *)(v6 + 672), &v7);
}
return result;
}