@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof AssemblyPatternBlock)) {
			return false;
		}
		AssemblyPatternBlock that = (AssemblyPatternBlock) obj;
		int ckOffset = Math.min(this.offset, that.offset);
		int length = Math.max(this.length(), that.length());
		for (int i = ckOffset; i < length; i++) {
			if (checkRead(this.mask, i - this.offset, 0) != checkRead(that.mask, i - that.offset,
				0)) {
				return false;
			}
			if (checkRead(this.vals, i - this.offset, 0) != checkRead(that.vals, i - that.offset,
				0)) {
				return false;
			}
		}
		return true;
	}
Invert the mask bits of this pattern block

@return a copy of this pattern block with mask bits inverted
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/sem/AssemblyPatternBlock.java