PHAssetMediaSubtypePhotoHDR is unrelated to gainmap photos. It is referring to the fact that a photo has been captured with higher dynamic range as an exposure bracket, and has been merged and tone-mapped back to LDR. It's the HDR before we had real HDR :)