//
// 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!
//
// 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_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;
}