//
// sub_52028 from 0x52028 to 0x52052 (42 bytes)
//
// 1 xrefs:
// > sub_51FB8 @ 0x51ffa
//
// 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_52028(int a1, int a2)
{
int result; // r0
if ( a2 )
*(_WORD *)(a1 + 46) = a2;
result = sub_BDCFC();
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Create(a1 + 32, 0);
if ( !result )
return sub_BFFC4(a1 + 36);
}
return result;
}