//
// sub_1800CB110 from 0x1800cb110 to 0x1800cb171 (97 bytes)
//
// 1 xrefs:
// > FMOD::ChannelGroup::getGroup @ 0x1800a0d29
//
// 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:07 +0000
//
__int64 __fastcall sub_1800CB110(__int64 a1, int a2, _QWORD *a3)
{
int v3; // eax
_QWORD *v5; // rdx
int v6; // r9d
_QWORD *i; // rcx
_QWORD *v8; // rdx
v3 = 0;
v5 = (_QWORD *)(a1 + 400);
v6 = 0;
for ( i = *(_QWORD **)(a1 + 400); i != v5; ++v6 )
i = (_QWORD *)*i;
if ( a2 < 0 || a2 >= v6 || !a3 )
return 31;
v8 = (_QWORD *)*v5;
if ( v6 > 0 )
{
do
{
if ( v3 == a2 )
*a3 = v8[2];
v8 = (_QWORD *)*v8;
++v3;
}
while ( v3 < v6 );
}
return 0;
}