PopIssueDirectedPowerTransition

NTSTATUS __fastcall PopIssueDirectedPowerTransition(INT64 a1, __int64 a2){
  INT64 v2; 

  v2 = *(_QWORD *)(a2 - 80);
  if( *(_BYTE *)a1 == 3 )
    return PopCompleteDirectedPowerTransitionCallback(v2, a1, 0i64);
  if( *(_DWORD *)(a1 + 4) != 1 )
    PoFxActivateDevice(*(_DEVICE_OBJECT **)(*(_QWORD *)(v2 + 48) + 32i64));
  return PopFxIssueDirectedPowerTransition(v2);
}

Referenced by:

PopSleepDeviceList
PopWakeDeviceList