A 7-year-old patient presents with a painless, intermittent limp limited range of motion in the right leg, persistent pain occasional muscle spasms in the right anterior thigh Examination reveals a mildly restricted hip abduction with internal rotation, proximal thigh atrophy, and a slightly short stature. The most likely diagnosis