HalpUpdatePerDeviceMsiLimitInformation

NTSTATUS __stdcall HalpUpdatePerDeviceMsiLimitInformation(){
  int v0; 
  NTSTATUS result; 

  v0 = 2048;
  if( (*(_DWORD *)(Controller + 220) & 0x100) != 0 )
  {
    if( (*(&CmpDummyThreadEvent + 7712) & 4) != 0 )
      v0 = *(&CmpDummyThreadEvent + 3876);
  }
  else if( HalpIsHvRemappingInterrupts() && KeGetCurrentPrcb()->CpuVendor == 1 )
  {
    v0 = 512;
  }
  result = v0 - 1;
  if( (unsigned __int16)(v0 - 1) <= 0x7FFu )
    HalpInterruptPerDeviceMsiLimit = v0;
  return result;
}

Referenced by:

HalpInitializeInterruptsBspLate