It was pretty much in the beginning, will have to look it up (has been ages).

" Gilgamesh is an asshole, a liability, but the text seems to know that."

Kind of? It is not really condemned I think. He is still their powerful (god)king and might is right. (So he had the right to be an asshole).