//
// FMOD::System::init from 0xb862c to 0xb8698 (108 bytes)
//
// 1 xrefs:
// > FMOD::System::init @ 0xe00d8
//
// 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::init(FMOD::System *this, int a2, unsigned int a3, int a4)
{
int v8; // r5
_BYTE v10[256]; // [sp+4h] [bp-11Ch] BYREF
int v11; // [sp+104h] [bp-1Ch] BYREF
v8 = FMOD::SystemI::validate((int)this, &v11, nullptr);
if ( !v8 )
{
v8 = sub_58CA8(v11, a2, a3, a4);
if ( !v8 )
return 0;
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B86A0(v10, 256, a2, a3, a4);
sub_BAB40(v8, 1, this, "System::init", v10);
}
return v8;
}