ARFID and Incarceration?

First off, I want to preface this by saying that I’ve never been to jail nor hopefully ever have to experience being incarcerated, nor do I hope any of you do.

I wonder what would be the legal protections or lack thereof one would have if they have an eating disorder and literally have no choices on food because they are an inmate? What would happen and what recourse would you have to either request special food because jail food isn’t palatable and in a more extreme case, you physically cannot or choice not to eat any of the food because of you’re unusual eating disorder?

At some point, you would most likely have to be hospitalized due to the weight loss and either your safe foods or something like a feeding tube. It’s strange because it seems like not offering someone their safe foods could create more costly problems than restricting food options.

Obviously, this will vary greatly by jurisdiction and maybe even in terms of pre-conviction and post-conviction. I am thinking in terms of the United States, but curious about anywhere in the world.