public RegisterValue clearBitValues(byte[] mask) {
		if (mask.length != bytes.length / 2) {
			throw new IllegalArgumentException(
				"Mask length must be the same length as this objects mask");
		}
		byte[] resultBytes = new byte[bytes.length];
		int n = mask.length;
		for (int i = 0; i < n; i++) {
			int clearMask = ~mask[i];
			resultBytes[n + i] = (byte) (bytes[n + i] & clearMask);
			resultBytes[i] = (byte) (bytes[i] & clearMask);
		}
		return new RegisterValue(register, resultBytes);
	}
Clears the value bits corresponding to the "ON" bits in the given mask.
@param mask the byte array containing the mask bits to clear.
@return a new MaskedBytes object containg the original value bits and mask bits cleared 
where the passed in mask bits were "on".
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/RegisterValue.java