//
// FMOD::System::loadPlugin from 0xb7c08 to 0xb7c80 (120 bytes)
//
// 1 xrefs:
// > FMOD::System::loadPlugin @ 0xdfff8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:44 +0000
//
int __fastcall FMOD::System::loadPlugin(FMOD::System *this, const char *a2, char *a3, int a4)
{
int v8; // r5
_BYTE v10[256]; // [sp+8h] [bp-120h] BYREF
int v11; // [sp+108h] [bp-20h] BYREF
int v12; // [sp+10Ch] [bp-1Ch] BYREF
v11 = 0;
v8 = FMOD::SystemI::validate((int)this, &v12, &v11);
if ( v8 || (v8 = sub_587D0(v12, (int)a2, a3, a4)) != 0 )
{
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B7C88(v10, 256, a2, a3, a4);
sub_BAB40(v8, 1, this, "System::loadPlugin", v10);
}
}
else
{
v8 = 0;
}
sub_444C0(&v11);
return v8;
}