The Ari discusses the specific rules governing gilgul (transmigration of souls) for women, explaining that women's souls can reincarnate into women or animals, and explores the different spiritual mechanisms of gilgul as they apply to female souls.
והנה מי שלא תקן רק מלכות של עשיה, אין בו רק נפש מן הנפש שבעשיה. ומי שתקן גם ז"א דעשיה, יהיו בו נפש רוח מן העשיה. ואם תקן גם אימא דעשיה, יהיו בו נר"ן מן העשיה. וכן עד"ז, עד שנמצא, כי מי שתקן כל חמשה פרצופים דעשיה, יש לו נרנח"י, וכל חמשה בחינות אלו, כל בחינה מחמשתן, שלימה בשלשה חלקיה, שהם עבור, ויניקה, ומוחין כנזכר בפסוק ומעיל קטן תעשה לו אמו וגו', נקראת נפש שלימה דעשיה, ואז יזכה אל הרוח מן היצירה. וגם בחלק זה הנקרא רוח, יש בו כל חמשה מדרגות הנז', וכלם נקראים רוח שלם דיצירה. וכן עד"ז בנשמת הבריאה. וכן בחיה. וכן ביחידה. ואין להאריך בזה עתה: ועתה צריך שנבאר, חלוק אחד שיש, בין הנפש של העשיה, אל שאר החלקים, שמן היצירה, והבריאה, והאצילות. ובזה יתבאר ג"כ תימא גדולה, שאיך אפשר שמי ששרשו במלכות דעשיה, יוכל לעלות עד הכתר דעשיה כנזכר, שא"כ נמצא, שכיון שכל בני ישראל מוכרחים להתגלגל, עד שיושלמו בכל נרנח"י, נמצא שמוכרח הוא שכלם יתעלו בכתר דעשיה, ובכתר דיצירה, ובכתר דבריאה. וכל שאר הבחינות יהיו בטלים. ואמנם זה לא יעלה על הדעת, כי פשוט הוא אצלינו, כי יש מבני ישראל אנשים מבחי' מלכות, ויש מן היסוד וכו', כנזכר בתחלת ספר התקונים, דאית בהו ראשי אלפי ישראל מצד הכתר, וחכמים מצד החכמה, ונבונים מן הבינה: ואמנם באור ענין זה הוא תלוי במה שנבאר, כי יש חלוק בין העשיה, לשאר שלשה העולמות שלשתם ביחד. והוא באופן זה, דע, כי בענין העשיה לבדה, הוא באופן זה, כי מי ששרשו במלכות דעשיה, פשוט הוא, כי נפשו היא במלכות דעשיה בדוקא, אמנם עכ"ז, ע"י תקון מעשיו, מזדככת נפשו, מדרגה אחר מדרגה, עד שתתעלה היא עצמה בכתר דעשיה, ותוכלל ותתעלה עד שם ממש. אבל עכ"ז שעלה עד הכתר דעשיה, עדיין שם איננו רק בבחי' מלכות דכתר דעשיה, כי אין שרשו אלא מבחי' מלכות, אבל מוכרח הוא שצריך שיזדכך עד שיעלה עד הכתר דעשיה ממש, אע"פ שעדיין אז איננו נקרא, רק מבחי' מלכות דכתר דעשיה.
Know that sometimes a man may reincarnate into the body of a woman, because of a sin, (cultural context) or something similar. Now this woman who has received the soul of a man, will not be able to conceive and become pregnant. ... This woman will need great merit to enable her to become pregnant and give birth. The only way it can be done is that some other feminine soul must enter her as an ibur. However, she cannot give birth to sons for two reasons. The first is [as follows:] There is a verse that says, "…If a woman puts forth seed, and a male child is born" (Lev. 12:2). In this case, the woman is a male, just like her husband. She cannot give birth to boys, only to girls. The second reason is that the feminine soul that has entered her does so only as an ibur, in order to help her become pregnant and give birth. Once this woman gives birth, that soul does not need to stay there any longer for no reason. And then, at the time that she gives birth, that [feminine] soul enters into the fetus as an actual Gilgul, and not as an Ibur, like it was at first. That is why the child that is born most be female and not male. (the text goes on the explain how sometimes it is possible for her to give birth to a male soul, when the male soul currently in her enters to child, and several other scenarios).