Consciousness isn't really the output, it's the category of all possible not-too-pathological running states of the program. The output is whatever the organism does to or in its environment (production of speech, movement, decisions, etc).
Okay, but how do we get to the subjective experience of the experiencer? I don't see how what you've said accounts for conscious inner life.
No one has a good answer to that. But it's not necessary to answer that to conclude that whatever task a human can perform can be replicated by a sufficiently complex algorithm.
You also haven't really made any good-faith effort to read the neuroanatomy textbook I tried to suggest to you in another thread.
I did look for it yesterday but wasn't able to find a free version. Neglected to mention it because I was unable to comment (that restriction seems to have been lifted). I am genuinely interested in reading it.