07 Honda Rancher 420 Question

I was riding my rancher last weekend and got stuck in some really trick soupy mud. When my buddies started pushing me out I heard this clunking noise and the rear wheels would not spin. I was assuming the rear end broke seeing how they tend to do that on Hondas. So I put it on a jack and put it in gear and noticed that the top part of the drive shaft that connects to the motor was spinning but not the shaft. Then I turned it off and turned my tires with my hand and it moved both tires and the shaft but not the part connected to the motor.
So my question is, is the pinion broken or is it just this drive shaft. This is much first time having this problem and not sure on what to do next. Any help would be appreciated. Thanks

07 Honda Rancher 420 Question

I was riding my rancher last weekend and got stuck in some really trick soupy mud. When my buddies started pushing me out I heard this clunking noise and the rear wheels would not spin. I was assuming the rear end broke seeing how they tend to do that on Hondas. So I put it on a jack and put it in gear and noticed that the top part of the drive shaft that connects to the motor was spinning but not the shaft. Then I turned it off and turned my tires with my hand and it moved both tires and the shaft but not the part connected to the motor.
So my question is, is the pinion broken or is it just this drive shaft. This is much first time having this problem and not sure on what to do next. Any help would be appreciated. Thanks