I'm not expecting any rigor in the following and the answers...since we're dealing with Dirac deltas in the context of QFT.
Consider the integral
$$ \int d^4q\ \Theta(q_0)\Theta(p_{3,0}+q_0)\ \delta((p_3+q)^2)\delta((q^2))\frac{1}{(q+p_2)^2-m^2+i\epsilon} $$
The $p$'s and $q$'s are all Minkowski 4-vectors and $\ p_3=p_1+p_2$. For simplicity one can work in the $p_3$ CM-Frame so that $\ p_3 =(M, \vec{0})$.
I have problem with the deltas (since they are coupled), I was thinking about the $q_0$ integration first, how would you guys proceed doing the $q_0$-integration?. I use the composition formula for the Dirac delta Dirac Delta Comp. Wikipedia, but when I replace $q_0$ in the argument of the other delta I get something like $\delta(M)$ where $M$ is the mass of $p_3$. This delta makes no sense to me since we're not even integrating over $M$? Anyone know how to do this integral from the begining? Any hint appreciated, thanks.