This may be something well known, but...
I am working now on a set of prophecies of the evil to beset the Buddhist community after the Buddha's death. These (they are relatively well known) are cast as dreams of King Kṛkin, who lived in the distant past, and whose dreams were interpreted by the Buddha Kāśyapa (some sources say this was his son!) as pertaining to his far future, namely, our time, more or less. Anyway, one of the dreams is that a monkey will be consecrated as king, which is interpreted to mean that a hermaphrodite will be consecrated king. I've looked (sort of, not exactly sure even how to look for this!) to see whether this is considered a sign of decline, but I've come up empty. Probably i'm just looking in the wrong place... but one of you śiṣṭas must know...?
J. SilkLeiden University
Leiden University Institute for Area Studies, LIAS
Matthias de Vrieshof 3, Room 0.05b
2311 BZ Leiden
copies of my publications may be found at