Buy a used tranny from Mazda Heaven or equivilent
Replace the defective gear
Pull it and take to a shop for rebuild
other