//
// sub_530F6 from 0x530f6 to 0x53132 (60 bytes)
//
// 1 xrefs:
// > sub_530DC @ 0x530e4
//
// 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:40:44 +0000
//
int __fastcall sub_530F6(_DWORD *a1, int a2)
{
int v3; // r0
int result; // r0
int v6; // r0
v3 = a1[2];
if ( v3 < 0 )
v3 = -v3;
if ( v3 >= a2 || (result = sub_53150(a1, a2)) == 0 )
{
v6 = a1[1];
if ( v6 < a2 )
sub_53196(*a1 + 12 * v6, a2 - v6);
a1[1] = a2;
return 0;
}
return result;
}