; and (iv) the extent to which such government is strengthening democracy in Pakistan, including protecting freedom of expression, assembly, and religion. (2) Authority and uses of funds (A) Funds appropriated by this Act for assistance for Pakistan may be made available notwithstanding any other provision of law, except for section 620M of the Foreign Assistance Act of 1961. (B) Funds appropriated by this Act under the heading International Narcotics Control and Law Enforcement shall be made available for border security programs in Pakistan, following consultation with the Committees on Appropriations. (C) Funds appropriated by title III of this Act shall be made available for programs to promote democracy and for gender programs in Pakistan. (3) Withholding Of the funds appropriated under titles III and IV of this Act that are made available for assistance for Pakistan, $33,000,000 shall be withheld from obligation until the Secretary of State reports to the Committees on Appropriations that Dr. Shakil Afridi has been released from prison and cleared of all charges relating to the assistance provided to the United States in locating Osama bin Laden. (d) Sri lanka (1) Assistance Funds appropriated under title III of this Act shall be made available for assistance for Sri Lanka for democracy and economic development programs, particularly in areas recovering from ethnic and religious conflict. (2) Certification Funds appropriated by this Act for assistance for the central Government of Sri Lanka may be made available only if the Secretary of State certifies and reports to the Committees on Appropriations that such Government is taking effective and consistent steps to— (A) protect the rights and freedoms of the people of Sri Lanka regardless of ethnicity and religious belief, including by investigating violations of human rights and the laws of war and holding perpetrators of such violations accountable