I had that in mind when I typed it. 
Joking aside, that is sort of what really goes on. I read a really great book, called The Upward Spiral by Alex Korb (https://www.newharbinger.com/upward-spiral), which is primarily about depression, and another great book, Incognito, by David Eagleman (https://www.eagleman.com/incognito), which is more about how the brain works in general.
Both explain the neuroscience of how different parts of the brain, mostly NOT under your conscious control, are sort of fighting to see which one gets to control the body right then, and gain access to the executive function (i.e., “you”).
And why, when you are calm and thinking clearly, you wonder “why the heck did I do that stupid thing when it was against my intentions and goals?” It’s because the brain chemicals in your amygdala or hippocampus or whatever are signaling for you to do something, and your executive either gets taken over temporarily, or “convinced” by them, or just is too tired (i.e. ran out of serotonin to secrete) to override them.
After you kind of understand all of that, you realize - “Wait, I am not weak, or a bad person, or stupid. I am an electrochemical computer and my dopamine circuit was overriding my norepinephrine circuit at that time” or something along those lines - I am just cobbling together the words to get the concept across.
So really and truly, my executive process (me) was aware of the very strong desires to eat something, and I did have to resort to some tricks to shut those up because otherwise they would eventually wear me down, and I would “logically” decide that I had fasted enough, and then would rationalize that choice afterwards to avoid cognitive dissonance.
When really, there is nothing to reconcile. My lovely little logical self is just a passenger in a boat that it only occasionally gets to steer, and the best I can do is make sure I get longer turns at the wheel, and that I can figure out how to leave notes for the other captains so that they avoid the bigger icebergs.
Edit: Still technically fasting, I guess, coming up on the 48-hour mark, though I did have some all-fat almond/coconut creamer in my coffee just now, about 30 calories worth, so I don’t know if that counts or not.