Better: memory-map both source and output.
Example:
: The game reads the main re_chunk_000.pak first and then layers the "patch" files on top. These patches take priority, allowing them to override original game files without actually modifying the base archive. rechunk000pak better