The total energy is the rest energy plus the kinetic Energy, $E_f=γmc^2$, we can assume the term PC goes to zero and therefore potential energy is then the total energy of the object at rest. To present clarity to your question inspires us to look beyond the rest energy $E=m_0c^2$ of the object and notice that as the momentum increases the kinetic energy of the object becomes much more important than the rest energy.
Let's look at Energy and Momentum in Lorentz Transformations
Source of following : From Michael Fowler, University of Virginia
We have a formula for the total energy E = K.E. + rest energy,
so we can see how total energy varies with speed.
The momentum varies with speed as
How Does the Total Energy of a Particle Depend on Momentum?
It turns out to be useful to have a formula for E in terms of p.
Now
so
hence using p = mv we find
If p is very small, this gives
the usual classical formula.
If p is very large, so $c^2p^2$ >> $m_0^2c^4$, the approximate formula is
$E=cp$
{My note added here. As $p$, the momentum is very large in your equation and as $mc^2$ becomes negligible and we can essentially drop it from your equation $E_f^2=(mc^2)^2+(pc)^2$ and are left with $E^2=(pc)^2$ & {drop $(mc^2)^2$} and left with $E=pc$}
The High Kinetic Energy Limit: Rest Mass Becomes Unimportant!
Notice that this high energy limit is just the energy-momentum relationship Maxwell found to be true for light, for all $p$. This could only be true for all $p$ if $m_0^2c^4=0$, that is, $m_0=0$.
Light is in fact composed of “photons”—particles having zero “rest mass”... The “rest mass” of a photon is meaningless, since they’re never at rest—the energy of a photon
is of the form $0/0$, since $m_0=0$ and $v=c$, so “$m$” can still be nonzero. That is to say, the mass of a photon is really all K.E. mass.
In closing ...
We will really need to think hard on this as we stop photons for quantum computing.
But to answer your question Total Energy = potential Energy + kinetic Energy
Since $pc$ = the kinetic energy and as $p$ goes to zero the Total Energy = potential energy and therefore all that is left is $m_0c^2$, the rest energy. I hope looking at the momentum from both a zero to large value gives you a clearer understanding why the rest energy is the potential energy.
In reference to your question.
Now where is potential energy if $E_f=\gamma mc^2$ is the total energy?
$E_f^2=(m_0c^2)^2+(pc)^2$
$E_f^2=(m_0c^2)^2+(pc)^2$
$E_f=\sqrt{(m_0c^2)^2+(pc)^2}=\gamma mc^2$
$(\sqrt{(m_0c^2)^2+(pc)^2})^2=(\gamma mc^2)^2$
$(m_0c^2)^2+(pc)^2 = (\gamma mc^2)^2$
$(m_0c^2)^2=(\gamma mc^2)^2-(pc)^2$
$m_0c^2 = \sqrt{(\gamma mc^2)^2-(pc)^2}$
Finally the potential energy or rest energy is as expected the total energy $\gamma mc^2$
less the kinetic energy. Perhaps what you are looking for is putting the potential energy in terms of total energy and momentum.
{Please note it was important to qualify the masses into $m_0$ rest mass and $m_v$ a moving mass of the momentum. The rest mass will be a constant while the mass of the momentum term will vary as the velocity changes and extremely so as v->c}
$m_0c^2 = (\gamma mc^2)-(pc) = (\gamma mc^2)-(m_vvc)$