//
// LevelBrowserLayer::safeSearchObject from 0x4a4b78 to 0x4a4bbc (68 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::onSafeMode @ 0x4a8cb6
// > DailyLevelPage::onTheSafe @ 0x606cde
//
// 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
//
__int64 __fastcall LevelBrowserLayer::safeSearchObject(int a1)
{
int v1; // r0
__int64 result; // r0
if ( dword_D1E020 == 2 )
{
if ( a1 == 1 )
{
v1 = 22;
}
else if ( a1 == 2 )
{
v1 = 23;
}
else
{
v1 = 21;
}
}
else if ( a1 == 1 )
{
v1 = 33;
}
else if ( a1 == 2 )
{
v1 = 34;
}
else
{
v1 = 32;
}
result = GJSearchObject::create(v1);
*(_BYTE *)(result + 316) = dword_D1E020 == 1;
return result;
}