Document:

Amendment No. 10 to the Loan and Security Agreement

 Exhibit 10.31 
 EXECUTION COPY 
 AMENDMENT NO. 10 TO THE 
 LOAN AND SECURITY AGREEMENT 
 Dated as
of June 12, 2009 
 THIS AMENDMENT NO. 10 TO THE LOAN AND SECURITY AGREEMENT (this “Amendment”) is by and among
Residential Funding Company, LLC, a Delaware limited liability company, as borrower (“RFC”), GMAC Mortgage, LLC, a Delaware limited liability company, as borrower (“GMAC Mortgage” and together with RFC, each a
“Borrower” and collectively, the “Borrowers”), Residential Capital, LLC, a Delaware limited liability company, as guarantor (the “Guarantor”), and GMAC LLC, a Delaware limited liability
company, as lender (the “Lender”). 
 Reference is hereby made to the Loan and Security Agreement, dated as of
April 18, 2008, among the Borrowers and the Lender (as amended and modified through the date hereof, the “Loan and Security Agreement”) and the Guarantee, dated as of April 18, 2008, executed by the Guarantor in favor of
the Lender in connection with the Loan and Security Agreement (as amended and modified through the date hereof, the “Guarantee”). 
 RECITALS 
 1. Each of the parties hereto is a party to the Loan and Security Agreement. 

2. The parties hereto desire to make certain amendments to the Loan and Security Agreement. 
 3. Each of the parties hereto, by its signature hereto, hereby acknowledges, consents and agrees to the matters set forth herein. 
 4. In consideration of the premises and mutual agreements herein contained and for good and valuable consideration, the receipt and sufficiency of which
is hereby acknowledged, the parties hereto agree as follows: 
 SECTION 1. Definitions. Capitalized terms used herein and not
otherwise defined in this Amendment shall have the meaning set forth in the Loan and Security Agreement. 
 SECTION 2. Amendments to the
Loan and Security Agreement. Each of the parties hereto hereby consents and agrees that the Loan and Security Agreement shall be amended as of the date hereof as follows: 
 (a) Section 2.03(b) of the Loan and Security Agreement is hereby amended and restated in full to read as follows: 

“Subsequent Borrower Funding Requests, Subsequent Electronic Files and Collateral Comparison Reports. After the Initial
Funding Date, the Borrowers may request the Lender to make a Loan on the related Funding Date by delivering to the Lender an irrevocable Borrower Funding Request, Borrowing Base Report and Borrowing Base Certificate no later than 1:00 p.m. (New York
City time) one Business Day prior to such Funding Date. The amount of any Loan requested pursuant to a Borrower Funding Request shall be (i) not greater than the related Available Loan Amount and (ii) not less than $5,000,000.

  

					
		  		  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 The Borrowers shall deliver to the Lender on or prior to the third
(3rd) Business Day of each month a Subsequent Electronic File with respect to all Eligible Servicing Rights that constitute the Collateral under the terms and conditions of this Agreement, which shall include all updates to the Collateral since
the preceding Subsequent Electronic File. The Borrowers shall deliver to the Lender on or prior to the tenth (10th) Business Day of each month a Collateral Comparison Report.” 
 (b)
Section 2.04(b) of the Loan and Security Agreement is hereby amended and restated in full to read as follows: 
 “The Borrowers shall deliver an updated Borrowing Base Report and Borrowing Base Certificate (i) on the Thursday of each calendar week (or if Thursday is not a Business Day, the immediately preceding Business Day) and
(ii) following a written request from the Lender for delivery thereof, by 5 p.m. (New York City time) on the date such request is received if such request is received prior to 11 a.m. (New York City time), and otherwise on the Business Day
immediately following the date such request is received. Each Borrowing Base Report and each Borrowing Base Certificate delivered by the Borrowers shall be effective until such time as the Borrowers deliver a subsequent Borrowing Base Report and
Borrowing Base Certificate. For purposes of preparing each Borrowing Base Report, the Borrower shall calculate the Collateral Value of the Eligible Servicing Rights and the Additional Collateral described in the Relevant Electronic File in
accordance with the definition of Collateral Value provided in Schedule I.” 
 (c) Section 2.08(b) of
the Loan and Security Agreement is hereby amended by deleting the phrase “pursuant to Section 2.04(b)”. 
 (d) Section 2.08(b)(A) of the Loan and Security Agreement is hereby amended and restated in full to read as follows: 
 “(A) within one (1) Business Day after the Borrowing Base Shortfall Day (i) repay outstanding Loans, and/or (ii) pledge additional Eligible Servicing Rights, and/or (iii) pledge Additional
Collateral, in an amount equal to the lesser of (1) $50,000,000 and (2) the amount of the Borrowing Base Deficiency specified in the notice provided to the Borrowers by the Lender; provided that so long as the Borrowing Base
Deficiency is less than $5,000,000, the Borrowers shall not be required take any such actions with respect to such Borrowing Base Deficiency unless directed in writing by the Lender; and” 
  

					
		  	2	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 (e) The second sentence of Section 11.05 of the Loan and Security Agreement
is hereby amended and restated in full to read as follows: 
 “EACH PARTY HERETO HEREBY IRREVOCABLY SUBMITS TO
THE NONEXCLUSIVE JURISDICTION OF THE COURTS OF THE STATE OF NEW YORK LOCATED IN THE CITY OF MANHATTAN OR IN THE UNITED STATES DISTRICT COURT FOR THE SOUTHERN DISTRICT OF NEW YORK FOR PURPOSES OF ALL LEGAL PROCEEDINGS ARISING OUT OF OR RELATING TO
THIS AMENDMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY AND IRREVOCABLY AGREES TO BE BOUND BY ANY JUDGMENT RENDERED THEREBY IN CONNECTION WITH SUCH LITIGATION.” 
 (f) The following definitions in Schedule I of the Loan and Security Agreement are hereby amended and restated in full to read as follows:

 “Additional Forgiveness Amount” means the aggregate amount, as determined by the Lender, of any capital
contribution made by the Lender to ResCap on or after June 12, 2009, in the form of forgiveness of the principal amount of Loans outstanding under this Agreement. 
 “Additional Forgiveness Date” means the first date on or after June 12, 2009 on which the Lender makes a capital
contribution to ResCap in the form of forgiveness of the principal amount of Loans outstanding under this Agreement. 
 “Applicable Margin” means, with respect to all Loans, 6.00% (600 basis points). 
 “Commitment Amount” means (x) $400,000,000, minus (y) the Additional Forgiveness Amount. The Borrowers may elect to further reduce the Commitment Amount in accordance with Section 2.10. 
 “Collateral Value” means, for purposes of determining the value of the Borrowing Base on any day, (x) with respect
to the Additional Collateral, the Attributed Rate for such Additional Collateral multiplied by the market value of such Additional Collateral on the prior Business Day as determined by the Lender in its reasonable sole discretion, and (y) with
respect to the Eligible Servicing Rights, the Attributed Rate for Eligible Servicing Rights multiplied by the Borrowers’ book value of the Eligible Servicing Rights on the prior Business Day as determined by the Borrowers in good faith.

 “Relevant Electronic File” means, on any Business Day, the most recently delivered Electronic File that
was delivered at least seven (7) Business Days prior to such Business Day (or such lesser number of days as of the Lender may deem acceptable from time to time in its sole discretion). 
  

					
		  	3	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 “Subsequent Electronic File” means any electronic file, with the same
information and detail and in the same format, as the electronic file delivered to the Lender on May 5, 2009 (or such other information, detail or format as is acceptable to the Lender), delivered by the Borrowers to the Lender subsequent to
the Initial Electronic File, pursuant to Section 2.03(b), and reflecting mortgage loans serviced by the Borrowers as of the close of business no more than two (2) Business Days prior to the date of its delivery, except with regard
to the Subsequent Electronic File delivered on or prior to the third Business Day of each calendar month, which shall reflect such information as of the close of business on the last Business Day of the preceding calendar month. 
 (g) The definition of “Attributed Rate” in Schedule I of the Loan and Security Agreement is hereby amended by deleting clause
(a) thereof and replacing it with the following: 
 “(a) With respect to Eligible Servicing Rights 40%;
provided, however, if the Lender forgives any portion of the Loan subsequent to June 12, 2009, for the period of effectiveness of each Borrowing Base Report delivered on or after the Additional Forgiveness Date, the
Attributed Rate for the period over which each Borrowing Base Report (or “Benchmark Report”) is effective shall be a fraction, (i) the numerator of which is equal to (A) $400,000,000, minus (B) the Additional
Forgiveness Amount, and (ii) the denominator of which is equal to the book value of the Borrower’s Eligible Servicing Rights as set forth in the related Benchmark Report;” 
 (h) The following definition is hereby added to Schedule I of the Loan and Security Agreement in the correct alphabetical order:

 “Collateral Comparison Report” means a report setting forth information with respect to the changes in the
pool of mortgage loans included in the most recently delivered Electronic File from the pool of mortgage loans included in the immediately preceding Electronic File, which information, detail and format shall be reasonably acceptable to the Lender,
delivered by the Borrowers to the Lender pursuant to Section 2.03(b).  
 (i) The definition of “Initial
Forgiveness Amount” in Schedule I of the Loan and Security Agreement is hereby deleted. 
 SECTION 3. Effectiveness. 

(a) This Amendment and the provisions contained herein shall become effective as of the date first above written. 
 (b) On or before June 16, 2009, the Borrowers shall deliver or cause to be delivered opinions of counsel to the Borrowers and the
Guarantor with respect to the transactions contemplated hereby, which opinions shall be in form and substance satisfactory to the Lender. 
  

					
		  	4	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 (c) On or before June 16, 2009, the Borrowers shall deliver or cause to be delivered
such other documents as the Lender may reasonably request, which documents will be in form and substance satisfactory to the Lender. 
 SECTION 4. Representations and Warranties of the Borrowers and the Guarantor. The Borrowers and the Guarantor each represents and warrants as follows: 
 (a) It is a limited liability company duly organized or formed, validly existing and in good standing under the laws of Delaware.

 (b) The execution, delivery and performance by it of this Amendment and (as applicable) the Loan and Security
Agreement, as amended hereby, or the Guarantee and the consummation of the transactions contemplated hereby and thereby will not conflict with, result in any breach of any of the terms and provisions of, or constitute (with or without notice, lapse
of time or both) a default under its organizational documents, or any material indenture, loan agreement, mortgage, deed of trust, or other material agreement or interest to which it is a party or by which it is otherwise bound, or result in the
creation or imposition of any Lien upon any of its properties pursuant to the terms of any such indenture, loan agreement, mortgage, deed of trust, or other agreement or instrument, other than this Agreement, or violate any Requirements of Law
applicable to it of any Governmental Authority having jurisdiction over it or any of its properties if such violation, individually, or in the aggregate, is reasonably likely to have a Material Adverse Effect. 
 (c) No approval, consent, exemption, authorization, or other action by, or notice to, or filing with, any Governmental Authority or any
other Person is necessary or required in connection with execution, delivery or performance by it of this Amendment and (as applicable) the Loan and Security Agreement, as amended hereby, and the Guarantee. 
 (d) This Amendment has been duly executed and delivered by it. This Amendment and (as applicable) the Loan and Security Agreement, as
amended hereby, and the Guarantee constitute, its legal, valid and binding obligations enforceable against it in accordance with its respective terms, except as enforceability may be limited by bankruptcy, insolvency, reorganization, or other
similar laws affecting the enforcement of creditors’ rights generally and by general principles of equity, regardless of whether such enforceability is considered in a proceeding in equity or at law. 
 (e) There are no proceedings or investigations pending, or to the best of its knowledge threatened in writing, against it before any
court, regulatory body, administrative agency, or other tribunal or governmental instrumentality (i) asserting the invalidity of any Facility Document, (ii) seeking to prevent the consummation of any of the transactions contemplated by any
Facility Document, or (iii) seeking any determination or ruling that could reasonably be expected to have a Material Adverse Effect. 
  

					
		  	5	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 (f) The representations and warranties contained in the Guarantee (in the case of the
Guarantor) or Section 6.01 of the Loan and Security Agreement (in the case of the Borrowers), are true and correct as if made on the date hereof, except to the extent they expressly relate to an earlier date. 
 (g) No event has occurred and is continuing that constitutes a Default. 
 SECTION 5. Reference to and Effect on the Loan Documents. (a) On and after the effectiveness of this Amendment, each reference in the Loan
and Security Agreement to “this Agreement,” “hereunder,” “hereof” or words of like import referring to the Loan and Security Agreement, and each reference in the Note, the Guarantee and the other Facility Documents to
“the Loan and Security Agreement,” “thereunder,” “thereof” or words of like import referring to the Loan and Security Agreement, shall mean and be a reference to the Loan and Security Agreement, as amended by this
Amendment and all prior amendments referenced in this Amendment. 
 (b) The Loan and Security Agreement, the Guarantee, the
Note and the other Facility Documents, as specifically amended by this Amendment, are and shall continue to be in full force and effect and are hereby in all respects ratified and confirmed. 
 (c) The execution, delivery and effectiveness of this Amendment shall not, except as expressly provided herein, operate as a waiver of any
right, power or remedy of the Lender under any of Facility Documents, nor constitute a waiver of any provision of any of the Facility Documents. 
 SECTION 6. Notice. Each party hereto hereby acknowledges timely notice of the execution of this Amendment and of the transactions and amendments contemplated hereby. Each party hereto hereby waives any notice requirement contained in
the Loan and Security Agreement, the Guarantee or the other Facility Documents with respect to the execution of this Amendment. 
 SECTION 7.
Reservation of Rights. The Borrowers and the Guarantor each hereby acknowledge and agree that neither this Amendment nor the making of any Loan by the Lender and the Lender’s consent thereto either before or after the date hereof shall
constitute (w) an approval of the accuracy of all or any portion of any Borrower Funding Request, (x) a waiver or forbearance by the Lender or any of the Facility Documents, except as expressly set forth herein, (y) the acceptance by
the Lender of any course of conduct by either Borrower, the Guarantor or any other Person or (z) an agreement by the Lender to amend any of the Facility Documents without all required approvals. The Borrowers each hereby further acknowledge and
agree that the Lender reserves all rights, remedies and options under the Facility Documents to require either Borrower to satisfy in all respects the conditions relating to the making of any Loan under the Loan and Security Agreement and each
Borrower and the Guarantor to perform all of its obligations under the Facility Documents which are then due and owing or are susceptible of performance, as the case may be. 
  

					
		  	6	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 SECTION 8. Confirmation of the Facility Documents. The Borrowers and the Guarantor each hereby
acknowledge and agree that the Loan and Security Agreement (as herein amended) the Guarantee and each other Facility Document are each ratified and confirmed in all respects and shall remain in full force and effect in accordance with their
respective terms. Without limiting the foregoing, each Borrower ratifies and reaffirms its grant of a security interest in all the Collateral pledged by it, and agrees that such security interest is a first priority perfected security interest
securing all Obligations and the Borrowers and the Guarantor each ratifies and reaffirms all of its other obligations under the Facility Documents executed and delivered by it. As of the date hereof, each reference in the Loan and Security Agreement
to “this Agreement” shall mean the Loan and Security Agreement as amended by this Amendment, and as hereinafter amended or restated. 
 SECTION 9. Execution in Counterparts. This Amendment may be executed in any number of counterparts and by different parties hereto in separate counterparts, each of which when so executed shall be deemed to be an original and all of
which taken together shall constitute but one and the same agreement. Delivery of an executed counterpart of a signature page to this Amendment by telecopier shall be effective as delivery of a manually executed counterpart of this Amendment.

 SECTION 10. GOVERNING LAW; SUBMISSION TO JURISDICTION. THIS AGREEMENT SHALL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE
WITH THE LAWS OF THE STATE OF NEW YORK WITHOUT REGARD TO CONFLICTS OF LAWS PRINCIPLES (BUT WITH REFERENCE TO SECTION 5-1401 OF THE NEW YORK GENERAL OBLIGATION LAW, WHICH BY ITS TERMS APPLIES TO THIS AGREEMENT). EACH PARTY HERETO HEREBY
IRREVOCABLY SUBMITS TO THE NONEXCLUSIVE JURISDICTION OF THE COURTS OF THE STATE OF NEW YORK LOCATED IN THE CITY OF MANHATTAN OR IN THE UNITED STATES DISTRICT COURT FOR THE SOUTHERN DISTRICT OF NEW YORK FOR PURPOSES OF ALL LEGAL PROCEEDINGS ARISING
OUT OF OR RELATING TO THIS AMENDMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY AND IRREVOCABLY AGREES TO BE BOUND BY ANY JUDGMENT RENDERED THEREBY IN CONNECTION WITH SUCH LITIGATION. EACH PARTY HERETO IRREVOCABLY WAIVES, TO THE FULLEST EXTENT
PERMITTED BY LAW, ANY OBJECTION WHICH IT MAY NOW OR HEREAFTER HAVE TO THE LAYING OF THE VENUE OF ANY SUCH PROCEEDING BROUGHT IN SUCH A COURT AND ANY CLAIM THAT ANY SUCH PROCEEDING BROUGHT IN SUCH A COURT HAS BEEN BROUGHT IN AN INCONVENIENT FORUM.
EACH PARTY HERETO HEREBY CONSENTS TO PROCESS BEING SERVED IN ANY SUIT, ACTION OR PROCEEDING WITH RESPECT TO THIS AGREEMENT, OR ANY DOCUMENT DELIVERED PURSUANT HERETO BY THE MAILING OF A COPY THEREOF BY REGISTERED OR CERTIFIED MAIL, POSTAGE PREPAID,
RETURN RECEIPT REQUESTED, TO ITS RESPECTIVE ADDRESS SPECIFIED AT THE TIME FOR NOTICES UNDER THIS AGREEMENT OR TO ANY OTHER ADDRESS OF WHICH IT SHALL HAVE GIVEN WRITTEN OR ELECTRONIC NOTICE TO THE OTHER PARTIES. THE FOREGOING SHALL NOT LIMIT THE
ABILITY OF ANY PARTY HERETO TO BRING SUIT IN THE COURTS OF ANY JURISDICTION. 
  

					
		  	7	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 SECTION 11. WAIVER OF JURY TRIAL. EACH OF THE PARTIES HEREBY IRREVOCABLY WAIVES ANY AND
ALL RIGHT TO A TRIAL BY JURY WITH RESPECT TO ANY LEGAL PROCEEDING ARISING OUT OF OR RELATING TO THIS AMENDMENT. 
 SECTION 12. Entire
Agreement. This Amendment, the Loan and Security Agreement and the other Facility Documents embody the entire agreement and understanding of the parties hereto and supersede any and all prior agreements, arrangements and understanding relating
to the matters provided for herein. 
 SECTION 13. Captions. The various captions in this Amendment are included for convenience only
and shall not affect the meaning or interpretation of any provision of this Amendment. 
 SECTION 14. Severability. If any provision
of this Amendment, or the application thereof to any party or any circumstance, is held to be unenforceable, invalid or illegal (in whole or in part) for any reason (in any jurisdiction), the remaining terms of this Amendment, modified by the
deletion of the unenforceable invalid or illegal portion (in any relevant jurisdiction), will continue in full force and effect, and such unenforceability, invalidity or illegality will not otherwise affect the enforceability, validity or legality
of the remaining terms of this Amendment so long as this Amendment, as so modified, continues to express, without material change, the original intentions of the parties as to the subject matter hereof and the deletion of such portion of this
Amendment will not substantially impair the respective expectations of the parties or the practical realization of the benefits that would otherwise be conferred upon the parties. 
 [signature pages follow] 
  

					
		  	8	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

 IN WITNESS WHEREOF, the parties hereto have caused this Amendment to be executed by their respective
officers thereunto duly authorized, as of the date first above written. 
  

			
	 GMAC LLC
 a Delaware limited liability
company
 as Lender

		
	By:	 	/s/ David C. Walker
	Name:	 	David C. Walker
	Title:	 	Business Unit Treasury Executive

  

					
		  	S-1	  	 Amendment No. 10 to MSR
 Loan and Security Agreement

			
	 RESIDENTIAL CAPITAL, LLC
 a Delaware
limited liability company
 as Guarantor

		
	By:	 	/s/ John M. Peterson

			
	Name:	 	John M. Peterson
	Title:	 	Assistant Treasurer

			
	
	 RESIDENTIAL FUNDING COMPANY, LLC
 a
Delaware limited liability company
 as Borrower

		
	By:	 	/s/ John M. Peterson

			
	Name:	 	John M. Peterson
	Title:	 	Treasurer

			
	
	 GMAC MORTGAGE, LLC
 a Delaware limited
liability company
 as Borrower

		
	By:	 	/s/ John M. Peterson

			
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-2	  	 Amendment No. 10 to MSR
 Loan and Security AgreementNinth Amendment Agreement to Loan Agreement

 Exhibit 10.32 
 EXECUTION COPY 
 NINTH AMENDMENT AGREEMENT 
 Dated as of June 30, 2009 
 by and among 
 RESIDENTIAL FUNDING COMPANY, LLC, 
 as
Borrower, 
 GMAC MORTGAGE, LLC, 
 as Borrower, 
 RESIDENTIAL CAPITAL, LLC AND CERTAIN OTHER 
 AFFILIATES OF THE BORROWERS PARTY HERETO, 
 as Guarantors or Obligors, 
 and 
 GMAC LLC, 
 as Initial Lender and as Lender Agent 
 and

 Certain Other Financial Institutions and Persons from 
 time to time party hereto as Lenders 
  

					
		  		  	Ninth Loan Agreement Amendment

 This NINTH AMENDMENT AGREEMENT (this “Agreement”), dated as of June 30, 2009 (the
“Amendment Effective Date”), is by and among Residential Funding Company, LLC, a Delaware limited liability company (“RFC”), GMAC Mortgage, LLC, a Delaware limited liability company (“GMAC
Mortgage” and, together with RFC, each a “Borrower” and, collectively, the “Borrowers”), Residential Capital, LLC and the other Affiliates of the Borrowers party hereto as Guarantors (each, a
“Guarantor”), the Affiliates of the Borrower party hereto as obligors, and GMAC LLC, a Delaware limited liability company, in its capacity as Initial Lender and as agent for the Lenders (in such capacity,
the “Lender Agent”). 
 Reference is hereby made to the Loan Agreement dated as of June 4, 2008 among the
Borrowers, the Guarantors, the Initial Lender, the Lender Agent, the various other parties signatory thereto as obligors, the financial institutions and other Persons that are or may from time to time become parties thereto as Lenders and Wells
Fargo Bank, N.A. (as amended and modified through the date hereof, the “Loan Agreement”). 
 RECITALS 
 1. Each of the parties hereto is a party to the Loan Agreement. 
 2. The parties hereto desire to make certain amendments to the Loan Agreement. 
 3. Each of the parties
hereto, by its signature hereto, hereby acknowledges, consents and agrees to the matters set forth herein. 
 4. In consideration of the
premises and mutual agreements herein contained and for good and valuable consideration, the receipt and sufficiency of which is hereby acknowledged, the parties hereto agree as follows: 
 ARTICLE I 
 DEFINED TERMS 
 SECTION 1.1 Capitalized terms used herein and not otherwise defined shall have the meaning set forth in the Loan Agreement. 
 ARTICLE II 
 AMENDMENTS TO THE LOAN AGREEMENT

 SECTION 2.1 Amendment to the Loan Agreement. Each of the parties hereto hereby consents and agrees that Section 4.02(b)
of the Loan Agreement is hereby amended and restated in its entirety to read as follows: 
 “(b) The Borrowers shall
designate one or more of the Sales Proceeds Accounts as “Servicing Advances Accounts”. Any amounts received in respect of the repayment of Primary Collateral consisting of Servicing Advances received by an Obligor shall be deposited in the
Servicing Advances Accounts no later than the Applicable Deposit Date and shall be held in the Servicing Advances Accounts pending application of such proceeds in accordance with this Section 4.02(b). No funds other than Net Cash Proceeds of
Collateral Dispositions with respect to Servicing Advances or amounts received in respect of the 

  

					
		  		  	Ninth Loan Agreement Amendment

 
repayment of Primary Collateral consisting of Servicing Advances shall be deposited in the Servicing Advances Accounts. The Borrowers may withdraw
Collections (other than Net Cash Proceeds) on deposit in the Servicing Advances Accounts, provided that no Default has occurred and is continuing and no Default would result from such withdrawal, (i) to make Servicing Advances with
respect to Eligible Servicing Advances Agreements (which Servicing Advances, for the avoidance of doubt, shall constitute Primary Collateral), (ii) to make prepayments of any Loan in accordance with Section 2.09, or (iii) prior
to July 30, 2009 or such later date as designated in writing by the Lender Agent for other corporate purposes, subject to the requirements that (A) the aggregate amount withdrawn and not re-deposited pursuant to this clause
(iii) shall not at any time exceed the Excess Amount, (B) the Borrowers shall provide the Lender Agent with prior written notice of any such withdrawals or deposits, along with a certification of compliance with the terms of this
Section 4.02(b) in the form attached as Exhibit 2.03(c) or such other format acceptable to the Lender Agent and (C) based on ResCap Treasury’s reasonable estimate in accordance with its prior practices for
calculations under this Agreement, no Borrowing Base Deficiency would result from such withdrawal. The Borrowers covenant and agree to deposit (i) any amounts withdrawn in excess of the Excess Amount within one (1) Business Day of
knowledge or notice that the aggregate outstanding amount of such withdrawals is in excess of the Excess Amount or such later date as agreed by the Lender Agent in writing, (ii) all amounts withdrawn pursuant to clause (iii) of the
immediately preceding sentence back in the applicable Servicing Advances Accounts no later than July 31, 2009 or such later date as designated in writing by the Lender Agent. 
 SECTION 2.2 New Definitions. Schedule 1.01 to the Loan Agreement is hereby amended by adding the following new definition in the
appropriate alphabetical location therein: 
 “Excess Amount” means, initially $150,000,000, or at any time, such other
amount then most recently determined by the Lender Agent in writing, it being understood and agreed that (i) the Lender Agent may, in its sole discretion, change the Excess Amount no more frequently than once every thirty (30) days and
(ii) the Borrowers and the Lender Agent may, by mutual written agreement, change the Excess Amount at any time. 
 SECTION 2.3 New
Exhibit. The Loan Agreement is hereby amended by adding a new Exhibit 2.03(c) thereto in the form attached hereto as Exhibit A. 
 ARTICLE III 
 CONDITIONS TO EFFECTIVENESS 
 SECTION 3.1 Amendment Effective Date. This Agreement and the provisions contained herein shall become effective as of the Amendment Effective Date. 
  

					
		  	2	  	Ninth Loan Agreement Amendment

 SECTION 3.2 Opinions and Other Deliverables. The Obligors covenant and agree to deliver or cause
to be delivered (a) opinions of counsel to the Obligors with respect to the transactions contemplated hereby, which opinions shall be in form and substance satisfactory to the Lender Agent, on or before July 8, 2009 and (b) such other
documents, including but not limited to the Obligors’ board resolutions approving this Agreement, as the Lender Agent may reasonably request, which documents will be in form and substance satisfactory to the Lender Agent, on or before
July 15, 2009. The Obligors acknowledge and agree that the Lender Agent may, upon the failure to deliver any of the items set forth in clauses (i) and (ii) above in the timeframes set forth therein, declare an Event of Default.

 ARTICLE IV 
 NOTICES,
ACKNOWLEDGEMENTS, CONFIRMATION AND REPRESENTATIONS 
 AND WARRANTIES 
 SECTION 4.1 Notice. Each party hereto hereby acknowledges timely notice of the execution of this Agreement and of the transactions and amendments
contemplated hereby. Each party hereto hereby waives any notice requirement contained in the Loan Agreement or the Facility Documents with respect to the execution of this Agreement. 
 SECTION 4.2 Reservation of Rights. The Obligors each hereby acknowledge and agree that none of this Agreement, the making of any loan under the
Loan Agreement by a Lender and Lender’s or the Lender Agent’s consent thereto either before or after the Amendment Effective Date shall constitute (w) an approval of the accuracy of all or any portion of any Borrower funding request
or related certification, (x) a waiver or forbearance by a Lender or the Lender Agent under any of the Facility Documents, (y) the acceptance by any Lender or the Lender Agent of any course of conduct by any Obligor or any other Person or
(z) an agreement by a Lender or the Lender Agent to amend any of the Facility Documents without all required approvals or related certification. The Obligors each hereby further acknowledge and agree that the Lenders and the Lender Agent
reserve all rights, remedies and options under the Facility Documents to require either Borrower to satisfy in all respects the conditions relating to the making of any loan under the Facility Documents and each Obligor to perform all of its
obligations under the Facility Documents which are then due and owing or are susceptible of performance, as the case may be. 
 SECTION 4.3
Confirmation of the Facility Documents. The Obligors each hereby acknowledge and agree that, except as herein expressly amended, the Loan Agreement and each other Facility Document (each as amended as of the date hereof) are each ratified and
confirmed in all respects and shall remain in full force and effect in accordance with their respective terms. Without limiting the foregoing, each Obligor ratifies and reaffirms (a) its grant of a security interest in all the Collateral
pledged by it, and represents, confirms and agrees that such security interest is a first priority perfected security interest (subject to Permitted Liens) securing all Obligations and (b) all of its other obligations under the Facility
Documents executed and delivered by it. As of the Amendment Effective Date, each reference in the Loan Agreement to “this Agreement” or in any other Facility Document to the “Loan Agreement” shall mean the Loan Agreement as
amended by this Agreement, and as hereinafter amended or restated. 
  

					
		  	3	  	Ninth Loan Agreement Amendment

 SECTION 4.4 Representations and Warranties. By its signature hereto, each Obligor hereby
represents and warrants that, before and after giving effect to this Agreement, as follows: 
 (a) Its representations and
warranties set forth in the Facility Documents (each as amended as of the date hereof) are true and correct as if made on the date hereof, except to the extent they expressly relate to an earlier date; and 
 (b) No Default has occurred and is continuing. 
 ARTICLE V 
 MISCELLANEOUS 
 SECTION 5.1 GOVERNING LAW. THIS AGREEMENT SHALL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF NEW YORK WITHOUT REGARD TO CONFLICTS OF LAWS PRINCIPLES (BUT WITH REFERENCE TO
SECTION 5-1401 OF THE NEW YORK GENERAL OBLIGATIONS LAW, WHICH BY ITS TERMS APPLIES TO THIS AGREEMENT). 
 SECTION 5.2 Execution in
Counterparts. This Agreement may be executed in any number of counterparts and by different parties hereto in separate counterparts, each of which when so executed shall be deemed to be an original (whether such counterpart is originally
executed or an electronic copy of an original and each party hereto expressly waives its rights to receive originally executed documents) and all of which when taken together shall constitute one and the same agreement. 
 SECTION 5.3 WAIVER OF JURY TRIAL. EACH OF THE PARTIES HEREBY IRREVOCABLY WAIVES ANY AND ALL RIGHT TO A TRIAL BY JURY WITH RESPECT TO ANY LEGAL
PROCEEDING ARISING OUT OF OR RELATING TO THIS AGREEMENT. 
 SECTION 5.4 Entire Agreement. This Agreement, the Loan Agreement and the
other Facility Documents embody the entire agreement and understanding of the parties hereto and supersede any and all prior agreements, arrangements and understanding relating to the matters provided for herein. 
 SECTION 5.5 Captions. The various captions in this Agreement are included for convenience only and shall not affect the meaning or interpretation
of any provision of this Agreement. 
 SECTION 5.6 Severability. If any provision of this Agreement, or the application thereof to any
party or any circumstance, is held to be unenforceable, invalid or illegal (in whole or in part) for any reason (in any jurisdiction), the remaining terms of this Agreement, modified by the deletion of the unenforceable invalid or illegal portion
(in any relevant jurisdiction), will continue in full force and effect, and such unenforceability, invalidity or illegality will not otherwise affect the enforceability, validity or legality of the remaining terms of this Agreement so long as this
Agreement, as so modified, continues to express, without material change, the original intentions of the parties as to the subject matter hereof and the deletion of such portion of this Agreement will not substantially impair the respective
expectations of the parties or the practical realization of the benefits that would otherwise be conferred upon the parties. 
  

					
		  	4	  	Ninth Loan Agreement Amendment

 SECTION 5.7 SUBMISSION TO JURISDICTION. EACH PARTY HERETO HEREBY IRREVOCABLY SUBMITS TO THE
NONEXCLUSIVE JURISDICTION OF THE COURTS OF THE STATE OF NEW YORK LOCATED IN THE CITY OF MANHATTAN OR IN THE UNITED STATES DISTRICT COURT FOR THE SOUTHERN DISTRICT OF NEW YORK FOR PURPOSES OF ALL LEGAL PROCEEDINGS ARISING OUT OF OR RELATING TO THIS
AGREEMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY AND IRREVOCABLY AGREES TO BE BOUND BY ANY JUDGMENT RENDERED THEREBY IN CONNECTION WITH SUCH LITIGATION. EACH PARTY HERETO IRREVOCABLY WAIVES, TO THE FULLEST EXTENT PERMITTED BY LAW, ANY OBJECTION
WHICH IT MAY NOW OR HEREAFTER HAVE TO THE LAYING OF THE VENUE OF ANY SUCH PROCEEDING BROUGHT IN SUCH A COURT AND ANY CLAIM THAT ANY SUCH PROCEEDING BROUGHT IN SUCH A COURT HAS BEEN BROUGHT IN AN INCONVENIENT FORUM. EACH PARTY HERETO HEREBY CONSENTS
TO PROCESS BEING SERVED IN ANY SUIT, ACTION OR PROCEEDING WITH RESPECT TO THIS AGREEMENT, OR ANY DOCUMENT DELIVERED PURSUANT HERETO BY THE MAILING OF A COPY THEREOF BY REGISTERED OR CERTIFIED MAIL, POSTAGE PREPAID, RETURN RECEIPT REQUESTED, TO ITS
RESPECTIVE ADDRESS SPECIFIED AT THE TIME FOR NOTICES UNDER THIS AGREEMENT OR TO ANY OTHER ADDRESS OF WHICH IT SHALL HAVE GIVEN WRITTEN OR ELECTRONIC NOTICE TO THE OTHER PARTIES. THE FOREGOING SHALL NOT LIMIT THE ABILITY OF ANY PARTY HERETO TO BRING
SUIT IN THE COURTS OF ANY JURISDICTION. 
 [REMAINDER OF PAGE INTENTIONALLY LEFT BLANK] 
  

					
		  	5	  	Ninth Loan Agreement Amendment

 IN WITNESS WHEREOF, the parties have caused this Agreement to be executed by their respective officers
thereunto duly authorized, as of the date first above written. 
  

			
	RESIDENTIAL FUNDING COMPANY, LLC,
as Borrower
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	GMAC MORTGAGE, LLC,
as Borrower
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

					
		  	S-1	  	Ninth Loan Agreement Amendment

			
	GMAC LLC,
as Lender Agent and as Initial Lender
		
	By:	 	/s/ David C. Walker
	Name:	 	David C. Walker
	Title:	 	Business Unit Treasury Executive

  

					
		  	S-2	  	Ninth Loan Agreement Amendment

			
	 Acknowledged and Agreed:
  
 RESIDENTIAL CAPITAL, LLC, as Guarantor

		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Assistant Treasurer

  

			
	GMAC RESIDENTIAL HOLDING COMPANY, LLC, as Guarantor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	GMAC-RFC HOLDING COMPANY, LLC, as Guarantor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	HOMECOMINGS FINANCIAL, LLC, as Guarantor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

					
		  	S-3	  	Ninth Loan Agreement Amendment

			
	 Acknowledged and Agreed:
  
 RESIDENTIAL MORTGAGE REAL ESTATE HOLDINGS, LLC, as Obligor

		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	RESIDENTIAL FUNDING REAL ESTATE HOLDINGS, LLC, as Obligor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasuer

  

			
	HOMECOMINGS FINANCIAL REAL ESTATE HOLDINGS, LLC, as Obligor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	 EQUITY INVESTMENT I, LLC,
 as
Obligor

		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	DEVELOPERS OF HIDDEN SPRINGS, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-4	  	Ninth Loan Agreement Amendment

			
	DOA HOLDING PROPERTIES, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	RFC ASSET HOLDINGS II, LLC, as Obligor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	PASSIVE ASSET TRANSACTIONS, LLC, as Obligor
		
	By:	 	/s/ Melissa White
	Name:	 	Melissa White
	Title:	 	Assistant Treasurer

  

			
	GMAC MODEL HOME FINANCE I, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	EQUITY INVESTMENT IV, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-5	  	Ninth Loan Agreement Amendment

			
	 AMERILAND, LLC, as Obligor
  
 By:   REG-PFH, LLC, its sole member

		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	REG-PFH, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	HOME CONNECTS LENDING SERVICES, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	MINT I, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	MINT I VFN HOLDINGS, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	GMACR MORTGAGE PRODUCTS, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-6	  	Ninth Loan Agreement Amendment

			
	DITECH, LLC, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	RESIDENTIAL CONSUMER SERVICES, LLC,
as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	GMAC MORTGAGE USA CORPORATION, as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	RESIDENTIAL FUNDING MORTGAGE SECURITIES I, INC., as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-7	  	Ninth Loan Agreement Amendment

			
	RFC ASSET MANAGEMENT, LLC
as Obligor
		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	 RFC SFJV-2002, LLC, as Obligor
  
 By:   RFC ASSET MANAGEMENT, LLC,
its sole member

		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

			
	 RCSFJV2004, LLC, as Obligor
  
 By:   RFC ASSET MANAGEMENT, LLC,
its sole member

		
	By:	 	/s/ John M. Peterson
	Name:	 	John M. Peterson
	Title:	 	Treasurer

  

					
		  	S-8	  	Ninth Loan Agreement Amendment

 EXHIBIT A 
 Exhibit 2.03(c) 
 SERVICING ADVANCE ACCOUNT CERTIFICATE 
 [  ], 200[  ] 
 Reference
is hereby made to that certain Loan Agreement, dated as of June 4, 2008 (as amended, amended and restated, supplemented or otherwise modified from time to time, the “Loan Agreement”), among Residential Funding Company, LLC
and GMAC Mortgage, LLC as borrowers (the “Borrowers”), Residential Capital, LLC and the other affiliates of the Borrowers party thereto as guarantors, the affiliates of the Borrowers party thereto as obligors, GMAC LLC, as
initial lender (the “Initial Lender”), the financial institutions and other persons that are or may from time to time become parties thereto as lenders, Wells Fargo Bank, N.A. as first priority collateral agent and GMAC LLC, as
agent for the Initial Lender and the lenders (in such capacity, the “Lender Agent”). Capitalized terms used herein and not defined herein shall have the meanings ascribed thereto in the Loan Agreement. 
 This certificate is being delivered by the Borrowers to the Lender Agent in compliance with Section 4.02(b)(iii)(B) of the Loan Agreement. The
Borrowers hereby certify that: 
  

	 	(a)	[the Borrowers intend to withdraw $[            ] of Collections relating to Servicing Advances (other than Net
Cash Proceeds) currently on deposit in the Servicing Advances Accounts (the “Withdrawal”);] 

  

	 	(b)	[the Borrowers intend to re-deposit $[            ] of amounts previously withdrawn;] 

  

	 	(c)	the aggregate amount withdrawn and not re-deposited pursuant to Section 4.02(b)(iii) plus the amount of the Withdrawal shall not exceed the Excess Amount as of the date hereof.
Such amount withdrawn and not re-deposited as of the date hereof is $[            ]; 

  

	 	(d)	as of the date hereof, no Default has occurred and is continuing, and no Default would result from the Withdrawal; and 

  

	 	(e)	based on ResCap Treasury’s reasonable estimate in accordance with its prior practices for calculations under the Loan Agreement, no Borrowing Base Deficiency will result from
the Withdrawal. 

 [Remainder of Page Intentionally Left Blank] 
  

					
		  	Exhibit A-1	  	Ninth Loan Agreement Amendment

 IN WITNESS WHEREOF, the undersigned has executed this Certificate as of the date first set forth above.

  

			
	 GMAC MORTGAGE, LLC,
 as
Borrower

		
	By:	 	 
		 	Name:
		 	Title:

  

			
	 RESIDENTIAL FUNDING COMPANY, LLC, as Borrower

		
	By:	 	 
		 	Name:
		 	Title:

  

					
		  	Exhibit A-2	  	Ninth Loan Agreement Amendment

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00161-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00161-of-00352.parquet"}]]