//
// LevelBrowserLayer::safeSearchObject from 0x10049b7cc to 0x10049b838 (108 bytes)
//
// 1 xrefs:
// > sub_10024F768 @ 0x10024f784
//
// 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:59 +0000
//
char *__fastcall LevelBrowserLayer::safeSearchObject(int a1)
{
unsigned int v1; // w9
unsigned int v2; // w10
__int64 v3; // x0
char *result; // x0
if ( a1 == 2 )
v1 = 23;
else
v1 = 21;
if ( a1 == 2 )
v2 = 34;
else
v2 = 32;
if ( a1 == 1 )
{
v1 = 22;
v2 = 33;
}
if ( dword_1009D45D0 == 2 )
v3 = v1;
else
v3 = v2;
result = GJSearchObject::create_2(v3);
result[404] = dword_1009D45D0 == 1;
return result;
}