//
// sub_1003F5FBC from 0x1003f5fbc to 0x1003f603c (128 bytes)
//
// 1 xrefs:
// > sub_100400CC4 @ 0x100400e6c
//
// 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:33 +0000
//
__int64 __fastcall sub_1003F5FBC(int a1, int a2, _QWORD *a3)
{
__int64 v3; // x21
int v6; // w8
__int64 v7; // x22
int v9; // [xsp+Ch] [xbp-24h] BYREF
if ( a1 <= 1 )
v3 = 1;
else
v3 = (unsigned int)a1;
v9 = v3;
if ( (int)v3 <= a2 && sub_100019268(a3, &v9) )
{
do
{
v6 = v9;
v7 = (unsigned int)++v9;
if ( v6 >= a2 )
break;
v3 = v7;
}
while ( sub_100019268(a3, &v9) );
}
return v3;
}