arm64: Add support for hooks to handle undefined instructions