ISLAMABAD , Pakistan ( AP ) - The resignation of Pakistani President Pervez Musharraf with legal immunity is a key option being discussed in talks that are under way in an effort to avoid his looming impeachment , an ally of the embattled leader said Friday .