Thanks for your query.Based on the facts that you have posted it appears that you are getting pain in hip
joint while ejaculating.You have undergone endoscopic surgery
on hip joint and had this problem before surgery too.
I would like to state that the pain in hip joint is not related to ejaculation .
Please consult your orthopaedic surgeon
for evaluation and to rule out whether it is due to any pathology in hip joint .
You may need to take me non steroidal anti inflammatory drugs and pain killers like Ibuprofen
for a long time.