=>(x1-1)[x2^2-x2(x1+x2-1)+x1x2+1]=-3
=>(x1-1)[-x1x2+x2+x1x2+1]=-3
=>(x1-1)(x2+1)=-3
=>x1x2+(x1-x2)-1=-3
=>(x1-x2)=-3+1-x1x2=-2-m+5=-m+3
=>(x1+x2)^2-4x1x2=m^2-6m+9
=>4^2-4(m-5)=m^2-6m+9
=>4m-20=16-m^2+6m-9=-m^2+6m+7
=>4m-20+m^2-6m-7=0
=>m^2-2m-27=0
=>\(m=1\pm2\sqrt{7}\)