//
// sub_5361E from 0x5361e to 0x5363a (28 bytes)
//
// 1 xrefs:
// > sub_5357C @ 0x535aa
//
// 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_5361E(_DWORD *a1, int a2, int a3, int a4)
{
int v4; // r2
int result; // r0
v4 = a1[2];
if ( v4 < 0 )
v4 = -v4;
if ( v4 >= a2 )
return 0;
result = sub_53150(a1, a2, v4, a4);
if ( !result )
return 0;
return result;
}