PiGetTargetDeviceNode

NTSTATUS __stdcall PiGetTargetDeviceNode(INT64 a1){
  __int64 v1; 
  __int64 v2; 

  v1 = *(_QWORD *)(a1 + 152);
  LODWORD(v2) = 0;
  if( v1 )
    return *(_QWORD *)(*(_QWORD *)(v1 + 312) + 40i64);
  return v2;
}

Referenced by:

PiCheckRemovalPreconditions
PiProcessQueryRemoveNoFdo
PnpRecordBlackboxPnpEventInformation