//
// sub_1800D2630 from 0x1800d2630 to 0x1800d26a9 (121 bytes)
//
// 2 xrefs:
// > sub_1800E5B50 @ 0x1800e5c0d
// > ??> @ 0x1801fec64
//
// 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_1800D2630(__int64 a1, __int64 a2, int a3)
{
int v3; // esi
struct _RTL_CRITICAL_SECTION *v5; // rdi
unsigned int v6; // ebx
int v8; // [rsp+50h] [rbp+18h] BYREF
v8 = a3;
v3 = a1;
v5 = *(struct _RTL_CRITICAL_SECTION **)(*(_QWORD *)(a1 + 24) + 400LL);
FMOD_OS_CriticalSection_Enter(v5);
if ( a2 )
v6 = sub_1800D2D70(v3, a2, (unsigned int)&v8, 0, 1, (__int64)&sub_1800D26B0);
else
v6 = 31;
FMOD_OS_CriticalSection_Leave(v5);
return v6;
}