Deductions & credits

You essentially have a deemed sale by the corporation.

 

@Rick19744 is excellent at explaining the details of these transactions.