//
// sub_1005FB69C from 0x1005fb69c to 0x1005fb728 (140 bytes)
//
// 1 xrefs:
// > sub_1005465D8 @ 0x1005476a8
//
// 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_1005FB69C(__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;
}