//
// sub_10005CB50 from 0x10005cb50 to 0x10005cba8 (88 bytes)
//
// 3 xrefs:
// > LevelSearchLayer::keyBackClicked @ 0x10005d9b8
// > sub_10005D9BC @ 0x10005d9c0
// > LevelSearchLayer::init @ 0x10005b49c
//
// 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 10:57:48 +0000
//
__int64 __fastcall sub_10005CB50(_QWORD **a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 result; // x0
v2 = (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1[55] + 1160LL))(a1[55], 0);
v3 = GameManager::sharedState(v2);
result = GameManager::safePopScene(v3);
if ( (_DWORD)result )
return ((__int64 (__fastcall *)(_QWORD **, _QWORD))(*a1)[134])(a1, 0);
return result;
}