//
// sub_180109160 from 0x180109160 to 0x1801091e5 (133 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0818
// > ??> @ 0x1802016b8
//
// 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_180109160(__int64 a1)
{
_DWORD *v2; // rdx
__int64 result; // rax
v2 = (_DWORD *)qword_1801F24F0[*(int *)(a1 + 48)];
if ( v2 )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);
qword_1801F24F0[*(int *)(a1 + 48)] = 0;
}
if ( !--dword_1801F2538 )
{
result = FMOD_OS_CriticalSection_Free(lpCriticalSection, 0);
if ( (_DWORD)result )
return result;
lpCriticalSection = nullptr;
}
return 0;
}