C Corp basis when property has liability

Hey guys, Basic question, From what I understand the shareholder basis from a TAX FREE transaction in a C Corp when contributing a property is decreased by the boot received (including the liability transferred) and that a gain is recognized only when that liability exceeds the basis of the property. But I am a little lost when the liability is bigger than the FMV of the property (rare scenario I know). For example: Adj Basis - FMV - Mortgage 100,000 - 120,000 - 210,000 In this case the shareholder basis will be 100,000?? Basis of Property: 100,000 + 110,000?? ( gain from liability excess over basis) - 110,000 = 100,000?? or bc the transaction is tax free the gain is only suppose to be the lesser of the gain or the boot?? resulting in a 10,000 basis?? ((100,000 + 20,000 (gain from adj - FMV) - 110,000 (boot from liability) = 10,000 And his taxable income 110,000?? 100,000 - 210,000 = 110,000 liability excess over basis?? I know is a little to much (I tried to simplify it) but really appreciate any help.