//
// sub_10054D9DC from 0x10054d9dc to 0x10054da94 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aa308
//
// 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:07:51 +0000
//
__int64 __fastcall sub_10054D9DC(__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(*(_QWORD *)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);
break;
case 2:
FMOD::DSP::setActive(*(_QWORD *)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);
break;
case 1:
v4 = a2 + 12;
if ( (unsigned int)sub_1005ED180(a2 + 12, "Show Delays") )
{
if ( !(unsigned int)sub_1005ED180(v4, "Show None") )
*(_DWORD *)(a1 + 80) = 0;
}
else
{
*(_DWORD *)(a1 + 80) = 1;
}
break;
}
}
return 0;
}