//
// sub_1005F63D4 from 0x1005f63d4 to 0x1005f6480 (172 bytes)
//
// 1 xrefs:
// > FMOD::System::setSoftwareFormat @ 0x1005ee4d0
//
// 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 11:09:51 +0000
//
__int64 __fastcall sub_1005F63D4(__int64 a1, int a2, int a3, int a4)
{
bool v6; // w9
__int64 v7; // x8
if ( *(_BYTE *)(a1 + 8) )
return 27;
v6 = (unsigned int)(a2 - 192001) < 0xFFFD313F && a2 != 0;
v7 = 31;
if ( a3 <= 8 && !v6 )
{
if ( a3 == 1 && !a4 )
return 31;
if ( a4 > 32 )
return 64;
if ( a2 )
*(_DWORD *)(a1 + 1744) = a2;
*(_DWORD *)(a1 + 70460) = a3;
if ( a3 != 1 )
{
if ( (unsigned int)(a3 - 2) > 6 )
a4 = 0;
else
a4 = dword_1007743BC[a3 - 2];
}
v7 = 0;
*(_DWORD *)(a1 + 1748) = a4;
}
return v7;
}