//
// LevelSearchLayer::onBack from 0x14043a300 to 0x14043a373 (115 bytes)
//
// 3 xrefs:
// > LevelSearchLayer::keyBackClicked @ 0x14043b5b9
// > LevelSearchLayer::init @ 0x140435fb2
// > ??> @ 0x140926edc
//
// This function is hookable on this platform (idp: pc, 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:32:19 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall LevelSearchLayer::onBack(_QWORD **a1)
{
__int64 v2; // rcx
char result; // al
void *v4; // [rsp+30h] [rbp+8h]
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[55] + 1032LL))(a1[55], 0);
if ( !qword_14090BFD0 )
{
v4 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
result = GameManager::safePopScene(v2);
if ( result )
return ((__int64 (__fastcall *)(_QWORD **, _QWORD))(*a1)[124])(a1, 0);
return result;
}