وَإِذَا أَفَاقَ الْمَجْنُونُ فِي بَعْضِ رَمَضَانَ: قَضَى مَا مَضَى مِنْهُ.
Translation: If a person affected by insanity regains sanity during part of Ramadan, that person makes up the days that have passed from it.
Quduri moves from unconsciousness to a different legal category: recovery from insanity. If a person regains sanity during Ramadan after an earlier portion of that month passed in that state, Quduri requires make-up of the earlier period.
The passage must not be read as if recovery during Ramadan and a condition lasting throughout the entire month were identical; the commentaries distinguish them.