PopSetSleepMarker

VOID __stdcall PopSetSleepMarker(_SYSTEM_POWER_STATE PowerState){
  char v1; 
  __int16 TransitionsToOnCount; 

  v1 = PowerState;
  TransitionsToOnCount = -1;
  if( (unsigned int)PopGetTransitionsToOnCount() < 0xFFFF )
    TransitionsToOnCount = PopGetTransitionsToOnCount();
  PopAcquireRwLockExclusive((_POP_RW_LOCK *)((char *)&stru_140C23628 + 6312));
  WORD6(xmmword_140C502C8) = TransitionsToOnCount;
  BYTE8(xmmword_140C502C8) = (16 * v1) | BYTE8(xmmword_140C502C8) & 0xF;
  BYTE14(xmmword_140C502C8) = *(&stru_140C23628 + 268) & 0xF | BYTE14(xmmword_140C502C8) & 0xF0;
  PopBsdHandleRequest(8i64);
  PopReleaseRwLock((_POP_RW_LOCK *)((char *)&stru_140C23628 + 6312));
}

Referenced by:

PopIssueActionRequest
PopTransitionSystemPowerStateEx