//
// sub_5284E from 0x5284e to 0x5286a (28 bytes)
//
// 6 xrefs:
// > sub_522EC @ 0x5259c
// > sub_522EC @ 0x525a8
// > sub_6B376 @ 0x6b3ba
// > sub_6B444 @ 0x6b4fe
// > sub_6B614 @ 0x6b69a
// > sub_6B614 @ 0x6b6be
//
// 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_5284E(int *a1)
{
int v2; // r0
int result; // r0
v2 = *a1;
if ( !v2 )
return 0;
result = j_FMOD_OS_CriticalSection_Leave(v2);
if ( !result )
{
result = 0;
*a1 = 0;
}
return result;
}