//
// sub_52A1A from 0x52a1a to 0x52a42 (40 bytes)
//
// 0 xrefs:
//
// 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_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;
}