//
// sub_1002FA758 from 0x1002fa758 to 0x1002fa78c (52 bytes)
//
// 4 xrefs:
// > sub_100040DF8 @ 0x100040e14
// > EditorUI::canSelectObject @ 0x1001a5c14
// > EditorUI::selectObjects @ 0x1001a5e08
// > sub_1004030CC @ 0x1004031c0
//
// 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:03:01 +0000
//
bool __fastcall sub_1002FA758(__int64 a1, int a2)
{
__int64 v2; // x8
bool v3; // cc
__int64 v4; // x8
__int16 *v5; // x9
int v6; // t1
_BOOL8 result; // x0
v2 = *(__int16 *)(a1 + 1168);
v3 = v2 < 1;
v4 = v2 - 1;
if ( v3 )
return 0;
v5 = *(__int16 **)(a1 + 1160);
do
{
v6 = *v5++;
result = v6 == a2;
}
while ( v6 != a2 && v4-- != 0 );
return result;
}