(a) In General.—In addition to any other criminal penalty, restitution, or special assessment authorized by law, the court shall assess—
(1) not more than $17,000 on any person convicted of an offense under section 2252(a)(4) or 2252A(a)(5);
(2) not more than $35,000 on any person convicted of any other offense for trafficking in child pornography; and
(3) not more than $50,000 on any person convicted of a child pornography production offense.
(b) Annual Adjustment.—The dollar amounts in subsection (a) shall be adjusted annually in conformity with the Consumer Price Index.
(c) Factors Considered.—In determining the amount of the assessment under subsection (a), the court shall consider the factors set forth in sections 3553(a) and 3572.
(d) Imposition and Implementation.—
(1) In general.—The provisions of subchapter C of chapter 227 (other than section 3571) and subchapter B of chapter 229 (relating to fines) apply to assessments under this section, except that paragraph (2) applies in lieu of any contrary provisions of law relating to fines or disbursement of money received from a defendant.
(2) Effect on other penalties.—Imposition of an assessment under this section does not relieve a defendant of, or entitle a defendant to reduce the amount of any other penalty by the amount of the assessment. Any money received from a defendant shall be disbursed so that each of the following obligations is paid in full in the following sequence:
(A) A special assessment under section 3013.
(B) Restitution to victims of any child pornography production or trafficking offense that the defendant committed.
(C) An assessment under this section.
(D) Other orders under any other section of this title.
(E) All other fines, penalties, costs, and other payments required under the sentence.