Matthew Loflin was coughing up blood, struggling to breathe and losing consciousness in his cell while awaiting trial on drug-possession charges in this historic Southern city.