as per IAS 36 if there is any impairment of CGU, first of all you need to charge that to goodwill. reason of that is because of there are indicators of impairment it means your business is going to go down and your goodwill is not the same as before,
after that your need to proportionate the remaining amount of impairment between the remaining items of CGU.