On arm64 the read/write flag is set on the esr register. Adding this flag check for arm64 enables a more accurate print out for sanitizer signal reports and matches the behavior on x86.
Fixes bug: https://github.com/llvm/llvm-project/issues/27917
These tests are now passing on for asan, tsan, and ubsan on Darwin arm64 and arm64e:
Posix/illegal_read_test.cpp Posix/illegal_write_test.cpp
rdar://92104440