//
// sub_1800E45F0 from 0x1800e45f0 to 0x1800e46a5 (181 bytes)
//
// 2 xrefs:
// > FMOD::System::getNumPlugins @ 0x1800ae1c9
// > ??> @ 0x1801ffbe8
//
// 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:17 +0000
//
__int64 __fastcall sub_1800E45F0(__int64 a1, int a2, _DWORD *a3)
{
__int64 result; // rax
int v7; // ebx
if ( !a3 )
return 31;
if ( *(_BYTE *)(a1 + 9) || (result = sub_1800E7B20(), !(_DWORD)result) )
{
if ( !a2 )
{
sub_1800D7D80(*(_QWORD *)(a1 + 69128), a3);
return 0;
}
v7 = a2 - 1;
if ( !v7 )
{
sub_1800D7CC0(*(_QWORD *)(a1 + 69128), a3);
return 0;
}
if ( v7 == 1 )
{
sub_1800D7CF0(*(_QWORD *)(a1 + 69128), a3);
return 0;
}
return 31;
}
return result;
}