//
// FMOD::System::getChannel from 0xdddf4 to 0xdde58 (100 bytes)
//
// 4 xrefs:
// > FMOD::System::getChannel @ 0x106f8c
// > ??> @ 0x5800
// > FMOD::System::getChannel @ 0x106f84
// > ??> @ 0x110088
//
// 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 12:14:56 +0000
//
__int64 __fastcall FMOD::System::getChannel(FMOD::System *this, int a2, FMOD::Channel **a3)
{
unsigned int v3; // w20
__int64 v4; // x0
int v5; // w1
_QWORD *v6; // x2
__int64 v7; // x0
char v8; // w8
_BYTE *v9; // x0
__int64 v10; // x1
unsigned int v11; // w2
const void *v12; // x3
__int64 v13; // x0
v3 = sub_DEFF4(this);
if ( v3 || (v4 = sub_DF12C(), v7 = sub_6E468(v4, v5, v6), (v3 = v7) != 0) )
{
v7 = sub_DEFD0();
if ( v8 < 0 )
{
v9 = (_BYTE *)sub_DF0E8(v7);
v13 = sub_D24AC(v9, v10, v11, v12);
v7 = sub_DEFE4(v13);
}
}
sub_DF124(v7);
return v3;
}