//
// sub_A31EA from 0xa31ea to 0xa3206 (28 bytes)
//
// 1 xrefs:
// > sub_A3148 @ 0xa3176
//
// 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:34 +0000
//
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;
}