The iPrEx study was a randomised controlled efficacy trial of pre-exposure prophylaxis with coformulated tenofovir disoproxil fumarate and emtricitabine in 2499 men who have sex with men ( MSM ) and transgender women .