//
// FMOD::Sound::set3DConeSettings from 0xb4f40 to 0xb4ff2 (178 bytes)
//
// 1 xrefs:
// > FMOD::Sound::set3DConeSettings @ 0xe0508
//
// 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:42 +0000
//
int __fastcall FMOD::Sound::set3DConeSettings(FMOD::Sound *this, float a2, float a3, float a4)
{
int v9; // r5
int v10; // r0
int v11; // r0
int v12; // r0
__int16 v14[128]; // [sp+8h] [bp-128h] BYREF
int v15; // [sp+108h] [bp-28h] BYREF
_DWORD *v16; // [sp+10Ch] [bp-24h] BYREF
v15 = 0;
v9 = sub_54E84((int)this, &v16, (int)&v15);
if ( !v9 )
{
v10 = v16[47];
__dmb(0xBu);
if ( !v10 || (v11 = v16[47], __dmb(0xBu), v11 == 7) || (v12 = v16[47], __dmb(0xBu), v12 == 5) )
{
v9 = (*(int (__fastcall **)(_DWORD *, _DWORD, _DWORD, _DWORD))(*v16 + 44))(
v16,
LODWORD(a2),
LODWORD(a3),
LODWORD(a4));
if ( !v9 )
{
v9 = 0;
goto LABEL_10;
}
}
else
{
v9 = 46;
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AF5F4(v14, 256, a2, a3, a4);
sub_BAB40(v9, 5, this, "Sound::set3DConeSettings", v14);
}
LABEL_10:
sub_6429C(&v15);
return v9;
}