//
// sub_1005F30B8 from 0x1005f30b8 to 0x1005f3134 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008621f0
//
// 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_1005F30B8(__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_1005AAC20(*a1);
v5 = (v4 & 7) == 0;
if ( a2 )
{
if ( (v4 & 7) == 0 )
*a2++ = 0;
sub_1005AB354(v3, a2);
}
v6 = sub_1005AAC20(v3);
v7 = v6 + 7;
if ( v6 + 7 < 0 )
v7 = v6 + 14;
return (unsigned int)(v5 + (v7 >> 3));
}