And this is its explanation: Even one who makes a sukkah merely for shade, not for the sake of the mitzvah of sukkah, and it takes the case of Shavuot which is a time of heat, and he makes a sukkah for shade—it is forbidden to take wood from it, whether from the walls or from the roof, because of dismantling a tent. And even if he did not join them together with nails, since he leaned them for a tent—it constitutes dismantling. And even if it was shaky from the eve of Yom Tov, such that his mind was on its falling, nevertheless, since it was set aside during twilight—it is set aside for the entire day. And Rabbi Shimon permits it, as he does not hold of muktzah. But in a case where it was not shaky, even Rabbi Shimon admits: since his mind was not on this—it is like dried figs and raisins. And if after he prepared it, he leaned bundles against it without joining them—the law of a tent does not apply to them, and it is permitted to take them even according to Rabbi Yehuda. And this is specifically when his intention was not to thicken the tent, for if his intention was to make it thick even after its preparation—they are nullified to the tent, and there is in them the issue of dismantling a structure (Taz, subsection 6). And there is one who says that after its preparation, even if he intended to thicken it—it is not nullified to the structure (Rashal). And the main point is like the first opinion. And some say further: that specifically a bundle of reeds that he bound is not nullified to the walls, but reeds that he did not bind—are nullified, and it is dismantling a tent even if he leaned them after its preparation (Bach). And before its preparation, even if he bound them—they are nullified. And on the roof they are never nullified when he bound them, for it is not the way to place sechach in a bundle, and certainly he placed them only to dry them (ibid.). And there is one who disagrees regarding the walls, and holds that even without binding them—they are not nullified after its preparation (Taz ibid., and so it is implied in the Beit Yosef). And this is what our teacher, the Beit Yosef, wrote in section 8: One may take wood leaning against the walls of the sukkah and kindle fire with them. Thus far his words, meaning: that he leaned them after the preparation of the sukkah, and even if he did not bind them, and even though he leaned them to thicken it (Magen Avraham, subsection 11). And some disagree regarding thickening it, as I have written. And our teacher, the Rema, wrote: And the same law applies if he threw bundles onto the sechach, for they are not nullified relative to the sechach. And if his intention is to kindle them—it is permitted to take them from there. Thus far his words, meaning: that bundles on the roof even before its preparation—are not nullified, as I have written. But without bundles—they are nullified. And that which he wrote "if his intention is to kindle them"—his intention was to exclude if his intention was not to kindle them. But in an ordinary case—they stand for kindling (and so it is implied from Magen Avraham, subsection 13, see there carefully).
והכי פירושו: אפילו העושה סוכה בשביל צל בעלמא, שלא לשם מצות סוכה, ונקיט בעצרת שהוא זמן חום, ועושה סוכה לצל – אסור ליטול ממנה עצים, בין מהדפנות בין מהגג, משום סתירת אוהל. ואפילו לא חיברן יחד במסמרות, כיון שסמכן לאוהל – הוי סתירה. ואפילו היתה רעועה מערב יום טוב, דדעתו על נפילתה, מכל מקום מיגו דאיתקצאי לבין השמשות – אתקצאי לכולי יומא. ורבי שמעון מתיר, דלית ליה מוקצה. אבל שלא ברעועה גם רבי שמעון מודה: כיון שלא היה דעתו על זה – הוה כגרוגרות וצמוקים. ואם לאחר שתיקנה סמך לה חבילות בלא חיבור – אין עליהן דין אוהל, ומותר ליטלן אפילו לרבי יהודה. ודווקא שלא היתה כוונתו להעבות האהל, דאם כוונתו לעשותו עבה אפילו לאחר תקנתה – בטלים להאוהל, ויש בהם משום סתירת בניין (ט"ז סעיף קטן ו). ויש מי שאומר דלאחר תקנתה, אפילו נתכוין להעבותו – אינו בטל להבניין (רש"ל). והעיקר כדעה ראשונה. ויש אומרים עוד: דדווקא חבילה של קנים שאגדן לא בטיל להדפנות, אבל קנים שלא אגדן – בטלין, והוי סתירת אוהל אף שסמכן לאחר תיקונה (ב"ח). וקודם תיקונה אפילו באגדן – בטלין. ובגג תמיד אינן בטלין כשאגדן, דאין דרך להניח סכך באגודה, ובוודאי נתנן רק לייבשן (שם). ויש מי שחולק בדפנות, וסבירא ליה דגם בלא אגדן – אין בטלים לאחר תיקונה (ט"ז שם, וכן משמע בבית יוסף). וזהו שכתב רבינו הבית יוסף בסעיף ח: נוטלין עצים הסמוכים לדופני הסוכה, ומסיקין בהם. עד כאן לשונו, כלומר: שסמכן אחר תקיון הסוכה, ואפילו לא אגדן, ואף על פי שסמכן לעבותה (מגן אברהם סעיף קטן יא). ויש חולקין בלעבותה, כמו שכתבתי. וכתב רבינו הרמ"א: והוא הדין אם זרק חבילות על הסכך, דאינן בטלות לגבי הסכך. ואם דעתו להסיקן – מותר ליטלן משם. עד כאן לשונו, כלומר: דחבילות על הגג אפילו קודם תיקונה – אינן בטלות, כמו שכתבתי. אבל בלא חבילות – בטלות. ומה שכתב "אם דעתו להסיקן" – כוונתו לאפוקי אם היה דעתו שלא להסיקן. אבל בסתמא – עומדין להסקה (וכן משמע ממגן אברהם סעיף קטן יג, עיין שם היטב).