PopIssueDirectedPowerTransition

NTSTATUS __fastcall PopIssueDirectedPowerTransition(INT64 a1, INT64 a2){
  _QWORD *v2; 
  v2 = *(_QWORD **)(a2 - 80);
  if( *(_BYTE *)a1 == 3 )
    return PopCompleteDirectedPowerTransitionCallback((INT64)v2, a1, 0i64);
  if( *(_DWORD *)(a1 + 4) != 1 )
    PoFxActivateDevice(*(DEVICE_OBJECT **)(v2[6] + 32i64));
  return PopFxIssueDirectedPowerTransition(v2);
}

Referenced by:

PopSleepDeviceList
PopWakeDeviceList