//
// FMODAudioEngine::channelIDForUniqueID from 0x10013bbd8 to 0x10013bc38 (96 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::playEffectAdvanced @ 0x10013a7fc
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x10020334c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall FMODAudioEngine::channelIDForUniqueID(FMODAudioEngine *a1, int a2)
{
__int64 *v3; // x0
int v5; // [xsp+0h] [xbp-20h] BYREF
int *v6; // [xsp+8h] [xbp-18h] BYREF
v5 = a2;
v3 = sub_100018814(&a1->m_effectIDToChannelID.__table_.__bucket_list_.__ptr_.__value_, &v5);
if ( v3 )
{
v6 = &v5;
LODWORD(v3) = *((_DWORD *)sub_10001D150(
(unsigned __int64)&a1->m_effectIDToChannelID,
&v5,
(__int64)&unk_100637FD3,
&v6)
+ 5);
}
return (int)v3;
}