//
// sub_1800D45C0 from 0x1800d45c0 to 0x1800d4617 (87 bytes)
//
// 2 xrefs:
// > FMOD_System_Create @ 0x1800c6940
// > ??> @ 0x1801feda8
//
// This function is hookable on this platform (idp: pc, 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 10:54:10 +0000
//
__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;
}