//
// sub_49A88 from 0x49a88 to 0x49aae (38 bytes)
//
// 2 xrefs:
// > sub_49A04 @ 0x49a26
// > FMOD::ChannelGroup::getChannel @ 0xb045c
//
// 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
//
int __fastcall sub_49A88(int a1, int a2, _DWORD *a3)
{
_DWORD *v3; // r0
int v4; // r1
_DWORD *v5; // r3
if ( a3 )
{
v3 = (_DWORD *)(a1 + 304);
v4 = a2 + 1;
*a3 = 0;
v5 = v3;
while ( 1 )
{
v5 = (_DWORD *)*v5;
if ( v5 == v3 )
break;
if ( !--v4 )
{
*a3 = *(_DWORD *)(v5[2] + 44);
return 0;
}
}
}
return 31;
}