VOID __stdcall IoBoostThreadIo(_ETHREAD *Thread, INT64 TargetPriority, UINT8 Unboost, UINT64 Flags){
int v4;
v4 = TargetPriority;
if( !(_DWORD)Flags )
{
if( Unboost == 1 )
{
PsBoostThreadIoEx((__int64)Thread, 1, 1, 0i64);
}
else
{
PsBoostThreadIoEx((__int64)Thread, 0, 1, 0i64);
IoBoostThreadIoPriority((KSPIN_LOCK *)Thread, v4, 0x80000000);
}
}
}