//
// sub_1005F8B30 from 0x1005f8b30 to 0x1005f8ba8 (120 bytes)
//
// 2 xrefs:
// > sub_1005F5624 @ 0x1005f56e0
// > sub_1005F5BBC @ 0x1005f5c38
//
// 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_1005F8B30(_QWORD *a1, __int64 a2, unsigned __int8 *a3)
{
int v3; // w8
__int64 v5; // x8
_DWORD *v7; // x0
v3 = *a3;
if ( v3 != 1 && v3 != 6 )
return 0;
v5 = *((_QWORD *)a3 + 4);
if ( !v5 )
return 0;
if ( (*(_BYTE *)(v5 + 8) & 1) == 0 )
return 0;
v7 = (_DWORD *)(*a1 + *(int *)(v5 + 12));
if ( (_DWORD)a2 )
return sub_100588508(v7, a2, *(unsigned int *)(v5 + 16), (__int64)"tasn_utl.c", 118);
*v7 = 1;
return 1;
}