//
// sub_1800FC4F0 from 0x1800fc4f0 to 0x1800fc5ae (190 bytes)
//
// 6 xrefs:
// > sub_1800E4E00 @ 0x1800e5836
// > sub_1800E4E00 @ 0x1800e5865
// > sub_1800E4E00 @ 0x1800e5894
// > sub_1800E4E00 @ 0x1800e58c3
// > sub_1800FD770 @ 0x1800fdb78
// > ??> @ 0x180200e84
//
// 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_1800FC4F0(__int64 a1, int a2, __int64 a3, int a4, unsigned int a5)
{
__int64 v9; // rdi
__int64 *v10; // rax
__int64 *v11; // rbx
__int64 result; // rax
v9 = 8LL * a2;
if ( *(_QWORD *)(v9 + a1 + 67968) )
return 0;
v10 = (__int64 *)sub_1800B6880(
*((_QWORD *)off_1801AED20 + 52),
184,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_systemi_dsp.cpp",
618,
0);
v11 = v10;
if ( !v10 )
return 38;
sub_1800B63A0((__int64)(v10 + 6));
*v11 = a1;
result = sub_180055620(v11, a2, a3, a4, a5);
if ( !(_DWORD)result )
{
*(_QWORD *)(v9 + a1 + 67968) = v11;
return 0;
}
return result;
}