APOLLO S3 PRIVATE MARKETS FUND AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST December 19, 2023