//
// sub_100715A80 from 0x100715a80 to 0x100715acc (76 bytes)
//
// 5 xrefs:
// > sub_10071A6D0 @ 0x10071a798
// > sub_10071A6D0 @ 0x10071a84c
// > sub_100728004 @ 0x1007286e8
// > sub_100728004 @ 0x1007286fc
// > sub_100733288 @ 0x1007332d8
//
// 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:12:59 +0000
//
__int64 __fastcall sub_100715A80(__int64 a1, __int64 a2)
{
unsigned int v2; // w19
__int64 result; // x0
v2 = *(_DWORD *)(a1 + 4) & 0x100;
if ( v2 != (*(_DWORD *)(a2 + 4) & 0x100) )
return ((v2 >> 7) ^ 2) - 1;
LODWORD(result) = sub_100721D20();
if ( v2 )
return (unsigned int)-(int)result;
else
return (unsigned int)result;
}