//
// LeaderboardsLayer::onBack from 0x94e030 to 0x94e07c (76 bytes)
//
// 4 xrefs:
// > LeaderboardsLayer::keyBackClicked @ 0x94e080
// > ??> @ 0x73f00
// > LeaderboardsLayer::init @ 0x94f88c
// > ??> @ 0x1542ea8
//
// 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 12:57:21 +0000
//
__int64 __fastcall LeaderboardsLayer::onBack(LeaderboardsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
v5 = (GameManager *)(*(__int64 (__fastcall **)(LeaderboardsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
v6 = (GameManager *)GameManager::sharedState(v5);
return GameManager::safePopScene(v6);
}