PiGetTargetDeviceNode

INT64 __fastcall PiGetTargetDeviceNode(INT64 a1){
  __int64 v1; 
  INT64 result; 
  v1 = *(_QWORD *)(a1 + 152);
  result = 0i64;
  if( v1 )
    return *(_QWORD *)(*(_QWORD *)(v1 + 312) + 40i64);
  return result;
}

Referenced by:

PiCheckRemovalPreconditions
PiProcessQueryRemoveNoFdo
PnpRecordBlackboxPnpEventInformation