//
// sub_1800DDAC0 from 0x1800ddac0 to 0x1800ddb44 (132 bytes)
//
// 4 xrefs:
// > FMOD::SoundGroup::getNumPlaying @ 0x1800aa920
// > sub_1800E6060 @ 0x1800e60fe
// > sub_180102CA0 @ 0x180102ffa
// > ??> @ 0x1801ff654
//
// This function is hookable on this platform (idp: pc, 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 10:54:14 +0000
//
__int64 __fastcall sub_1800DDAC0(__int64 a1, _DWORD *a2)
{
_QWORD *v5; // rax
if ( !a2 )
return 31;
FMOD_OS_CriticalSection_Enter(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));
v5 = *(_QWORD **)(a1 + 40);
for ( *a2 = 0; v5 != (_QWORD *)(a1 + 40); v5 = (_QWORD *)*v5 )
*a2 += *(_DWORD *)(v5[2] + 312LL);
FMOD_OS_CriticalSection_Leave(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));
return 0;
}