__int64 __fastcall HalpInterruptQueryControllerInfo(unsigned int a1, _DWORD *a2, _DWORD *a3){
_DWORD *v3;
NTSTATUS v4;
__int64 v5;
_DWORD *v6;
*a3 = 0;
if( a1 < 4 )
{
LODWORD(v5) = -1073741789;
}
else
{
*a2 = 0;
v4 = HalpInterruptModel();
if( (unsigned int)(v4 - 2) <= 1
|| v4 == 1 && ((*v3 = 1, qword_140C4A168 != v5) || (unsigned __int8)HalpInterruptIsRemappingRequired()) )
{
*v3 = 3;
}
*v6 = 4;
}
return(unsigned int)v5;
}