Based on @rbernon's work in !1088, with additional ARM support and
some cleanups.
--
This merge request has too many patches to be relayed via email.
Please visit the URL below to see the contents of the merge request.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4445