//
// FMOD::DSP::getSystemObject from 0xd2ef0 to 0xd2f40 (80 bytes)
//
// 4 xrefs:
// > FMOD::DSP::getSystemObject @ 0x10799c
// > ??> @ 0x7768
// > FMOD::DSP::getSystemObject @ 0x107994
// > ??> @ 0x110590
//
// 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:51 +0000
//
__int64 __fastcall FMOD::DSP::getSystemObject(FMOD::DSP *this, FMOD::System **a2)
{
unsigned int v2; // w20
__int64 v3; // x0
_QWORD *v4; // x1
char v5; // w8
__int64 v6; // x0
_BYTE v8[264]; // [xsp+8h] [xbp-138h] BYREF
v2 = sub_D4E14(this, a2);
if ( v2 || (v3 = sub_D4EE8(), (v2 = sub_CADE8(v3, v4)) != 0) )
{
sub_D4D24();
if ( v5 < 0 )
{
v6 = sub_D4F2C(v8);
sub_D4D38(v6);
}
}
return v2;
}