how shocked and terrified the guard looked as the prisoner , thin as a wooden jumping jack , suddenly flung his legs around his waist like an amorous lover , then yanked his pistol from his holster and slammed the butt of it against his head .