private boolean allocateReg(int count, int regType, DataType dt, List<Register> result) {
		int newNextReg = nextReg[regType] + count;
		if (newNextReg > regs.get(regType).size()) {
			return false;
		}

		int remainingSize = dt.getLength();
		for (int regNum = nextReg[regType]; regNum < newNextReg; regNum++) {
			Register reg = getBestFitRegister(regs.get(regType).get(regNum), remainingSize);
			remainingSize -= reg.getMinimumByteSize();
			result.add(reg);
		}
		nextReg[regType] = newNextReg;
		return true;
	}
Creates a new golang function call storage allocator for the specified Ghidra Language.
<p>
See {@link GoRegisterInfoManager#getRegisterInfoForLang(Language, GoVer)}

@param program {@link Program}
@param goVersion version of go used to create the program
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/GoParamStorageAllocator.java