Hello, Thank you for writing to us.
I can understand how difficult it is to have a problem with these many conditions.
First of all, let me confirm that the surgery to inguinal hernia, in most of the cases, wouldnt lead to the problems in erection, as the blood vessels and nerves that are involved in erection are deep seated in the penis, so that there is a less chance for their damage to occur in this type of surgery. As in your case, you have not mentioned about other associated disorders like Hypertension, Diabetes, heart disease etc. All these diseases have more or less association with erectile dysfunction. Also the psychological factor plays a key role in the erection in men. As your testosterone levels are normal, I suggest you to consult a physician for a formal physical examination, and to rule out other associated disorders before they get complicated.
Hope this helps.