IovUtilIsDeviceObjectMarked

UINT64 __stdcall IovUtilIsDeviceObjectMarked(_DEVICE_OBJECT *DeviceObject, _MARK_TYPE MarkType){
  unsigned int ExtensionFlags; 
  int v3; 
  int v4; 
  int v5; 
  int v6; 
  unsigned int v8; 

  ExtensionFlags = DeviceObject->DeviceObjectExtension->ExtensionFlags;
  if( MarkType )
  {
    v3 = MarkType - 1;
    if( v3 )
    {
      v4 = v3 - 1;
      if( v4 )
      {
        v5 = v4 - 1;
        if( v5 )
        {
          v6 = v5 - 1;
          if( v6 )
          {
            if( v6 != 1 )
              return 0i64;
            v8 = HIBYTE(ExtensionFlags);
          }
          else
          {
            v8 = ExtensionFlags >> 25;
          }
        }
        else
        {
          v8 = ExtensionFlags >> 27;
        }
      }
      else
      {
        v8 = ExtensionFlags >> 29;
      }
    }
    else
    {
      v8 = ExtensionFlags >> 28;
    }
  }
  else
  {
    v8 = ExtensionFlags >> 26;
  }
  return v8 & 1;
}

Referenced by:

IovUtilIsInFdoStack
IovpCallDriver1
IovpCallDriver2
VfIoDeleteDevice
VfIrpLogRecordEvent
VfPnpVerifyIrpStackDownward
VfPnpVerifyIrpStackUpward
ViPnpVerifyMinorWasProcessedProperly