//
// sub_100602D88 from 0x100602d88 to 0x100602ddc (84 bytes)
//
// 2 xrefs:
// > sub_100602E2C @ 0x100602e34
// > sub_100602E5C @ 0x100602e64
//
// 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_100602D88(unsigned int *a1, int a2)
{
int v4; // w8
__int64 result; // x0
if ( !a1 )
return 0;
v4 = sub_1005DEA4C(a1);
result = 0;
if ( (a2 & 0x80000000) == 0 && v4 > a2 )
return sub_1005DEA60((__int64)a1, a2);
return result;
}