//
// sub_BBCAA from 0xbbcaa to 0xbbcd2 (40 bytes)
//
// 1 xrefs:
// > sub_8496C @ 0x849ca
//
// 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
//
int __fastcall sub_BBCAA(_DWORD *a1, int a2)
{
int v2; // r2
int v3; // r3
v2 = a1[4];
v3 = a1[86];
a1[86] = a2;
if ( v2 == -1 )
return 0;
a1[4] = v3 - a2 + v2;
if ( (unsigned int)(v2 + v3) <= a1[5] )
return 0;
else
return 28;
}