//
// sub_BAE9D0 from 0xbae9d0 to 0xbae9f0 (32 bytes)
//
// 5 xrefs:
// > sub_BA67C0 @ 0xba6a90
// > sub_BA67C0 @ 0xba6c38
// > sub_BA7D5C @ 0xba7d84
// > sub_BA92E0 @ 0xba98c4
// > sub_BA92E0 @ 0xba9c0c
//
// 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_BAE9D0(__int64 a1, __int64 a2)
{
LODWORD(a2) = *(unsigned __int8 *)(a2 + 960);
if ( !(_DWORD)a2 )
return ((unsigned __int64)(unsigned int)(*(_DWORD *)(a1 + 12) & *(_DWORD *)(a1 + 16)) >> 5) & 1;
return (unsigned int)a2;
}