Qualcomm Inc. tapped former San Diego U.S. Attorney Carol Lam to replace Louis Lupin as its general counsel Monday. Lupin’s departure comes on the heels of several punishing legal defeats, including a scorching order last week accusing the chipmaker and its lawyers of litigation misconduct.

Emily Kilpatrick, Qualcomm’s director of corporate communications, said Lupin was leaving for personal reasons. “He has been an outstanding leader and contributor to Qualcomm’s success over the past 12 years; however, he has decided to step down as general counsel and take a personal leave.”