//
// LevelBrowserLayer::onBack from 0x4a4d1a to 0x4a4d40 (38 bytes)
//
// 1 xrefs:
// > LevelListLayer::onBack @ 0x6d8278
//
// 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:49:53 +0000
//
int __fastcall LevelBrowserLayer::onBack(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
if ( *((_BYTE *)this + 548) )
return LevelBrowserLayer::exitLayer(this, nullptr);
v3 = (GameManager *)(*(int (__fastcall **)(LevelBrowserLayer *))(*(_DWORD *)this + 536))(this);
v4 = (GameManager *)GameManager::sharedState(v3);
return GameManager::safePopScene(v4);
}