//
// sub_1800E2E00 from 0x1800e2e00 to 0x1800e2e93 (147 bytes)
//
// 2 xrefs:
// > FMOD::System::createDSPByPlugin @ 0x1800abfa9
// > ??> @ 0x1801ffa38
//
// 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_1800E2E00(__int64 a1, int a2, __int64 *a3)
{
__int64 result; // rax
__int128 *v6; // [rsp+30h] [rbp+8h] BYREF
v6 = nullptr;
if ( !*(_QWORD *)(a1 + 69128) )
return 67;
if ( !a3 )
return 31;
*a3 = 0;
result = sub_1800D7B90(*(_QWORD *)(a1 + 69128), a2, &v6);
if ( !(_DWORD)result )
{
result = sub_1800D7620(*(_QWORD *)(a1 + 69128), v6, 0, a3);
if ( !(_DWORD)result )
{
_InterlockedOr((volatile signed __int32 *)(*a3 + 100), 4u);
++*((_DWORD *)v6 + 17);
return 0;
}
}
return result;
}