//
// FMODAudioEngine::countActiveMusic from 0x2fee8c to 0x2feeec (96 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::countActiveEffects @ 0x2feef6
// > PlayLayer::updateInfoLabel @ 0x31b72a
//
// 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 FMODAudioEngine::countActiveMusic(FMODAudioEngine *a1)
{
std::__detail::_Hash_node_base *M_nxt; // r4
int v2; // r6
int v4; // [sp+4h] [bp-8h]
_BYTE v5[8]; // [sp+Ch] [bp+0h] BYREF
M_nxt = a1->m_fmodMusic._M_h._M_before_begin._M_nxt;
v2 = 0;
while ( M_nxt )
{
v4 = (int)M_nxt[2]._M_nxt;
sub_775C20(v5, &M_nxt[4]);
v5[4] = M_nxt[5]._M_nxt;
v5[5] = BYTE1(M_nxt[5]._M_nxt);
if ( v4 > 0 )
++v2;
sub_774008(v5);
M_nxt = M_nxt->_M_nxt;
}
return v2;
}