//
// sub_10054FA30 from 0x10054fa30 to 0x10054fa88 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x10082d9e0
//
// 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_10054FA30(__int64 a1, _DWORD *a2, int a3)
{
__int64 result; // x0
int v5; // w9
result = 0;
if ( a3 && (*(_DWORD *)(*(_QWORD *)(a1 + 800) + 124LL) & 1) != 0 )
{
v5 = *(_DWORD *)(a1 + 528);
if ( v5 == 2 )
{
*a2 = *(_DWORD *)(a1 + 464);
return 1;
}
else if ( v5 == 3 )
{
*a2 = *(_DWORD *)(a1 + 464);
return 0x10000;
}
else
{
return 0;
}
}
return result;
}