Vira Simhavaloka · by Virasimha
Chapter 104 · Shandatva: past deeds
षंडत्व — कर्मविपाकः
अथ नपुंसकत्वे कर्मविपाकहेतुमाह तत्प्रतीकारं च स्त्रीपण्योपजीवी षंडः चांडाल्यवकीर्णी षंडः कन्यादूषकः षंडः अंगुल्यादियोनिविदारणेन तु संभोगे षंडः स्यात् । अस्य प्रायश्चित्तं उक्तमेव कुर्यात्।तत्पापोपशांतये चांद्रायणद्वयं कुर्यात् । गां सुवर्णं च दद्यात् ।
Next, according to karmavipaka (fruit of past deeds), the text gives the cause of impotence, and its remedy. The text says that a man who lived by trading in women may become impotent. So may one who broke his vow with a chandala (an outcaste, in the old social order) woman. So may one who wronged a maiden. So may one who tore a woman's private parts with a finger or the like during union. His prayashchitta (making amends) is as already told. To ease that sin, he should keep two chandrayana (moon-phase fast) fasts. He should give a cow and gold.
Classical view, not medical advice.