//
// sub_A31EA from 0xa31ea to 0xa3206 (28 bytes)
//
// 1 xrefs:
// > sub_A3148 @ 0xa3176
//
// 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_A31EA(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_5BB78(a1, a2, v4, a4);
if ( !result )
return 0;
return result;
}