#54006 introduced new NativeMemory APIs including one that wraps aligned_alloc where available.
On Apple targets this is only available on 10.15 or later but we currently target 10.13 and as such have a #if HAVE_ALIGNED_ALLOC && !defined(__APPLE__) check.
Ideally we would update this to correctly check for the availability of aligned_alloc (either via CMake magic or some existing Apple specific define) so we can light up on iOS, OSX, and Apple Silicon.