PHAsset.requestContentEditingInput() provides original HEIC image if the image is not edited. However, if the image was edited in Photos app, a JPEG image will be provided instead.
For example, PHAsset.requestContentEditingInput() returns the following URL if the image is not edited:
file:///var/mobile/Media/DCIM/110APPLE/IMG_0026.HEIC
If the image is rotated in Photos, it returns the following URL:
file:///var/mobile/Media/PhotoData/Mutations/DCIM/110APPLE/IMG_0026/Adjustments/FullSizeRender.jpg
which has worse quality than the original image.