//
// sub_BBF0C from 0xbbf0c to 0xbbf30 (36 bytes)
//
// 0 xrefs:
//
// 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_BBF0C(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // r3
unsigned int v4; // r2
v3 = a1[105];
v4 = a3 + v3;
if ( v4 > a1[5] )
return 16;
*a2 = v3 + a1[106];
a1[105] = v4;
return 0;
}