//
// sub_6CD8C from 0x6cd8c to 0x6cda8 (28 bytes)
//
// 1 xrefs:
// > sub_6CCEA @ 0x6cd18
//
// 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_6CD8C(int a1, int a2, int a3, void *a4)
{
int v4; // r2
int result; // r0
v4 = *(_DWORD *)(a1 + 8);
if ( v4 < 0 )
v4 = -v4;
if ( v4 >= a2 )
return 0;
result = sub_6C7A6(a1, a2, v4, a4);
if ( !result )
return 0;
return result;
}