//
// sub_671BC from 0x671bc to 0x672f4 (312 bytes)
//
// 2 xrefs:
// > sub_6FC80 @ 0x6fca4
// > FMOD::SoundGroup::release @ 0xda6c0
//
// 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_671BC(__int64 a1)
{
__int64 v1; // x8
_QWORD *v3; // x20
_QWORD *v4; // x21
__int64 v10; // x22
_QWORD *v11; // x23
_QWORD *v12; // x9
__int64 v14; // x0
__int64 i; // x21
__int64 v16; // x8
_QWORD *v17; // x20
__int64 v18; // x0
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 69920LL);
if ( v1 == a1 )
return 30;
if ( v1 )
{
v3 = (_QWORD *)(a1 + 64);
v4 = *(_QWORD **)(a1 + 64);
__asm { FMOV V8.2S, #1.0 }
while ( v4 != v3 )
{
v10 = v4[2];
v11 = (_QWORD *)*v4;
sub_59598(v10 + 432);
*(_QWORD *)(v10 + 536) = _D8;
*(_DWORD *)(v10 + 488) = 0;
v12 = (_QWORD *)v4[1];
*v12 = *v4;
*(_QWORD *)(*v4 + 8LL) = v12;
*v4 = v4;
v4[1] = v4;
v4 = v11;
}
v14 = sub_677DC();
for ( i = a1 + 40;
*(_QWORD *)i != i;
v14 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)i + 16LL) + 216LL))(
*(_QWORD *)(*(_QWORD *)i + 16LL),
*(_QWORD *)(*(_QWORD *)(a1 + 24) + 69920LL)) )
{
;
}
sub_677C8(v14);
v16 = *(_QWORD *)(a1 + 24);
v17 = (_QWORD *)(v16 + 1616);
while ( 1 )
{
v17 = (_QWORD *)*v17;
if ( v17 == (_QWORD *)(v16 + 1616) )
break;
v18 = v17[2];
if ( !*(_DWORD *)(v18 + 488) )
{
(*(void (__fastcall **)(__int64, __int64, float))(*(_QWORD *)v18 + 32LL))(v18, 1, *(float *)(v18 + 48));
v16 = *(_QWORD *)(a1 + 24);
}
}
}
sub_672F4(a1);
return 0;
}