Motorola had ~$3B in cash when acquired. Google previously sold their set-top box unit for $2.35B and realized about $1.7B in tax benefits from previous losses. However since acquiring it has taken $1.038B in losses, which is $0.67B post-tax. There will be another write down for the lost goodwill less the value of the remaining IP that should be worth very approximately $1B. So including the $3B from Lenovo, they recouped approximately $10.4B of the initial $12.5B purchase price.
Edit: Previous version excluded cash.