HalpUpdatePerDeviceMsiLimitInformation

INT64 __stdcall HalpUpdatePerDeviceMsiLimitInformation(){
  int v0; 
  INT64 result; 
  v0 = 2048;
  if( (*(_DWORD *)(HalpInterruptController + 220) & 0x100) != 0 )
  {
    if( (HalpIrtAllocationFlags & 4) != 0 )
      v0 = (unsigned __int16)HalpIrtEntriesPerDeviceAperture;
  }
  else if( HalpIsHvRemappingInterrupts() && *((_BYTE *)KeGetCurrentPrcb() + 141) == 1 )
  {
    v0 = 512;
  }
  result = (unsigned int)(v0 - 1);
  if( (unsigned __int16)(v0 - 1) <= 0x7FFu )
    HalpInterruptPerDeviceMsiLimit = v0;
  return result;
}

Referenced by:

HalpInitializeInterruptsBspLate