PspDecodeMitigationExecuteOptions

UINT8 __stdcall PspDecodeMitigationExecuteOptions(UINT64 MitigationOptions){
  UINT8 v1; 
  int v2; 

  v1 = 0;
  switch( *(_DWORD *)MitigationOptions & 3 )
  {
    case 1:
      v1 = 13;
      break;
    case 2:
      v1 = 58;
      break;
    case 3:
      v1 = 9;
      break;
  }
  v2 = ((*(_QWORD *)MitigationOptions >> 4) & 3) - 1;
  if( v2 )
  {
    if( v2 == 1 )
      v1 |= 0x48u;
  }
  else
  {
    v1 |= 8u;
  }
  return v1;
}

Referenced by:

PspApplyMitigationOptions