I don't know your stats, but you've got a 28/38/34 pro/carb/fat split- That's a horrible macros split. The reason you're losing muscle is because your diet sucks. Sorry, but it's the truth.
IMO it's not that bad of a split it's just that it is not nearly enough food. The protein and carbs should be way higher bringing the overall calories up some.