PopGetModernStandbyTransitionReason

INT64 __fastcall PopGetModernStandbyTransitionReason(CHAR a1, INT64 *a2){
  unsigned __int8 v4; 
  unsigned __int64 v5; 
  unsigned int v6; 
  INT64 v7; 
  KeAcquireSpinLockRaiseToDpc(&PopModernStandbyTransitionInfo, (UINT64)a2);
  v5 = v4;
  if( a1 )
  {
    v6 = dword_140C115F4;
    v7 = 0i64;
  }
  else
  {
    v6 = dword_140C115F8;
    v7 = qword_140C11600;
  }
  if( a2 )
    *a2 = v7;
  KxReleaseSpinLock(&PopModernStandbyTransitionInfo);
  __writecr8(v5);
  return v6;
}

Referenced by:

PopCalculateCsSummary
PopCaptureSleepStudyStatistics
PopDiagTraceSleepStudyStart
PopIdleCsStateChanged