//
// sub_BBCAA from 0xbbcaa to 0xbbcd2 (40 bytes)
//
// 1 xrefs:
// > sub_8496C @ 0x849ca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:46 +0000
//
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;
}