The sudden decline in sexual function in men in their forties may be caused by a deficiency of kidney energy and a decrease in androgen levels due to recent work stress and poor sleep, or it may be due to penile cavernous body filling dysfunction. It is best to go to the urology department of a regular hospital for further examination, including blood test for sex hormone level and penile blood flow Doppler examination to clarify the specific diagnosis before targeted treatment. If androgen level is insufficient and kidney qi is deficient, testosterone undecanoate capsule, Jin Kui Kidney Qi Pill and Wu Zi Yan Zong Pill can be taken orally for 4-8 weeks to effectively improve the symptoms. If the examination reveals that it is penile cavernous body blood filling dysfunction, you can take oral Rhodiola capsules and Thromboplasma tablets for 4-8 weeks, which can also effectively improve penile erection function and enhance male sexual function.