; or (2) revoke the sentence and resentence the defendant under subchapter A. (b) Right to counsel (1) In general At a hearing conducted under subsection (a), the defendant shall have the right to be represented by counsel. (2) Court-provided counsel (A) In general If the defendant is financially unable to obtain representation by counsel for the hearing under subsection (a), the court shall appoint counsel to represent the defendant in the hearing. (B) Appointment; compensation Appointment and compensation of counsel under subparagraph (A) shall be in accordance with section 3006A. (c) Substance use disorder relapse If a defendant participating in the FAMILIES Program who is recovering from a substance use disorder suffers a relapse, the court— (1) shall notify each service provider that is working with the defendant under the FAMILIES Program