I'd cut away the roofing membrane from the soft spots and inspect the decking material. You'll have to cut out the soft and damaged material and also inspect the cross members to see if they're wood and also rotted. Replace all removed material with new, then determine type of membrane, patch, and coat the whole roof will sealer.
If the tear had been caught in time, you'd have had a simple job with just some Eternabond tape.