//
// sub_180108D20 from 0x180108d20 to 0x180108da1 (129 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0788
// > ??> @ 0x180201664
//
// 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_180108D20(__int64 *a1)
{
__int64 v1; // rbx
struct _RTL_CRITICAL_SECTION *v2; // rdi
unsigned int v3; // ebx
v1 = *a1;
if ( *(_DWORD *)(*a1 + 552) == 1 )
{
v2 = lpCriticalSection;
FMOD_OS_CriticalSection_Enter(lpCriticalSection);
v3 = sub_180109C70(qword_1801F24F0[*(int *)(v1 + 224)] + 112LL * *(int *)(v1 + 748), v1 + 568, 0xFFFFFFFFLL);
if ( v3 )
{
FMOD_OS_CriticalSection_Leave(v2);
return v3;
}
FMOD_OS_CriticalSection_Leave(v2);
}
return 0;
}