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

Change-Id: Ibbde302872dd5be798877868d2df217a39f43d44