//
// sub_100602CF4 from 0x100602cf4 to 0x100602d88 (148 bytes)
//
// 2 xrefs:
// > sub_100602E20 @ 0x100602e28
// > sub_100602E50 @ 0x100602e58
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100602CF4(unsigned int *a1, unsigned int a2, int a3)
{
char **v5; // x21
__int64 v6; // x19
int v7; // w22
__int64 *v8; // x0
v5 = sub_10058AB9C(a2);
if ( !v5 )
return 4294967294LL;
if ( a1 )
{
if ( a3 + 1 >= 0 )
v6 = (unsigned int)(a3 + 1);
else
v6 = 0;
v7 = sub_1005DEA4C(a1);
while ( (int)v6 < v7 )
{
v8 = (__int64 *)sub_1005DEA60((__int64)a1, v6);
if ( !(unsigned int)sub_10058C008(*v8, (__int64)v5) )
return v6;
v6 = (unsigned int)(v6 + 1);
}
}
return 0xFFFFFFFFLL;
}