PopGetModernStandbyTransitionReason

NTSTATUS __stdcall PopGetModernStandbyTransitionReason(CHAR a1, INT64 *a2){
  unsigned __int64 v4; 
  NTSTATUS v5; 
  INT64 v6; 

  v4 = (unsigned __int8)KeAcquireSpinLockRaiseToDpc(&PopModernStandbyTransitionInfo);
  if( a1 )
  {
    v5 = dword_140C115F4;
    v6 = 0i64;
  }
  else
  {
    v5 = dword_140C115F8;
    v6 = qword_140C11600;
  }
  if( a2 )
    *a2 = v6;
  KxReleaseSpinLock(&PopModernStandbyTransitionInfo);
  __writecr8(v4);
  return v5;
}

Referenced by:

PopCalculateCsSummary
PopCaptureSleepStudyStatistics
PopDiagTraceSleepStudyStart
PopIdleCsStateChanged