//
// FMOD::System::setDriver from 0xdb14c to 0xdb1a8 (92 bytes)
//
// 4 xrefs:
// > FMOD::System::setDriver @ 0x106bcc
// > ??> @ 0x30e8
// > FMOD::System::setDriver @ 0x106bc4
// > ??> @ 0x10fea8
//
// 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:55 +0000
//
__int64 __fastcall FMOD::System::setDriver(FMOD::System *this)
{
unsigned int v1; // w20
__int64 v2; // x0
__int64 v3; // x0
char v4; // w8
__int64 v5; // x0
v1 = sub_DF034(this);
if ( v1 || (v2 = sub_DF2F4(), v3 = sub_6BA70(v2), (v1 = v3) != 0) )
{
v3 = sub_DEFD0();
if ( v4 < 0 )
{
v5 = sub_DF1BC(v3);
v3 = sub_DEFE4(v5);
}
}
sub_DF11C(v3);
return v1;
}