//
// sub_5BA3A from 0x5ba3a to 0x5ba68 (46 bytes)
//
// 1 xrefs:
// > sub_5B9F2 @ 0x5ba0e
//
// 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_5BA3A(int a1, int *a2)
{
int v3; // r0
int v4; // r1
if ( (unsigned int)(4 * a1 - 1) >= 0x3FFFFFFF )
{
v3 = *a2;
}
else
{
v3 = sub_53244(4 * a1);
*a2 = v3;
}
v4 = 0;
if ( !v3 )
return 38;
return v4;
}