private void generateLocation(VarnodeTpl vntpl, VarnodeData vn) {
		vn.space = vntpl.getSpace().fixSpace(walker);
		vn.size = (int) vntpl.getSize().fix(walker);
		if (vn.space == const_space) {
			vn.offset =
				vntpl.getOffset().fix(walker) & ConstTpl.calc_mask[vn.size > 8 ? 8 : vn.size];
		}
		else if (vn.space == uniq_space) {
			vn.offset = vntpl.getOffset().fix(walker) | uniqueoffset;
		}
		else {
			vn.offset = vn.space.truncateOffset(vntpl.getOffset().fix(walker));
		}
	}
Convert a varnode template into a concrete varnode
@param vntpl is the varnode template
@param vn is the resulting concrete varnode
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/PcodeEmit.java