And know that from the language of the Shas which says ibid. "a knife of idolaters, it is permitted to slaughter with it," it is clear that even ab initio it is permitted, and such is the language of the Tur and the Shulchan Aruch. Nevertheless, from the language of the Rambam at the end of chapter 7 of Laws of Idolaters, who wrote "a knife of idolaters that one slaughtered with, it is permitted because he is damaging," see there, it is clear that only ex post facto it is permitted. And one must reflect on our teacher, the Beit Yosef, for later in siman 142 he wrote according to the language of the Rambam, and here he wrote according to the language of the Shas and the Tur, see there. And it is possible that he follows his reasoning in his book Kesef Mishneh there, that the Rambam holds that the language "permitted" is not specifically ab initio, and therefore he was not precise with this language. And there is one who says that there it deals with a case where it requires hagalah [Shach subsection 3], and so it is implied from the words of our teacher, the Rema, there, see there. But regarding the words of our teacher, the Beit Yosef, it is impossible to say so, since he did not answer this way regarding the words of the Rambam, of blessed memory. Furthermore, it appears to me to distinguish that when there is another knife, certainly ab initio one should not slaughter with it, for even though there is no benefit in this, nevertheless it is a mitzvah to distance oneself from this; but when there is no other knife, it is permitted to slaughter with it ab initio. [And the Shas and the Tur, whose ruling is regarding the laws of slaughter, this is the explanation: a knife of idolaters, it is permitted to slaughter with it when there is no other, for when there is another, why should he use this? And the Rambam, who deals with the laws of idolaters regarding forbidden benefits, says that if they slaughtered with it, it is permitted. And the words of the Shulchan Aruch can also be explained thus, even though it appears that he did not intend this, as is proven from his words in Kesef Mishneh as I have written].
ודע שמלשון הש"ס שאומר [שם] סכין של עכו"ם מותר לשחוט בה מבואר דגם לכתחלה מותר וכן הוא לשון הטור והש"ע מ"מ מלשון הרמב"ם ספ"ז דעכו"ם שכתב סכין של עכו"ם ששחט בה ה"ז מותר מפני שהוא מקלקל ע"ש מתבאר דרק בדיעבד מותר וצ"ע על רבינו הב"י דלקמן סי' קמ"ב כתב כלשון הרמב"ם וכאן כתב כלשון הש"ס והטור ע"ש ואפשר דהולך לשיטתו בספרו כ"מ שם דהרמב"ם ס"ל דלשון מותר לאו דווקא לכתחלה ולכן לא דקדק בלשון זה ויש מי שאומר דשם מיירי כשצריכה הגעלה [ש"ך סק"ג] וכן משמע מדברי רבינו הרמ"א שם ע"ש אבל על דברי רבינו הב"י א"א לומר כן מדלא תירץ כן על דברי הרמב"ם ז"ל עוד נ"ל לחלק דכשיש סכין אחר וודאי דלכתחלה אין לשחוט בו דנהי דאין בזה הנאה מ"מ הרי מצוה להרחיק מזה וכשאין סכין אחר מותר לשחוט בו לכתחלה [והש"ס והטור דדינם לעניין שחיטה ה"פ סכין של עכו"ם מותר לשחוט בו כשאין אחר דכשיש אחר למה לו זה והרמב"ם דמיירי בדיני עכו"ם באיסורי הנאה אומר שאם שחטו בזה מותר וגם דברי הש"ע י"ל כן אף שנראה שלא כיון לזה כדמוכח מדבריו בכ"מ כמ"ש]: