//
// sub_1006026BC from 0x1006026bc to 0x100602710 (84 bytes)
//
// 7 xrefs:
// > sub_1005834D0 @ 0x100585490
// > sub_1005F1C24 @ 0x1005f1e1c
// > sub_100607C2C @ 0x100607ef8
// > sub_100607C2C @ 0x100607f94
// > sub_100609ED8 @ 0x100609f60
// > sub_100609ED8 @ 0x100609fd8
// > sub_10060E818 @ 0x10060e894
//
// 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_1006026BC(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;
}