//
// sub_1004FAC3C from 0x1004fac3c to 0x1004fac9c (96 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned __int64 *__fastcall sub_1004FAC3C(
unsigned __int64 *result,
_DWORD *a2,
_DWORD *a3,
_DWORD *a4,
_DWORD *a5,
_BYTE *a6)
{
unsigned __int64 v6; // x8
v6 = *result;
if ( a2 )
*a2 = v6 >> 34;
if ( a3 )
*a3 = (v6 >> 2) & 0xFFFFFFE0;
if ( a6 )
*a6 = v6 & 1;
if ( a4 )
*a4 = dword_1006489E0[(v6 >> 5) & 3];
if ( a5 )
*a5 = dword_10064BC38[(v6 >> 1) & 0xF];
return result;
}