//
// sub_100728824 from 0x100728824 to 0x100728878 (84 bytes)
//
// 7 xrefs:
// > sub_1006A9638 @ 0x1006ab5f8
// > sub_100717D8C @ 0x100717f84
// > sub_10072DD94 @ 0x10072e060
// > sub_10072DD94 @ 0x10072e0fc
// > sub_100730040 @ 0x1007300c8
// > sub_100730040 @ 0x100730140
// > sub_100734980 @ 0x1007349fc
//
// 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_100728824(unsigned int **a1, int a2)
{
int v4; // w8
__int64 result; // x0
if ( !a1 )
return 0;
v4 = sub_100704BB4(*a1);
result = 0;
if ( (a2 & 0x80000000) == 0 && v4 > a2 )
return sub_100704BC8((__int64)*a1, a2);
return result;
}