//
// sub_52FF4 from 0x52ff4 to 0x5305a (102 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_52FF4(int a1, int a2)
{
int v3; // r0
int v4; // r5
int v5; // r0
if ( (unsigned __int8)(*(_BYTE *)(a2 + 10) - 5) <= 1u )
{
v3 = *(unsigned __int8 *)(a2 + 9);
switch ( v3 )
{
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 ( !sub_BE2D6(a2 + 12, "Show Delays") )
{
v5 = 1;
goto LABEL_11;
}
if ( !sub_BE2D6(v4, "Show None") )
{
v5 = 0;
LABEL_11:
*(_DWORD *)(a1 + 44) = v5;
}
break;
}
}
return 0;
}