Ranbaxy Reports Quarterly Loss Ahead of Sun Pharma Acquisition