//
// FMOD::Sound::get3DCustomRolloff from 0xd8b18 to 0xd8ba8 (144 bytes)
//
// 4 xrefs:
// > FMOD::Sound::get3DCustomRolloff @ 0x1071ec
// > ??> @ 0x3610
// > FMOD::Sound::get3DCustomRolloff @ 0x1071e4
// > ??> @ 0x1101b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:54 +0000
//
__int64 __fastcall FMOD::Sound::get3DCustomRolloff(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v3; // w22
__int64 v4; // x0
int v5; // w8
char v6; // zf
__int64 v7; // x0
__int64 v8; // x8
char v9; // w8
__int64 v10; // x0
__int64 v11; // x1
const void *v12; // x2
_DWORD *v13; // x3
__int64 v15; // [xsp+0h] [xbp-140h] BYREF
v3 = sub_DA444(a1, a2, a3);
if ( !v3 )
{
v4 = sub_DA368();
if ( !v5 || (v4 = sub_DA358(v4), v6) || (v4 = sub_DA410(v4), v6) )
{
v7 = sub_DA4F0(v4);
v3 = (*(__int64 (__fastcall **)(__int64))(v8 + 112))(v7);
if ( !v3 )
return v3;
}
else
{
v3 = 46;
}
}
sub_DA344();
if ( v9 < 0 )
{
v10 = sub_DA55C(&v15);
sub_D162C(v10, v11, v12, v13);
sub_DA398(v3, 5);
}
return v3;
}