//
// sub_5D2B8 from 0x5d2b8 to 0x5d30c (84 bytes)
//
// 1 xrefs:
// > sub_70480 @ 0x7048c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:13:52 +0000
//
void __fastcall sub_5D2B8(__int64 a1, __int64 a2)
{
if ( !*(_BYTE *)(a1 + 408) )
{
*(_QWORD *)a1 = a2;
if ( !(unsigned int)FMOD_OS_CriticalSection_Create(a1 + 400, 0) && !(unsigned int)sub_5CCF8(a1 + 16, a1) )
*(_BYTE *)(a1 + 408) = 1;
}
JUMPOUT(0x5D4B0);
}