//
// sub_A37C0 from 0xa37c0 to 0xa3804 (68 bytes)
//
// 1 xrefs:
// > sub_61B58 @ 0x61d58
//
// 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_A37C0(_DWORD *a1, int a2)
{
int v3; // r5
int v4; // r0
int result; // r0
if ( a2 == -1 )
v3 = 0;
else
v3 = sub_A2DBC(a1[32] + 71948, a2);
v4 = a1[100];
if ( v3 == v4 )
return 0;
if ( (!v4 || (result = sub_A2ED6(v4, (int)a1)) == 0) && (!v3 || (result = sub_A2EB4(v3, a1)) == 0) )
{
a1[100] = v3;
return 0;
}
return result;
}