//
// sub_1005F03B8 from 0x1005f03b8 to 0x1005f0430 (120 bytes)
//
// 2 xrefs:
// > sub_1005F2B0C @ 0x1005f2b58
// > sub_100608F10 @ 0x100608f90
//
// 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_1005F03B8(int *a1, __int64 a2)
{
__int64 v2; // x8
int v3; // w8
v2 = 0xFFFFFFFFLL;
if ( !a1 || !a2 )
return v2;
v3 = *a1;
if ( *a1 != *(_DWORD *)a2 )
return 0xFFFFFFFFLL;
switch ( v3 )
{
case 1:
return (unsigned int)(a1[2] - *(_DWORD *)(a2 + 8));
case 5:
return 0;
case 6:
return sub_10058C008(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));
}
return sub_1005FBBB8(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));
}