MB3 175a: Minimizing Exertion Regarding Emptying a Storehouse on Shabbos (333:3); Saving Food on Shabbos from a Fire (334:1)

Emptying a wagon on Shabbos is prohibited even if it arrived on Friday (עובדא דחול, טירחא יתירא) except for what is needed.

Putting a fire out on Shabbos is permitted even if there is a remote chance it could be life-threatening. If it's not life-threatening, how much food can you save from the house?