Let $f(x,y)= ax^2+bxy+cy^2$, or similarly denote it by $(a,b,c)$. This question is about the case $(1,0,p)$ where $p$ is prime. Suppose I have one solution $\bar{x}_1=(x_0,y_0)$ for $f(x,y)=m$ for some odd integer $m$ with at least two prime factors.
Is there an algorithm to find a second solution $\bar{x}_1 \not=(\pm x_0,\pm y_0)$ that is better than $\mathcal{O}(m^2)$ ? Preferably, something much better than that... even something better than $\mathcal{O}(x_0y_0)$ if possible. Of course, brute force works...but is there something better? Specially when $p,m$ start to get bigger trial and error trough $(x,y) \in \mathbb{N}^2$ is not practical.
Edit 1: The solutions are over the integers. The algorithm need not be deterministic, just good in practice with better big-O notation work to find a solution than described above.