HalpUsbLegacyStopUhciInterrupt
UINT16 __fastcall HalpUsbLegacyStopUhciInterrupt(INT64 a1, UINT64 a2, UINT64 a3, CHAR a4){
unsigned int v4;
unsigned int v5;
UINT16 v7;
int v8[4];
_BYTE result[32];
int v10;
v4 = a2;
v5 = a3;
memset((INT64)result, 0i64);
v8[0] = 0;
if( a4 )
{
((void(__fastcall *)(_QWORD, _QWORD, int *, __int64, int))qword_140C00638)(v4, v5, v8, 192i64, 4);
v7 = ((__int64(__fastcall *)(_QWORD, _QWORD, _BYTE *, _QWORD, int))qword_140C00630)(v4, v5, result, 0i64, 64);
if( (result[4] & 1) != 0 )
{
v8[0] = v10 & 0xFFFFFFFC;
if( (v10 & 0xFFFFFFFC) - 1 <= 0xFFFD )
{
v7 = __inword(v10 & 0xFFFC);
if( (v7 & 8) == 0 )
{
__outword(v8[0], 4u);
KeStallExecutionProcessor(0x2710u);
v7 = 0;
__outword(v8[0], 0);
}
}
}
}
else
{
((void(__fastcall *)(_QWORD, _QWORD, int *, __int64, int))qword_140C00630)(v4, v5, v8, 192i64, 4);
v8[0] &= 0xFFFF40FF;
return((__int64(__fastcall *)(_QWORD, _QWORD, int *, __int64, int))qword_140C00638)(v4, v5, v8, 192i64, 4);
}
return v7;
}Referenced by:
HalpPiix4Detect
HalpStopLegacyUsbInterruptsInternal