//
// sub_100721804 from 0x100721804 to 0x100721890 (140 bytes)
//
// 1 xrefs:
// > sub_10066C740 @ 0x10066d810
//
// 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:05 +0000
//
__int64 __fastcall sub_100721804(__int64 a1)
{
int v1; // w8
__int64 v2; // x9
_BYTE *v3; // x9
int v4; // w9
__int64 v5; // x9
v1 = *(_DWORD *)(a1 + 16);
if ( v1 == 33 && !*(_DWORD *)(a1 + 8) )
{
v2 = *(_QWORD *)(a1 + 32);
if ( v2 >= 1 )
{
if ( v2 < 2 || (v3 = *(_BYTE **)a1, **(_BYTE **)a1) || v3[1] )
{
v4 = 63;
goto LABEL_15;
}
*(_QWORD *)a1 = v3 + 2;
}
}
v5 = *(_QWORD *)(a1 + 32);
if ( !v5 )
return 1;
if ( (v1 & 1) != 0 && (v5 & 0x8000000000000000LL) == 0 )
return 1;
v4 = 62;
LABEL_15:
*(_DWORD *)(a1 + 12) = v4;
return 0;
}