//
// LevelBrowserLayer::safeSearchObject from 0x1403eaf40 to 0x1403eaf9d (93 bytes)
//
// 2 xrefs:
// > DailyLevelPage::onTheSafe @ 0x140172ac0
// > ??> @ 0x140925160
//
// 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:31:45 +0000
//
__int64 __fastcall LevelBrowserLayer::safeSearchObject(int a1)
{
int v2; // ecx
int v3; // edx
__int64 result; // rax
if ( dword_1408FE4A4 == 2 )
{
if ( a1 == 1 )
{
v2 = 22;
goto LABEL_10;
}
v2 = 21;
v3 = 23;
}
else
{
if ( a1 == 1 )
{
v2 = 33;
goto LABEL_10;
}
v2 = 32;
v3 = 34;
}
if ( a1 == 2 )
v2 = v3;
LABEL_10:
result = GJSearchObject::create_2(v2);
*(_BYTE *)(result + 436) = dword_1408FE4A4 == 1;
return result;
}