//
// sub_1005714B0 from 0x1005714b0 to 0x100571570 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x10082e488
//
// 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_1005714B0(__int64 *a1)
{
__int64 v1; // x19
__int64 result; // x0
int v3; // w8
v1 = a1[167];
if ( (unsigned int)sub_10054A19C(a1) )
return 42;
if ( !v1 )
return 0;
v3 = *(_DWORD *)(v1 + 8);
if ( v3 < 0 )
{
if ( v3 != -100 )
{
if ( v3 == -99 )
return 28;
if ( v3 == -98 )
return 7;
return 42;
}
return 0;
}
result = 68;
switch ( v3 )
{
case 0:
case 4:
result = 71;
break;
case 1:
return result;
case 2:
result = 69;
break;
case 3:
result = 70;
break;
case 5:
result = 72;
break;
case 6:
result = 73;
break;
case 7:
result = 74;
break;
default:
return 42;
}
return result;
}