//
// sub_BAB7C from 0xbab7c to 0xbab88 (12 bytes)
//
// 2 xrefs:
// > sub_B9360 @ 0xb95b8
// > sub_B9C2C @ 0xb9c84
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:14:40 +0000
//
__int64 sub_BAB7C()
{
int v0; // w9
unsigned int v1; // w8
__int64 v2; // x19
__int64 result; // x0
int v4; // w1
result = *(unsigned int *)(v2 + 716);
v4 = *(_DWORD *)(v2 + 644);
if ( v4 == 5 )
{
v0 = (*(_DWORD *)(v2 + 716) >> 1) & 8 | *(_DWORD *)(v2 + 716) & 7;
v1 = ((unsigned int)result >> 1) & 0x10;
}
else
{
if ( v4 != 4 )
return result;
v0 = (*(_DWORD *)(v2 + 716) >> 2) & 4 | *(_DWORD *)(v2 + 716) & 3;
v1 = ((unsigned int)result >> 2) & 8;
}
return v0 | v1;
}