According to the Form 982 Instructions for Part II (page 3 of the PDF file):
If you check any of the boxes on lines 1a through 1c, you can elect, by completing line 5, to apply all or a part of the debt discharge amount to first reduce the basis of depreciable property (including property you elected on line 3 to treat as depreciable property). Any balance of the debt discharge amount will then be applied to reduce the tax attributes in the order listed on lines 6 through 13 (excluding line 10b). You must attach a statement describing the transactions that resulted in the reduction in basis under section 1017 and identifying the property for which you reduced the basis. If you don’t make the election on line 5, complete lines 6 through 13 (excluding line 10b) to reduce your attributes. See section 1017(b)(2) and (c) for limitations of reductions in basis on line 10a.
IRC Section 1017 also has more information.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"