//
// LevelBrowserLayer::safeSearchObject from 0x7f5f54 to 0x7f600c (184 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::onSafeMode @ 0x7fc39c
// > DailyLevelPage::onTheSafe @ 0xa6cc94
// > ??> @ 0x6a930
//
// 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 12:54:38 +0000
//
__int64 __fastcall LevelBrowserLayer::safeSearchObject(int a1)
{
__int64 v1; // x0
__int64 result; // x0
if ( dword_1548024 == 2 )
{
if ( a1 == 1 )
{
v1 = 22;
}
else if ( a1 == 2 )
{
v1 = 23;
}
else
{
v1 = 21;
}
goto LABEL_10;
}
if ( a1 != 1 )
{
if ( a1 == 2 )
v1 = 34;
else
v1 = 32;
LABEL_10:
result = GJSearchObject::create(v1);
*(_BYTE *)(result + 404) = dword_1548024 == 1;
return result;
}
result = GJSearchObject::create(33);
*(_BYTE *)(result + 404) = dword_1548024 == 1;
return result;
}