Borrow: intangible assets,
Loan: paid-in capital or equity.
Investing in subsidiaries with patented technology, accounting treatment from the perspective of the parent company is,
Borrow: long-term equity investment,
Accumulated amortization,
Loan: intangible assets,
Asset disposal gains and losses (or debits).