@Override
	public void decode(Decoder decoder) throws DecoderException {
//		int el = decoder.openElement(ElementId.ELEM_HIGH);
		long symref = 0;
		offset = -1;
		for (;;) {
			int attribId = decoder.getNextAttributeId();
			if (attribId == 0) {
				break;
			}
			if (attribId == AttributeId.ATTRIB_OFFSET.id()) {
				offset = (int) decoder.readSignedInteger();
			}
			else if (attribId == AttributeId.ATTRIB_SYMREF.id()) {
				symref = decoder.readUnsignedInteger();
			}
		}
		decodeInstances(decoder);
		if (symref != 0) {
			symbol = function.getGlobalSymbolMap().getSymbol(symref);
		}
		else {
			Msg.warn(this, "Missing symref attribute in <high> tag");
		}
		if (symbol == null) {	// If we don't already have symbol, synthesize it
			DataType symbolType;
			int symbolSize;
			if (offset < 0) {		// Variable type and size matches symbol
				symbolType = type;
				symbolSize = getSize();
			}
			else {
				symbolType = null;
				symbolSize = -1;
			}
			GlobalSymbolMap globalMap = function.getGlobalSymbolMap();
			symbol = globalMap.populateSymbol(symref, symbolType, symbolSize);
			if (symbol == null) {
				Address addr = represent.getAddress();
				if (offset > 0) {
					addr = addr.subtract(offset);
				}
				symbol = globalMap.newSymbol(symref, addr, symbolType, symbolSize);
				if (symbol == null) {
					throw new DecoderException("Bad global storage: " + addr.toString());
				}
			}
		}
		if (offset < 0) {
			name = symbol.getName();
		}
		symbol.setHighVariable(this);

//		decoder.closeElement(el);
	}
Constructor for use with restoreXml
@param high is the HighFunction this global is accessed by
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/HighGlobal.java