//
// LevelEditorLayer::findGameObject from 0x460216 to 0x46024a (52 bytes)
//
// 1 xrefs:
// > EditorUI::findObject @ 0x6f4c1e
//
// 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:48:52 +0000
//
int __fastcall LevelEditorLayer::findGameObject(LevelEditorLayer *this, int a2)
{
int result; // r0
int *v3; // r3
int *v4; // r2
int *v5; // r3
int v6; // t1
result = *((_DWORD *)this + 522);
if ( result )
{
v3 = *(int **)(result + 52);
result = *v3;
if ( *v3 )
{
v4 = (int *)v3[3];
v5 = &v4[result - 1];
while ( v4 <= v5 )
{
v6 = *v4++;
result = v6;
if ( !v6 || *(_DWORD *)(result + 780) == a2 )
return result;
}
return 0;
}
}
return result;
}