//
// sub_673C8 from 0x673c8 to 0x67478 (176 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::setMaxAudibleBehavior @ 0xda818
//
// 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
//
__int64 __fastcall sub_673C8(__int64 a1, unsigned int a2)
{
_QWORD *v5; // x9
_QWORD *v6; // x21
int v7; // w8
_QWORD *v12; // x0
_QWORD *v13; // x22
int v14; // w23
bool v15; // cc
if ( a2 > 2 )
JUMPOUT(0x677A0);
if ( a2 != 1 && *(_DWORD *)(a1 + 108) == 1 )
{
v6 = (_QWORD *)(a1 + 64);
v5 = *(_QWORD **)(a1 + 64);
v7 = 0;
__asm { FMOV V8.2S, #1.0 }
while ( v5 != v6 )
{
v12 = (_QWORD *)v5[2];
v13 = (_QWORD *)*v5;
v14 = v7 + 1;
v12[67] = _D8;
v15 = v7 < *(_DWORD *)(a1 + 104);
v5 = v13;
++v7;
if ( !v15 )
{
(*(void (__fastcall **)(_QWORD *))(*v12 + 8LL))(v12);
v5 = v13;
v7 = v14;
}
}
}
*(_DWORD *)(a1 + 108) = a2;
return 0;
}