//
// sub_180102340 from 0x180102340 to 0x1801023a4 (100 bytes)
//
// 9 xrefs:
// > sub_18000EBC0 @ 0x18000ec12
// > sub_1800107D0 @ 0x1800109e5
// > sub_1800107D0 @ 0x180010d80
// > sub_180096C50 @ 0x180096c9a
// > sub_180098710 @ 0x18009878c
// > sub_1800BCE10 @ 0x1800bd197
// > sub_1800C7270 @ 0x1800c7688
// > ??> @ 0x180201250
// > ??> @ 0x18020125c
//
// 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_180102340(__int64 a1)
{
__int64 v2; // r8
__int64 result; // rax
if ( !*(_QWORD *)(a1 + 69528) )
return 0;
v2 = *(_QWORD *)(a1 + 70432);
if ( !v2 )
return 28;
*(_QWORD *)(a1 + 70432) = 0;
*(_BYTE *)(a1 + 70440) = 0;
result = sub_1800E2320(a1, 0x100004u, v2, 0);
if ( !(_DWORD)result )
{
result = FMOD_OS_CriticalSection_Leave(*(struct _RTL_CRITICAL_SECTION **)(a1 + 69528));
if ( !(_DWORD)result )
return 0;
}
return result;
}