//
// sub_6CBA8 from 0x6cba8 to 0x6cbd0 (40 bytes)
//
// 1 xrefs:
// > sub_6CB72 @ 0x6cb84
//
// 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:40:58 +0000
//
int __fastcall sub_6CBA8(int a1, int a2)
{
int v3; // r0
int v4; // r0
int v5; // r2
void *v6; // r3
int result; // r0
v3 = *(_DWORD *)(a1 + 8);
if ( v3 < 0 )
v3 = -v3;
if ( v3 >= a2 )
return 0;
v4 = sub_6CBD0(a1);
result = sub_6C8C2(a1, v4, v5, v6);
if ( !result )
return 0;
return result;
}