//
// sub_1004FACC8 from 0x1004facc8 to 0x1004fad98 (208 bytes)
//
// 1 xrefs:
// > sub_1004FAFD4 @ 0x1004fb1dc
//
// 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_1004FACC8(__int64 a1, int8x8_t *a2, _DWORD *a3)
{
__int64 result; // x0
__int32 v6; // w8
unsigned int v7; // w8
result = sub_1004AA0BC(a1, a2, 1u, 60, nullptr);
if ( !(_DWORD)result )
{
if ( !(unsigned int)sub_1004C6FE8((__int64)a2, (__int64)"FSB4", 4) )
return 69;
if ( (unsigned int)sub_1004C6FE8((__int64)a2, (__int64)"FSB5", 4) )
return 19;
if ( a2->i32[1] == 1
&& ((*a3 = a2[1].i32[1] + a2[2].i32[0] + 60, v6 = a2[3].i32[0], v6 != 15) || a2[3].i32[1] == 1)
&& (a2[4].i8[0] & 2) == 0 )
{
v7 = v6 - 1;
if ( v7 > 0xF )
return 68;
else
return dword_10064BC70[v7];
}
else
{
return 69;
}
}
return result;
}