These depreciation writeoffs occur at rising prices each time a property is sold at a capital gain (most of which reflects the land's rising site value).
Foreigners provided a large portion of the capital that fueled the runup in asset prices, so they will undoubtedly bear a good portion of the subsequent losses through dollar depreciation and writeoffs in the value of their U.S. financial assets.