//
// sub_52E86 from 0x52e86 to 0x52eac (38 bytes)
//
// 2 xrefs:
// > sub_529EC @ 0x529f4
// > sub_52A58 @ 0x52a9e
//
// 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_52E86(int a1, int a2)
{
int v3; // r0
int result; // r0
v3 = *(_DWORD *)(a1 + 8);
if ( v3 < 0 )
v3 = -v3;
if ( v3 >= a2 || (result = sub_5336A(a1, a2)) == 0 )
{
*(_DWORD *)(a1 + 4) = a2;
return 0;
}
return result;
}