//
// FMOD::System::setSpeakerPosition from 0xb87c0 to 0xb8852 (146 bytes)
//
// 1 xrefs:
// > FMOD::System::setSpeakerPosition @ 0xe0108
//
// 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::setSpeakerPosition(int a1, int a2, float a3, float a4, int a5)
{
int v10; // r5
_BYTE v12[256]; // [sp+8h] [bp-128h] BYREF
int v13; // [sp+108h] [bp-28h] BYREF
int v14; // [sp+10Ch] [bp-24h] BYREF
v13 = 0;
v10 = FMOD::SystemI::validate(a1, &v14, &v13);
if ( v10 || (v10 = sub_59604(v14, a2, a3, a4, a5)) != 0 )
{
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B885C(v12, 256, a2, LODWORD(a3), LODWORD(a4), a5);
sub_BAB40(v10, 1, a1, "System::setSpeakerPosition", v12);
}
}
else
{
v10 = 0;
}
sub_444C0(&v13);
return v10;
}