//
// sub_1004D026C from 0x1004d026c to 0x1004d0318 (172 bytes)
//
// 1 xrefs:
// > FMOD::System::setSoftwareFormat @ 0x1004c8368
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004D026C(__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_10064B3BC[a3 - 2];
}
v7 = 0;
*(_DWORD *)(a1 + 1748) = a4;
}
return v7;
}