//
// sub_1004A82E0 from 0x1004a82e0 to 0x1004a83b4 (212 bytes)
//
// 2 xrefs:
// > sub_100426FFC @ 0x1004272b0
// > FMOD::DSP::getInfo @ 0x100486fac
//
// 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_1004A82E0(__int64 a1, __int64 a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6)
{
const char *v11; // x8
__int64 v12; // x8
__int64 v13; // x8
__int64 v14; // x8
__int64 (__fastcall *v15)(__int64, __int64, _DWORD *, _DWORD *); // x8
__int64 result; // x0
if ( a2 )
{
v11 = *(const char **)(a1 + 240);
if ( !v11 )
{
v12 = *(_QWORD *)(a1 + 232);
if ( v12 )
v11 = (const char *)(v12 + 4);
else
v11 = "";
}
sub_1004C6BD0(a2, v11, 32);
}
if ( a3 )
{
v13 = *(_QWORD *)(a1 + 232);
if ( v13 )
LODWORD(v13) = *(_DWORD *)(v13 + 36);
*a3 = v13;
}
if ( a4 )
{
v14 = *(_QWORD *)(a1 + 232);
if ( v14 )
LODWORD(v14) = *(unsigned __int16 *)(a1 + 272);
*a4 = v14;
}
if ( a5 )
*a5 = 0;
if ( a6 )
*a6 = 0;
v15 = *(__int64 (__fastcall **)(__int64, __int64, _DWORD *, _DWORD *))(a1 + 280);
if ( !v15 )
return 0;
if ( (*(_WORD *)(a1 + 274) & 0x20) == 0 )
return 0;
result = v15(a1 + 176, 32, a5, a6);
if ( !(_DWORD)result )
return 0;
return result;
}