x86: Factorize duplicated inline assembly snippets