//
// sub_100719220 from 0x100719220 to 0x10071929c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ea310
//
// 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:01 +0000
//
__int64 __fastcall sub_100719220(__int64 *a1, _BYTE *a2)
{
__int64 v3; // x19
char v4; // w0
_BOOL4 v5; // w21
int v6; // w0
int v7; // w8
v3 = *a1;
if ( !*a1 )
return 0xFFFFFFFFLL;
v4 = sub_1006D0D88(*a1);
v5 = (v4 & 7) == 0;
if ( a2 )
{
if ( (v4 & 7) == 0 )
*a2++ = 0;
sub_1006D14BC(v3, a2);
}
v6 = sub_1006D0D88(v3);
v7 = v6 + 7;
if ( v6 + 7 < 0 )
v7 = v6 + 14;
return (unsigned int)(v5 + (v7 >> 3));
}