import typing


def dirOffset(d: typing.List[int]) -> int:
	"""
	Returns the actual file-relative offset of the content pointed at
	by the tuple of uint16_ts `d` that represents the DirEntry in question
	"""
	offset = d[0] + ((d[1] & 0xFF) << 16) + (d[4] << 24)
	return (offset - 1) * 0x200