//
// LevelBrowserLayer::onBack from 0x10049a3b8 to 0x10049a3ec (52 bytes)
//
// 2 xrefs:
// > LevelListLayer::onBack @ 0x1002e39a4
// > ??> @ 0x10097bbe8
//
// 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 11:05:58 +0000
//
__int64 __fastcall LevelBrowserLayer::onBack(_BYTE *a1)
{
if ( a1[748] == 1 )
return LevelBrowserLayer::exitLayer();
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
GameManager::sharedState();
return GameManager::safePopScene();
}