PopLockGetDoDevicePowerState

_DEVICE_POWER_STATE __stdcall PopLockGetDoDevicePowerState(_DEVOBJ_EXTENSION *Doe){
  unsigned __int8 v2; 
  unsigned __int64 v3; 

  v2 = KeAcquireSpinLockRaiseToDpc((UINT64 *)&stru_140C23628 + 125);
  LODWORD(Doe) = (Doe->PowerFlags >> 4) & 0xF;
  v3 = v2;
  KxReleaseSpinLock((UINT64 *)&stru_140C23628 + 125);
  __writecr8(v3);
  return(int)Doe;
}

Referenced by:

NtGetDevicePowerState
PiControlGetDevicePowerData