//
// sub_100427874 from 0x100427874 to 0x10042792c (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x100826c98
//
// 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_100427874(__int64 a1, __int64 a2)
{
int v2; // w8
__int64 v4; // x20
if ( (unsigned int)*(unsigned __int8 *)(a2 + 10) - 7 >= 0xFFFFFFFE )
{
v2 = *(unsigned __int8 *)(a2 + 9);
switch ( v2 )
{
case 3:
FMOD::DSP::setBypass(*(FMOD::DSP **)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);
break;
case 2:
FMOD::DSP::setActive(*(FMOD::DSP **)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);
break;
case 1:
v4 = a2 + 12;
if ( (unsigned int)sub_1004C7018(a2 + 12, "Show Delays") )
{
if ( !(unsigned int)sub_1004C7018(v4, "Show None") )
*(_DWORD *)(a1 + 80) = 0;
}
else
{
*(_DWORD *)(a1 + 80) = 1;
}
break;
}
}
return 0;
}