//
// sub_C94BE from 0xc94be to 0xc94d8 (26 bytes)
//
// 2 xrefs:
// > sub_CDC64 @ 0xcdcdc
// > sub_CE264 @ 0xce34e
//
// 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:54 +0000
//
int __fastcall sub_C94BE(int a1, int a2)
{
int v2; // r2
int v3; // r1
v2 = *(_DWORD *)(a1 + 4);
if ( v2 < 0 )
return -1;
v3 = a2 + *(_DWORD *)(a1 + 8);
if ( v3 > v2 )
return -1;
*(_DWORD *)(a1 + 8) = v3;
return 0;
}