Appears to be siding with Muramasa, though his true intentions remain a focal point of mystery during this arc.
It is revealed that Muramasa’s primary goal was never to liberate the Zanpakuto, but to use Yamamoto's spiritual pressure to break the seal on his master, Koga Kuchiki. Bleach Episode 248
To prevent their interference, the Ryujin Jakka (Yamamoto's Zanpakuto spirit) creates a massive wall of fire that traps the captains and Ichigo. Appears to be siding with Muramasa, though his
Successfully manipulates the Zanpakuto spirits to achieve his master's freedom. Appears to be siding with Muramasa