@Nonnull
	public static AndroidRes fromArsc(@Nonnull BinaryResourceFile arsc) {
		List<Chunk> chunks = arsc.getChunks();

		// Maps to collect data into.
		Int2ObjectMap<String> resIdToName = new Int2ObjectOpenHashMap<>();
		Object2IntMap<String> resNameToId = new Object2IntOpenHashMap<>();
		Map<String, String> attrToFormat = new TreeMap<>();
		Map<String, Object2LongMap<String>> attrToEnum = new TreeMap<>();
		Map<String, Object2LongMap<String>> attrToFlags = new TreeMap<>();
		Map<String, BinaryResourceValue> attrToSimpleResource = new TreeMap<>();
		Map<String, Map<Integer, BinaryResourceValue>> attrToComplexResource = new TreeMap<>();
		Map<String, Set<String>> formatToAttrs = new TreeMap<>();

		// Parse the chunks in the ARSC, extracting all entries
		for (Chunk chunk : chunks) {
			if (chunk instanceof ResourceTableChunk) {
				ResourceTableChunk resourceTableChunk = (ResourceTableChunk) chunk;
				for (PackageChunk packageChunk : resourceTableChunk.getPackages()) {
					int packageId = packageChunk.getId();
					for (TypeChunk typeChunk : packageChunk.getTypeChunks()) {
						int typeId = typeChunk.getId();
						String typePrefix = typeChunk.getTypeName();
						typeChunk.getEntries().forEach((entryId, entry) -> {
							int entryResId = packageId << 24 | typeId << 16 | entryId;
							String key = entry.key();
							String mapKey = typePrefix + "/" + key;
							resIdToName.put(entryResId, mapKey);
							resNameToId.put(mapKey, entryResId);
							if (entry.isComplex()) {
								Map<Integer, BinaryResourceValue> values = entry.values();
								attrToComplexResource.put(mapKey, values);
							} else {
								BinaryResourceValue value = entry.value();
								attrToSimpleResource.put(mapKey, value);
							}
						});
					}
				}
			}
		}

		return new AndroidRes(resIdToName, resNameToId, attrToFormat, attrToEnum, attrToFlags,
				attrToSimpleResource, attrToComplexResource, formatToAttrs);
	}
@param arsc
		ARSC resource file to parse resource information from.

@return Resource information model unpacked from the chunked data.
recaf-core/src/main/java/software/coley/recaf/util/android/AndroidRes.java