Split out the arm64 ID field comparison function
This will be useful in an update for finding which HWCAPS to set.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31200
(cherry picked from commit 04f6015706f73c90ba78699953d0d4d0b0237298)