IovUtilIsDeviceObjectMarked

__int64 __fastcall IovUtilIsDeviceObjectMarked(__int64 a1, int a2){
  unsigned int v2; 
  int v3; 
  int v4; 
  int v5; 
  int v6; 
  unsigned int v8; 
  v2 = *(_DWORD *)(*(_QWORD *)(a1 + 312) + 32i64);
  if( a2 )
  {
    v3 = a2 - 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(v2);
          }
          else
          {
            v8 = v2 >> 25;
          }
        }
        else
        {
          v8 = v2 >> 27;
        }
      }
      else
      {
        v8 = v2 >> 29;
      }
    }
    else
    {
      v8 = v2 >> 28;
    }
  }
  else
  {
    v8 = v2 >> 26;
  }
  return v8 & 1;
}

Referenced by:

IovUtilIsInFdoStack
IovpCallDriver1
IovpCallDriver2
VfIoDeleteDevice
VfIrpLogRecordEvent
VfPnpVerifyIrpStackDownward
VfPnpVerifyIrpStackUpward
ViPnpVerifyMinorWasProcessedProperly