//
// sub_1801128D0 from 0x1801128d0 to 0x18011295e (142 bytes)
//
// 4 xrefs:
// > sub_1800D9EB0 @ 0x1800da021
// > sub_1800DA320 @ 0x1800da38f
// > sub_1800DA550 @ 0x1800da8f3
// > ??> @ 0x180201c4c
//
// 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:36 +0000
//
__int64 __fastcall sub_1801128D0(__int64 a1)
{
__int64 result; // rax
result = sub_1801122A0(a1);
if ( !(_DWORD)result )
{
result = sub_1800B8560(a1 + 48);
if ( !(_DWORD)result )
{
result = sub_1800B8560(a1 + 384);
if ( !(_DWORD)result )
{
result = FMOD_OS_CriticalSection_Free(*(LPCRITICAL_SECTION *)(a1 + 40), 0);
if ( !(_DWORD)result )
{
result = sub_180112960(a1 + 1240);
if ( !(_DWORD)result )
{
result = sub_180112960(a1 + 1312);
if ( !(_DWORD)result )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)a1);
return 0;
}
}
}
}
}
}
return result;
}