//
// FMOD::System::createSound from 0xb93dc to 0xb9452 (118 bytes)
//
// 1 xrefs:
// > FMOD::System::createSound @ 0xe0248
//
// 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::createSound(int a1, const void *a2, int a3, size_t *a4, _DWORD *a5)
{
int v9; // r5
_BYTE v11[256]; // [sp+Ch] [bp-11Ch] BYREF
int v12; // [sp+10Ch] [bp-1Ch] BYREF
v9 = FMOD::SystemI::validate(a1, &v12, nullptr);
if ( !v9 )
{
v9 = sub_59F98(v12, a2, a3, a4, a5);
if ( !v9 )
return 0;
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B945C(v11, 256, a2, a3, a4, a5);
sub_BAB40(v9, 1, a1, "System::createSound", v11);
}
return v9;
}