//
// sub_52A1A from 0x52a1a to 0x52a42 (40 bytes)
//
// 0 xrefs:
//
// 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_52A1A(int a1, int a2)
{
int v2; // r2
int v4; // r1
int result; // r0
v2 = *(_DWORD *)(a1 + 48);
if ( !v2 )
return 0;
v4 = sub_52A42(a2, v2, 0);
result = v4 - 45;
if ( v4 != 45 )
result = v4;
if ( !result )
{
*(_DWORD *)(a1 + 48) = 0;
return 0;
}
return result;
}