Merge "Use as much of the macOS endian support as we can."
am: e5abcddf4e

Change-Id: I4f0d5f330a9e9fc447a3696c6dfc254ce8b38e3d