//
// sub_1800D0D00 from 0x1800d0d00 to 0x1800d0d91 (145 bytes)
//
// 4 xrefs:
// > sub_180020140 @ 0x180020d9a
// > sub_1800BE170 @ 0x1800be20b
// > sub_1800BEC70 @ 0x1800bed04
// > ??> @ 0x1801feacc
//
// 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_1800D0D00(__int64 a1, __int64 a2, __int64 a3, int a4)
{
void *v9; // rax
if ( a4 < 0 )
return 31;
if ( a4 )
{
v9 = sub_1800B6880(
*((_QWORD *)off_1801AED20 + 52),
(unsigned int)(8 * a4),
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_channelpool.cpp",
56,
0);
*(_QWORD *)(a1 + 24) = v9;
if ( !v9 )
return 38;
}
*(_DWORD *)a1 = a4;
*(_QWORD *)(a1 + 8) = a2;
*(_QWORD *)(a1 + 16) = a3;
return 0;
}