//
// sub_1004F0628 from 0x1004f0628 to 0x1004f0690 (104 bytes)
//
// 9 xrefs:
// > FMOD::DSPConnection::getInput @ 0x10048a744
// > FMOD::DSPConnection::getOutput @ 0x10048a81c
// > FMOD::DSPConnection::setMix @ 0x10048a8f8
// > FMOD::DSPConnection::getMix @ 0x10048a9e0
// > FMOD::DSPConnection::setMixMatrix @ 0x10048aad0
// > FMOD::DSPConnection::getMixMatrix @ 0x10048ac6c
// > FMOD::DSPConnection::getType @ 0x10048ade8
// > FMOD::DSPConnection::setUserData @ 0x10048aec0
// > FMOD::DSPConnection::getUserData @ 0x10048af98
//
// 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_1004F0628(__int64 *a1, __int64 **a2, __int64 *a3)
{
__int64 v4; // x20
__int64 result; // x0
if ( !a2 )
return 31;
if ( !a1 )
return 30;
*a2 = a1;
if ( !a3 )
return 0;
v4 = *a1;
result = 28;
if ( v4 && !*a3 )
{
result = sub_100442CFC(v4);
if ( !(_DWORD)result )
*a3 = v4;
}
return result;
}