Saved by Luffy, who in turn is probably saved by Scopper when hes conflicted about Shamrocks' appearance. When he's free i have no idea, but I assume the person hes been talking to will eventually be the reason he doesnt go apeshit on Elbaf.
He's definitely also just going to be an ally to fight God Knights in the end. I doubt he's actually evil
So shp have
A whole yonko crew
Loki who can solo a yonko crew
Left nut of the pirate king
the legendary giant pirates complete with their twin pirate captains
The entire army of elbaf
vegapunk tech
vs
Shamrock and Gunko...
Even if they get reinforcements, the HK all would have to be above yc1 and Shamrock would have to be above yonko level to make this even remotely fair.
I don't think HK will get beaten easily. And i don't think HK would be that strong. So either HK aren't the arc villains, or Loki betrays shp and becomes a villain and joins the HK even temporarily.
I think Loki will turn evil.