While reading a paper published at Physical Review Letters, I came across an integral, Eqns. (6) and (7) $$\text{Im} \int_{0}^{\omega} \int_{2M}^{2(M-\omega')}{{\frac{{\rm d}r}{1-\sqrt{\frac{2(M-\omega')}{r}}}}(-{\rm d}\omega')}=4 \pi \omega(M-\frac{\omega}{2})$$ The paper mentions this integral was performed using contour integration. Please explain how does one arrive at the answer and what are the implicit assumptions.
NB. The paper has already received more than 1460 citations.