//
// sub_1004A3DB0 from 0x1004a3db0 to 0x1004a3e48 (152 bytes)
//
// 41 xrefs:
// > FMOD::DSP::release @ 0x100484950
// > FMOD::DSP::getSystemObject @ 0x100484a1c
// > FMOD::DSP::addInput @ 0x100484afc
// > FMOD::DSP::disconnectFrom @ 0x100484c60
// > FMOD::DSP::disconnectAll @ 0x100484d8c
// > FMOD::DSP::getNumInputs @ 0x100484ea8
// > FMOD::DSP::getNumOutputs @ 0x100484f88
// > FMOD::DSP::getInput @ 0x10048507c
// > FMOD::DSP::getOutput @ 0x1004851e8
// > FMOD::DSP::setActive @ 0x100485340
// > FMOD::DSP::getActive @ 0x10048541c
// > FMOD::DSP::setBypass @ 0x100485510
// > FMOD::DSP::getBypass @ 0x1004855e8
// > FMOD::DSP::setWetDryMix @ 0x1004856f4
// > FMOD::DSP::getWetDryMix @ 0x100485860
// > FMOD::DSP::setChannelFormat @ 0x1004859c4
// > FMOD::DSP::getChannelFormat @ 0x100485b28
// > FMOD::DSP::getOutputChannelFormat @ 0x100485c98
// > FMOD::DSP::reset @ 0x100485ed0
// > FMOD::DSP::setCallback @ 0x100485f98
// > FMOD::DSP::setParameterFloat @ 0x10048607c
// > FMOD::DSP::setParameterInt @ 0x100486194
// > FMOD::DSP::setParameterBool @ 0x1004862ac
// > FMOD::DSP::setParameterData @ 0x1004863cc
// > FMOD::DSP::getParameterFloat @ 0x100486524
// > FMOD::DSP::getParameterInt @ 0x1004866a8
// > FMOD::DSP::getParameterBool @ 0x10048682c
// > FMOD::DSP::getParameterData @ 0x1004869b4
// > FMOD::DSP::getNumParameters @ 0x100486b4c
// > FMOD::DSP::getParameterInfo @ 0x100486c20
// > FMOD::DSP::getDataParameterIndex @ 0x100486d38
// > FMOD::DSP::showConfigDialog @ 0x100486e54
// > FMOD::DSP::getInfo @ 0x100486f88
// > FMOD::DSP::getType @ 0x100487124
// > FMOD::DSP::getIdle @ 0x1004871fc
// > FMOD::DSP::setUserData @ 0x1004872d0
// > FMOD::DSP::getUserData @ 0x100487398
// > FMOD::DSP::setMeteringEnabled @ 0x100487470
// > FMOD::DSP::getMeteringEnabled @ 0x100487598
// > FMOD::DSP::getMeteringInfo @ 0x1004876c0
// > FMOD::DSP::getCPUUsage @ 0x1004877e8
//
// 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_1004A3DB0(__int64 a1, _QWORD *a2, __int64 *a3)
{
__int64 result; // x0
__int16 v5; // w9
__int64 v7; // x20
if ( !a2 )
return 31;
*a2 = a1;
result = 30;
if ( a1 && (a1 & 3) == 0 )
{
v5 = atomic_load((unsigned int *)(a1 + 100));
if ( (v5 & 0x400) != 0 || *(_DWORD *)(a1 + 92) != -1395763731 )
{
return 30;
}
else if ( a3 )
{
v7 = *(_QWORD *)(a1 + 168);
result = 28;
if ( v7 && !*a3 )
{
result = sub_100442CFC(v7);
if ( !(_DWORD)result )
*a3 = v7;
}
}
else
{
return 0;
}
}
return result;
}