Broken Tranny part

You will need to replace the speedo drive gear.
The ripped part is where the cable connected to the gear, so take that clip off and pull the gear and shaft out of the housing.
Afterwards you will see what you need.