//
// sub_100580EE0 from 0x100580ee0 to 0x100580f48 (104 bytes)
//
// 1 xrefs:
// > FMOD::ChannelGroup::getGroup @ 0x10057f5d4
//
// 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 11:08:29 +0000
//
__int64 __fastcall sub_100580EE0(__int64 a1, int a2, _QWORD *a3)
{
_QWORD *v3; // x8
int v4; // w9
_QWORD *v5; // x10
__int64 result; // x0
int i; // w10
v3 = (_QWORD *)(a1 + 400);
v4 = -1;
v5 = (_QWORD *)(a1 + 400);
do
{
v5 = (_QWORD *)*v5;
++v4;
}
while ( v5 != v3 );
result = 31;
if ( a3 && (a2 & 0x80000000) == 0 && v4 > a2 )
{
if ( v4 )
{
for ( i = 0; i != v4; ++i )
{
v3 = (_QWORD *)*v3;
if ( a2 == i )
*a3 = v3[2];
}
}
return 0;
}
return result;
}