//
// sub_18005AF70 from 0x18005af70 to 0x18005afdc (108 bytes)
//
// 12 xrefs:
// > FMOD::DSPConnection::getInput @ 0x180056f9d
// > FMOD::DSPConnection::getMix @ 0x18005706d
// > FMOD::DSPConnection::getMixMatrix @ 0x180057150
// > FMOD::DSPConnection::getOutput @ 0x18005730d
// > FMOD::DSPConnection::getType @ 0x1800573dd
// > FMOD::DSPConnection::getUserData @ 0x1800574ad
// > FMOD::DSPConnection::setMix @ 0x180057580
// > FMOD::DSPConnection::setMixMatrix @ 0x180057680
// > FMOD::DSPConnection::setUserData @ 0x18005784d
// > ??> @ 0x180182464
// > ??> @ 0x180182478
// > ??> @ 0x1801f8fe8
//
// This function is hookable on this platform (idp: pc, 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 10:53:21 +0000
//
__int64 __fastcall sub_18005AF70(_QWORD *a1, _QWORD *a2, _QWORD *a3)
{
__int64 result; // rax
__int64 v5; // rbx
if ( !a2 )
return 31;
if ( !a1 )
return 30;
*a2 = a1;
if ( !a3 )
return 0;
if ( *a3 )
return 28;
v5 = *a1;
if ( !*a1 )
return 28;
result = sub_1801021E0(*a1);
if ( !(_DWORD)result )
{
*a3 = v5;
return 0;
}
return result;
}