//
// FMOD::ChannelControl::getSystemObject from 0xcf43c to 0xcf4b4 (120 bytes)
//
// 4 xrefs:
// > FMOD::ChannelControl::getSystemObject @ 0x1073ec
// > ??> @ 0x5cc8
// > FMOD::ChannelControl::getSystemObject @ 0x1073e4
// > ??> @ 0x1102b8
//
// 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:50 +0000
//
__int64 __fastcall FMOD::ChannelControl::getSystemObject(char a1, const void *a2)
{
unsigned int v3; // w20
__int64 v4; // x0
__int64 (__fastcall **v5)(__int64); // x8
char v6; // w8
__int64 v7; // x0
_BYTE v9[256]; // [xsp+8h] [xbp-128h] BYREF
v3 = sub_55F6C(a1);
if ( v3 || (v4 = sub_D1D94(), (v3 = (*v5)(v4)) != 0) )
{
sub_D1CCC();
if ( v6 < 0 )
{
v7 = sub_71798((__int64)v9, 256, a2);
sub_D1CE0(v7);
}
}
return v3;
}