//
// sub_1800CB010 from 0x1800cb010 to 0x1800cb054 (68 bytes)
//
// 1 xrefs:
// > FMOD::ChannelGroup::getChannel @ 0x1800a0bf9
//
// 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_1800CB010(__int64 a1, int a2, _QWORD *a3)
{
int v3; // r9d
_QWORD *v4; // rcx
_QWORD *v5; // rax
v3 = 0;
if ( !a3 )
return 31;
v4 = (_QWORD *)(a1 + 424);
*a3 = 0;
v5 = (_QWORD *)*v4;
if ( (_QWORD *)*v4 == v4 )
return 31;
while ( v3 != a2 )
{
v5 = (_QWORD *)*v5;
++v3;
if ( v5 == v4 )
return 31;
}
*a3 = *(_QWORD *)(v5[2] + 80LL);
return 0;
}