I need someone with a macOS device to test the `thread_get_register_pointer_values` code path because I have no such device.
Here is a diff that adds a test to the ntdll sync test that just calls `NtFlushProcessWriteBuffers`: [NtFlushProcessWriteBuffers-test.diff](/uploads/b84a0504ebd3d5f7b56813072d40122f/NtFlushProcessWriteBuffers-test.diff)