//
// sub_1800E2E00 from 0x1800e2e00 to 0x1800e2e93 (147 bytes)
//
// 2 xrefs:
// > FMOD::System::createDSPByPlugin @ 0x1800abfa9
// > ??> @ 0x1801ffa38
//
// 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:16 +0000
//
__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;
}