Your cat is suffering from intestinal parasites like “hook worms” that is resulting in its weight loss, diarrhea and eating disorders problems. So you can use any kind of medicine that can be helpful in curing your cat.
You need to change the cat food as well. Try some boiled chicken. It can like this new flavor. Take your cat to vet so that he can suggest you some medicines for treatment of these worms.
Actually my cat didn't make it. He was already in kidney failure and the diagnosis was 95% cancer. I actually said my farewell this morning. He lived a very healthy life until this.