//
// sub_1800D45C0 from 0x1800d45c0 to 0x1800d4617 (87 bytes)
//
// 2 xrefs:
// > FMOD_System_Create @ 0x1800c6940
// > ??> @ 0x1801feda8
//
// 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
//
__int64 __fastcall sub_1800D45C0(__int64 a1)
{
__int64 result; // rax
if ( *(_DWORD *)a1
|| (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 288), 0), !(_DWORD)result)
&& (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 280), 0), !(_DWORD)result)
&& (result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 296), 0), !(_DWORD)result)
&& (result = sub_1800C0FD0(), !(_DWORD)result) )
{
++*(_DWORD *)a1;
return 0;
}
return result;
}