; (B) by redesignating paragraph (11) as paragraph (12); (C) by inserting after paragraph (10) the following: (11) is subject to a court order that prohibits such person from having under his or her custody or control, owning, purchasing, possessing, or receiving any firearms, or requires the surrender or removal of firearms from the person, provided that the order— (A) is issued in a manner consistent with the due process rights of the person; and (B) is based on a finding that the person poses a danger of causing harm to himself, herself, or others by having access to a firearm; or ; and (D) in paragraph (12), as so redesignated, by striking through (10) and inserting through (11) ; and (2) in subsection (g)— (A) in paragraph (8)(C)(ii), by striking or at the end; (B) in paragraph (9), by striking the comma at the end and inserting ; or ; and (C) by inserting after paragraph (9) the following: (10) is subject to a court order that prohibits such person from having under his or her custody or control, owning, purchasing, possessing, or receiving any firearms, or requires the surrender or removal of firearms from the person, provided that the order— (A) is issued in a manner consistent with the due process rights of the person