//
// LeaderboardsLayer::onBack from 0x562f8e to 0x562fba (44 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::keyBackClicked @ 0x562fbc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:26 +0000
//
int __fastcall LeaderboardsLayer::onBack(LeaderboardsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
GameManager *v5; // r0
GameManager *v6; // r0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
v5 = (GameManager *)(*(int (__fastcall **)(LeaderboardsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v6 = (GameManager *)GameManager::sharedState(v5);
return GameManager::safePopScene(v6);
}