PopCheckpointSystemSleep

VOID __fastcall PopCheckpointSystemSleep(_POP_SLEEP_CHECKPOINT Progress){
  ULONG_PTR v1; 
  unsigned __int64 v2; 
  unsigned __int64 v3; 
  v1 = Progress;
  PopSleepCheckpoint = Progress;
  v2 = __rdtsc();
  if( PopBootStatCheckpointAvailable )
    PopRecordSleepCheckpoint(Progress);
  if( PopCheckpointSystemSleepEnabled
    && ((PopCheckpointSystemSleepSimulateFlags & 1) == 0
     || (unsigned int)v1 <= HIBYTE(PopCheckpointSystemSleepSimulateFlags)) )
  {
    if( PoAllProcIntrDisabled )
    {
      if( *((_DWORD *)KeGetCurrentPrcb() + 9) )
        KeBugCheckEx(0xA0u, 0x10Fui64, v1, 1ui64, 0i64);
      if( (unsigned __int8)off_140C00940[0]() )
        KeBugCheckEx(0xA0u, 0x10Fui64, v1, 2ui64, 0i64);
    }
    else if( !_InterlockedExchangeAdd(&PopPagingEnabled, 0) )
    {
      KeBugCheckEx(0xA0u, 0x10Fui64, v1, 0i64, 0i64);
    }
    PopCheckpointSystemSleepUnsafe((_POP_SLEEP_CHECKPOINT)v1);
  }
  v3 = __rdtsc();
  qword_140C237B0 += (((unsigned __int64)HIDWORD(v3) << 32) | (unsigned int)v3) - v2;
}

Referenced by:

PoBroadcastSystemState
PopAllocateHiberContext
PopDecompressHiberBlocks
PopDispatchSuperfetchNotification
PopHiberCheckResume
PopHiberChecksumHiberFileData
PopInvokeSystemStateHandler
PopIssueActionRequest
PopNotifyCallbacksPreSleep
PopPrepareSleep
PopRequestRead
PopRequestWrite
PopRestoreHiberContext
PopResumeApps
PopResumeServices
PopSaveHiberContext
PopSuspendApps
PopSuspendServices
PopTransitionSystemPowerStateEx
PopWriteHiberPages