//
// LeaderboardsLayer::onBack from 0x100513680 to 0x1005136c6 (70 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::init @ 0x100512b60
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LeaderboardsLayer::onBack(LeaderboardsLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
GameManager *v4; // rax
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v2->getTouchDispatcher)(
v2,
a2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
((void (__fastcall *)(LeaderboardsLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v4 = GameManager::sharedState();
GameManager::safePopScene(v4);
}