It was found that having sleep apnea could result in erectile dysfunction. A study was done on mice to see how their sexual activity was affected by the disorder. After a week the male mice that had shown signs of the disorder all had lowered levels of sexual activity. How can a sleeping disorder affect something as distant erectile function?
The cause isn’t due to the lack of testosterone. It is because the interrupted sleep cycles cause less of an enzyme to be developed. The enzyme is responsible for producing nitric oxide, which aids the blood necessary for healthy erections. If you are having problems in that department, you could try CPAP treatment for OSA. For all you know, the reason behind your problem might be as simple as you not getting the right kind of sleep.