//
// sub_100716520 from 0x100716520 to 0x100716598 (120 bytes)
//
// 2 xrefs:
// > sub_100718C74 @ 0x100718cc0
// > sub_10072F078 @ 0x10072f0f8
//
// 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:00 +0000
//
__int64 __fastcall sub_100716520(int *a1, __int64 a2)
{
__int64 v2; // x8
int v3; // w8
v2 = 0xFFFFFFFFLL;
if ( !a1 || !a2 )
return v2;
v3 = *a1;
if ( *a1 != *(_DWORD *)a2 )
return 0xFFFFFFFFLL;
switch ( v3 )
{
case 1:
return (unsigned int)(a1[2] - *(_DWORD *)(a2 + 8));
case 5:
return 0;
case 6:
return sub_1006B2170(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));
}
return sub_100721D20(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));
}