//
// sub_52028 from 0x52028 to 0x52052 (42 bytes)
//
// 1 xrefs:
// > sub_51FB8 @ 0x51ffa
//
// 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_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;
}