//
// sub_BAB830 from 0xbab830 to 0xbab894 (100 bytes)
//
// 2 xrefs:
// > sub_4DE34C @ 0x4de5ec
// > sub_B874D8 @ 0xb87518
//
// 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_BAB830(__int64 a1)
{
int v2; // w2
__int64 result; // x0
v2 = sub_B9FFC8(*(_DWORD *)(a1 + 608), -1, 0xFFFFFFFF, 0);
result = 0;
if ( v2 )
{
result = 1;
if ( (v2 & 4) == 0 && (v2 & 1) != 0 )
return (unsigned __int8)sub_B990EC(a1) ^ 1u;
}
return result;
}