; (8) materially restrict or impede covered platform users from uninstalling software applications that have been preinstalled on the covered platform or changing default settings that direct or steer covered platform users to products or services offered by the covered platform operator, unless necessary— (A) for the security or functioning of the covered platform; or (B) to prevent data from the covered platform operator or another business user from being transferred to the Government of the People's Republic of China or the government of a foreign adversary; (9) in connection with any covered platform user interface, including search or ranking functionality offered by the covered platform, treat the products, services, or lines of business of the covered platform operator more favorably relative to those of another business user and in a manner that is inconsistent with the neutral, fair, and nondiscriminatory treatment of all business users; or (10) retaliate against any business user or covered platform user that raises good-faith concerns with any law enforcement authority about actual or potential violations of State or Federal law on the covered platform or by the covered platform operator. (b) Affirmative defenses (1) In general It shall be an affirmative defense to an action under subsection (a) if the defendant establishes that the conduct was reasonably tailored and reasonably necessary, such that the conduct could not be achieved through materially less discriminatory means, to— (A) prevent a violation of, or comply with, Federal or State law; (B) protect safety, user privacy, the security of nonpublic data, or the security of the covered platform