//
// LeaderboardsLayer::onBack from 0x1403dd380 to 0x1403dd3f4 (116 bytes)
//
// 3 xrefs:
// > LeaderboardsLayer::keyBackClicked @ 0x1403dd409
// > LeaderboardsLayer::init @ 0x1403db718
// > ??> @ 0x140924d04
//
// 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:39 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall LeaderboardsLayer::onBack(struct cocos2d::CCObject *a1)
{
__int64 v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
__int64 v4; // rcx
void *v6; // [rsp+30h] [rbp+8h]
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
return GameManager::safePopScene(v4);
}