//
// FMOD_OS_CriticalSection_IsLocked from 0x1800c0c70 to 0x1800c0cb1 (65 bytes)
//
// 2 xrefs:
// > ??> @ 0x180194348
// > ??> @ 0x1801fdb0c
//
// 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:03 +0000
//
__int64 __fastcall FMOD_OS_CriticalSection_IsLocked(__int64 a1, bool *a2)
{
*a2 = *(_DWORD *)(a1 + 8) != -1 && GetCurrentThreadId() == *(_DWORD *)(a1 + 16);
return 0;
}