On a gray mattress, a yellow dog whose head was cut into a splinter could hear three loud barks.