//
// sub_180111FC0 from 0x180111fc0 to 0x1801120b9 (249 bytes)
//
// 5 xrefs:
// > sub_1800D9D70 @ 0x1800d9e31
// > sub_1800DA550 @ 0x1800da644
// > ??> @ 0x180190c9c
// > ??> @ 0x180190cac
// > ??> @ 0x180201bb0
//
// 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_180111FC0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
*(_QWORD *)(a1 + 32) = a2;
*(_QWORD *)(a1 + 24) = a3;
result = sub_1801120C0(a1 + 1240, 0x20000, 1);
if ( !(_DWORD)result )
{
result = sub_1801120C0(a1 + 1312, 0x20000, 4);
if ( !(_DWORD)result )
{
result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 40), 0);
if ( !(_DWORD)result )
{
result = sub_1801129D0(a1, 0, 0, 0xFFFFFFFFLL);
if ( !(_DWORD)result )
{
result = sub_1800B8690(a1 + 48, "FMOD profiler thread (recv)", (__int64)sub_1801128A0, a1, 7, 0, 0, 0, 0);
if ( !(_DWORD)result )
return sub_1800B8690(a1 + 384, "FMOD profiler thread (send)", (__int64)sub_180112D00, a1, 7, 0, 0, 0, 0);
}
}
}
}
return result;
}