//
// FMOD::System::setSoftwareFormat from 0xdb2a4 to 0xdb338 (148 bytes)
//
// 4 xrefs:
// > FMOD::System::setSoftwareFormat @ 0x106c0c
// > ??> @ 0x4228
// > FMOD::System::setSoftwareFormat @ 0x106c04
// > ??> @ 0x10fec8
//
// 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::setSoftwareFormat(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4)
{
unsigned int v7; // w20
__int64 v8; // x0
char v9; // w8
__int64 v10; // x0
__int64 v12; // [xsp+0h] [xbp-140h] BYREF
_BYTE v13[8]; // [xsp+100h] [xbp-40h] BYREF
__int64 v14; // [xsp+108h] [xbp-38h] BYREF
v7 = sub_DF188(a1, &v14, v13);
if ( v7 || (v8 = sub_6B7B8(v14, a2, a3, a4), (v7 = v8) != 0) )
{
v8 = sub_DEFD0();
if ( v9 < 0 )
{
v10 = sub_DB338(&v12, 256, a2, a3, a4);
v8 = sub_DEFE4(v10);
}
}
sub_DF27C(v8);
return v7;
}