PopDeviceConstraintsEnforced

BOOL __fastcall PopDeviceConstraintsEnforced(){
  bool v0; 
  unsigned __int8 CurrentIrql; 
  _BYTE *v2; 
  BOOL result; 
  v0 = 0;
  CurrentIrql = KeGetCurrentIrql();
  __writecr8(2ui64);
  v2 = (_BYTE *)*((_QWORD *)KeGetCurrentPrcb() + 4096);
  if( v2 && *v2 == 1 )
    v0 = PpmPlatformStates != 0;
  result = KiIrqlFlags;
  __writecr8(CurrentIrql);
  LOBYTE(result) = v0;
  return result;
}

Referenced by:

PopDripsWatchdogCallbackHandler
PopDripsWatchdogTakeAction