//
// LevelEditorLayer::findGameObject from 0x1000b1930 to 0x1000b1980 (80 bytes)
//
// 1 xrefs:
// > EditorUI::findObject @ 0x1005b9730
//
// 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 12:20:20 +0000
//
__int64 __fastcall LevelEditorLayer::findGameObject(__int64 a1, int a2)
{
__int64 v2; // rax
unsigned int *v3; // rax
__int64 *v4; // rcx
unsigned __int64 v5; // rdx
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 3280);
if ( !v2 )
return 0;
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((__int64 **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
result = *v4;
if ( !*v4 )
break;
if ( *(_DWORD *)(result + 916) == a2 )
return result;
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
return 0;
}