//
// sub_1003FB424 from 0x1003fb424 to 0x1003fb46c (72 bytes)
//
// 1 xrefs:
// > EditorUI::findObject @ 0x1001a6874
//
// 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:04:36 +0000
//
__int64 __fastcall sub_1003FB424(__int64 a1, int a2)
{
__int64 v2; // x8
unsigned int *v3; // x8
__int64 v4; // x9
__int64 *v5; // x8
unsigned __int64 v6; // x9
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 3280);
if ( !v2 )
return 0;
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( !(_DWORD)v4 )
return 0;
v5 = *((__int64 **)v3 + 2);
v6 = (unsigned __int64)&v5[v4 - 1];
while ( 1 )
{
result = *v5;
if ( !*v5 || *(_DWORD *)(result + 916) == a2 )
break;
if ( (unsigned __int64)++v5 > v6 )
return 0;
}
return result;
}