//
// sub_AF46C from 0xaf46c to 0xaf4a0 (52 bytes)
//
// 3 xrefs:
// > FMOD::ChannelControl::set3DMinMaxDistance @ 0xaf438
// > FMOD::ChannelControl::set3DOcclusion @ 0xaf9f0
// > FMOD::Sound::set3DMinMaxDistance @ 0xb4e78
//
// 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:40 +0000
//
int __fastcall sub_AF46C(__int16 *a1, int a2, float a3, float a4)
{
int v7; // r4
int v8; // r4
v7 = sub_5C934(a1, a2, a3);
v8 = v7 + sub_5C990((_BYTE *)a1 + v7, a2 - v7, ", ");
return sub_5C934((__int16 *)((char *)a1 + v8), a2 - v8, a4) + v8;
}