//
// FMODAudioEngine::countActiveMusic from 0x3e87a0 to 0x3e8804 (100 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::countActiveEffects @ 0x3e880e
// > PlayLayer::updateInfoLabel @ 0x409bec
//
// 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:47:06 +0000
//
int __fastcall FMODAudioEngine::countActiveMusic(FMODAudioEngine *this)
{
int *v1; // r4
int v2; // r6
int v4; // [sp+4h] [bp-8h]
int v5[3]; // [sp+Ch] [bp+0h] BYREF
char v6; // [sp+18h] [bp+Ch]
char v7; // [sp+19h] [bp+Dh]
v1 = *((int **)this + 68);
v2 = 0;
while ( v1 )
{
v4 = v1[3];
std::string::basic_string(v5, (int)(v1 + 5));
v6 = *((_BYTE *)v1 + 32);
v7 = *((_BYTE *)v1 + 33);
if ( v4 > 0 )
++v2;
std::string::~string((int)v5);
v1 = (int *)*v1;
}
return v2;
}