Surgery cost?

I am from the United States and am currently in Japan I broke my ankle here and i do not have travel insurance, I can’t even fathom the bill in the US for the surgery, how much would this procedure cost me in Spain (I have flight benefits so not an issue)