If one ate the chick before it emerged from the egg, the Rambam wrote in chapter 3 of Ma'achalot Assurot, law 8, and this is his wording: But an egg of a pure bird in which the chick has begun to form, and one ate it, he is given lashes of rebellion. Thus far his words. And even though in the Gemara [64a] they derived this from "every swarming thing that swarms," it is a mere asmachta, as is explained there in the Gemara and as I wrote in section 1. However, there are some among the Rishonim who hold that while there is no Torah prohibition on account of the prohibition of swarming things, nevertheless it is nevelah from the Torah, like a fetus of a beast; and the Shas which says that the verse is a mere asmachta, this is regarding the prohibition of swarming things [Sefer HaTerumah]. And his reasoning appears to be that since it is meat, why should it not be forbidden on account of nevelah? And from the Rambam it is explicitly proven that he does not hold so, as I wrote. And so too the Rashba, of blessed memory, [in Torat HaBayit, gate 4] disagrees with this, see there. And I am surprised that he did not bring a proof for his words from the Yerushalmi [Beitzah chapter 1, halacha 1] which says there explicitly: eggs that have formed chicks, one does not receive lashes for them on account of nevelah, see there. And it is not similar to a fetus situated in the womb of the mother, for the mother requires shechitah, and if so, automatically when she miscarries it is nevelah since it was not slaughtered; but eggs, which the Torah permitted to be eaten as they are, it did not distinguish between whether there is a chick in it or there is no chick in it, for as long as it is situated in the egg, it has the status of an egg from the Torah. And therefore it seems to me that his intention is this: that when he removed the chick from the egg and it is dead, it is subject to the prohibition of nevelah, for since it is on its own, it has left the permission of an egg; but when he ate it with the egg, all agree that there is no prohibition of nevelah in it. And perhaps in such a case even the Rambam agrees, and the Yerushalmi is also dealing with where he ate it while it was in the egg. And perhaps even the Rashba would agree to this [even though from his wording in Torat HaBayit it does not imply so, nevertheless we can say so with difficulty, see there; but according to this, the Sefer HaTerumah should not have pressured himself regarding what they said in Chullin there that it is a mere asmachta, and we would say that this is while it is in the egg].
אם אכל את האפרוח קודם שיצאה מהביצה כתב הרמב"ם בפ"ג ממ"א דין ח' וז"ל אבל ביצת עוף טהור שהתחיל האפרוח להתרקם בה ואכלה מכין אותו מכת מרדות עכ"ל ואף שבגמ' [ס"ד.] דרשו מכל השרץ השורץ אסמכתא בעלמא הוא כמבואר שם בגמ' וכמ"ש בסעי' א' מיהו יש מהראשונים שסובר דנהי דמשום איסור שרץ ליכא מן התורה מ"מ נבילה היא מן התורה כמו נפל דבהמה והש"ס שאומר דקרא אסמכתא בעלמא זהו לגבי איסור שרץ [סה"ת] וטעמו נראה דכיון דהוא בשר למה לא תאסור משום נבילה ומהרמב"ם מוכח להדיא דלא ס"ל כן כמ"ש וכן הרשב"א ז"ל [בתה"ב שער ד'] חולק על זה ע"ש ותמיהני שלא הביא ראיה לדבריו מירושלמי [ביצה פ"א ה"א] שאומר שם מפורש בצים שריקמו גוזלות אין לוקין עליהן משום נבילה ע"ש ולא דמי לעובר המונח במעי האם שהאם צריכה שחיטה א"כ ממילא כשהפילה הוי נבילה דהא לא נשחטה אבל בצים שהתורה התירתן לאכלן כמו שהם לא חילקה בין יש בה אפרוח ובין אין בה אפרוח דכל זמן שמונחת בהביצה יש לה דין ביצה מן התורה ולכן נ"ל דכוונתו כן הוא דכשהוציא האפרוח מהביצה והיא מתה יש בה משום נבילה דכיון שהיא בפ"ע נפקא מהיתר דביצה אבל כשאכלה עם הביצה הכל מודים שאין בה איסור נבילה ואולי בכה"ג גם הרמב"ם מודה והירושלמי מיירי ג"כ שאכלה בעוד שהיא בהביצה ואולי גם הרשב"א יודה לזה [אף שמלשונו בתה"ב לא משמע כן מ"מ נוכל לומר כן בדוחק ע"ש אך לפ"ז לא היה לו לסה"ת לדחוק א"ע במה שאמרו בחולין שם דהוי אסמכתא בעלמא ונאמר דזהו בעודה בביצה]: