//
// sub_1800CB010 from 0x1800cb010 to 0x1800cb054 (68 bytes)
//
// 1 xrefs:
// > FMOD::ChannelGroup::getChannel @ 0x1800a0bf9
//
// 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_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;
}