//
// FMODAudioEngine::channelLinkSound from 0x6d4354 to 0x6d43d4 (128 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::playEffectAdvanced @ 0x6daae0
// > ??> @ 0xb4df0
//
// 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:51:29 +0000
//
__int64 *__fastcall FMODAudioEngine::channelLinkSound(__int64 a1, int a2, __int64 a3)
{
int v3; // w5
int v4; // w4
__int64 *result; // x0
int v7; // [xsp+1Ch] [xbp+1Ch] BYREF
v3 = *(_DWORD *)(a3 + 36);
v4 = dword_155C250;
v7 = a2;
*(_DWORD *)(a3 + 40) = dword_155C250;
*(_DWORD *)(a3 + 36) = v3 + 1;
dword_155C250 = v4 + 1;
result = (__int64 *)std::unordered_map::operator[](a1 + 1424, &v7);
if ( result != (__int64 *)(a3 + 8) )
{
if ( (*(_BYTE *)(a3 + 8) & 1) != 0 )
return std::string::assign(result, *(const void **)(a3 + 24), *(_QWORD *)(a3 + 16));
else
return std::string::assign(result, (const void *)(a3 + 9), *(_BYTE *)(a3 + 8) >> 1);
}
return result;
}