It seems like that into the sentence
I cooked the dinner for me myself
I need to insert another
myself because the actor and the receiver of the action is the same person (me).
But in such a case the sentence becomes weird
I cooked the dinner for myself myself
Is it right to say it that way?