//
// sub_6772C from 0x6772c to 0x67780 (84 bytes)
//
// 3 xrefs:
// > sub_6E15C @ 0x6e1e8
// > sub_7C6A8 @ 0x7c73c
// > FMOD::SoundGroup::getNumPlaying @ 0xdabd0
//
// 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:13:56 +0000
//
__int64 __fastcall sub_6772C(__int64 a1, __int64 a2)
{
_DWORD *v2; // x19
__int64 v3; // x20
__int64 v4; // x0
_QWORD *v5; // x9
_QWORD *v6; // x20
_QWORD *v7; // t1
int v8; // w8
if ( !a2 )
JUMPOUT(0x677A0);
v4 = sub_677A8();
v7 = *(_QWORD **)(v3 + 40);
v6 = (_QWORD *)(v3 + 40);
v5 = v7;
v8 = 0;
*v2 = 0;
while ( v5 != v6 )
{
v8 += *(_DWORD *)(v5[2] + 312LL);
*v2 = v8;
v5 = (_QWORD *)*v5;
}
sub_677C8(v4);
return 0;
}