//
// sub_53292 from 0x53292 to 0x532b8 (38 bytes)
//
// 5 xrefs:
// > sub_53278 @ 0x53280
// > sub_5357C @ 0x535b6
// > sub_6CAB4 @ 0x6caee
// > sub_6CCEA @ 0x6cd24
// > sub_A3148 @ 0xa3182
//
// 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_53292(int a1, int a2)
{
int v3; // r0
int result; // r0
v3 = *(_DWORD *)(a1 + 8);
if ( v3 < 0 )
v3 = -v3;
if ( v3 >= a2 || (result = sub_532D6(a1, a2)) == 0 )
{
*(_DWORD *)(a1 + 4) = a2;
return 0;
}
return result;
}