From an old one line joke, To Mess up Completely
Here's the punchline, "He was so messed up, he sent his wife out in the yard to play with the kids, went up stairs, and fucked the dog."
In the book, "The Right Stuff" After his space capsule sank, Astronaut Gus Grissom didn't recieve the full honors accorded to Al Shepard, because with the sinking, Grissom, "screwed the pooch." e.g. dogfuck