//
// sub_100728E5C from 0x100728e5c to 0x100728ef0 (148 bytes)
//
// 2 xrefs:
// > sub_100728F88 @ 0x100728f90
// > sub_100728FB8 @ 0x100728fc0
//
// 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:13:09 +0000
//
__int64 __fastcall sub_100728E5C(unsigned int *a1, unsigned int a2, int a3)
{
char **v5; // x21
__int64 v6; // x19
int v7; // w22
__int64 *v8; // x0
v5 = sub_1006B0D04(a2);
if ( !v5 )
return 4294967294LL;
if ( a1 )
{
if ( a3 + 1 >= 0 )
v6 = (unsigned int)(a3 + 1);
else
v6 = 0;
v7 = sub_100704BB4(a1);
while ( (int)v6 < v7 )
{
v8 = (__int64 *)sub_100704BC8((__int64)a1, v6);
if ( !(unsigned int)sub_1006B2170(*v8, (__int64)v5) )
return v6;
v6 = (unsigned int)(v6 + 1);
}
}
return 0xFFFFFFFFLL;
}