//
// sub_676A0 from 0x676a0 to 0x6772c (140 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::getSound @ 0xdab6c
//
// 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_676A0(__int64 a1, int a2, _QWORD *a3)
{
__int64 v6; // x0
int v7; // w9
_QWORD *v8; // x10
unsigned int v9; // w20
if ( a3 )
{
*a3 = 0;
v6 = sub_677DC(a1);
v7 = a2 + 1;
v8 = (_QWORD *)(a1 + 40);
while ( 1 )
{
v8 = (_QWORD *)*v8;
if ( v8 == (_QWORD *)(a1 + 40) )
break;
if ( !--v7 )
{
v9 = 0;
*a3 = v8[2];
goto LABEL_8;
}
}
v9 = 31;
LABEL_8:
sub_677C8(v6);
}
else
{
return 31;
}
return v9;
}