@Override
	public int assignAddress(DataType dt, PrototypePieces proto, int pos, DataTypeManager dtManager,
			int[] status, ParameterPieces res) {
		if (res.address.getAddressSpace() == stackEntry.getSpace()) {
			return SUCCESS;	// Parameter was already assigned to the stack
		}
		int grp = stackEntry.getGroup();
		// We assign the stack address (but ignore the actual address) updating the status for the stack,
		// which consumes the stack resources.
		ParameterPieces unused = new ParameterPieces();
		status[grp] =
			stackEntry.getAddrBySlot(status[grp], dt.getLength(), dt.getAlignment(), unused);
		return SUCCESS;
	}
Constructor for use with restoreXml
@param res is the resource list
@param val is a dummy variable
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/protorules/ExtraStack.java