Be careful. You've got stored energy in the pennant. Looks like the shaft snapped allowing the
gear to cant. I'd start by attaching a bulldog clip to the pennant to limit further damage. Then I'd remove the winch by removing the mounting bolts. Then you'll have several inches of slack in the pennant and you may be able to remove the
gear from the shaft.