//
// sub_180108D20 from 0x180108d20 to 0x180108da1 (129 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b0788
// > ??> @ 0x180201664
//
// 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:32 +0000
//
__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;
}