For a positive integer $n$, let $\omega(n)$ be the number of distinct prime divisors of $n$. For non-zero integers $m,n$ let $\left(\frac{m}{n}\right)$ be the Jacobi symbol.
For positive $X$, interpreted as a quantity that tends to infinity, how does one evaluate asymptotically the sum
$$\displaystyle \sideset{}{^\ast}\sum_{mn \leq X} 2^{\omega(m) - \omega(n)} \left(\frac{m}{n}\right)?$$
Here the summation $\sideset{}{^\ast}\sum$ denotes that the sum is over square-free $mn$. In particular, $m,n$ are square-free and co-prime.