PopSetSystemState

VOID __stdcall PopSetSystemState(UINT64 Flags, POWER_MONITOR_REQUEST_REASON MonitorOnReason){
  char v3; 
  if( (Flags & 0xFFFFFFF8) == 0 )
  {
    v3 = Flags;
    PopDiagTraceSetSystemState(Flags);
    if( (v3 & 1) != 0 )
      PopResetIdleTime(3i64);
    if( (v3 & 4) != 0 )
      PopUserPresentSet(MonitorOnReason);
  }
}

Referenced by:

PoSetSystemState
PoSetUserPresent
PopAllowAwayModeSettingCallback
PopIssueActionRequest