Complex sentence: In the alternate ending, the entire sequence is said to have been illusions holding Gonbe's spirit captive around the ruins of the Daimyo's castle: he, Otae and his comrades are freed by a traveling Yamabushi and ascend to heaven.
Split into simpler sentences: In the alternate ending, the entire sequence is said to have been illusions holding Gonbe's spirit captive around the ruins of the Daimyo's castle. He, Otae and his comrades are freed by a traveling Yamabushi and ascend to heaven.