//
// sub_BA8C68 from 0xba8c68 to 0xba8d34 (204 bytes)
//
// 1 xrefs:
// > sub_BA9C48 @ 0xba9c98
//
// 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
//
bool __fastcall sub_BA8C68(__int64 a1, char *a2, unsigned __int64 a3, _DWORD *a4)
{
_BOOL4 v4; // w19
int v5; // w4
__int64 v8; // x0
int v9; // w0
v4 = 0;
if ( a3 > 3
&& (unsigned int)(unsigned __int8)*a2 - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[1] - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[2] - 48 <= 9 )
{
v5 = (unsigned __int8)a2[3];
v4 = a3 == 5 || v5 == 32;
if ( v4 )
{
v8 = strtol(a2, nullptr, 10);
v9 = sub_BABA98(v8);
if ( v9 == 1 )
v9 = 0;
*a4 = v9;
}
else if ( v5 == 45 )
{
v4 = *(_DWORD *)(a1 + 1672) == 7 || *(_DWORD *)(a1 + 1672) == 2;
if ( v4 )
*a4 = 1;
}
}
return v4;
}