The particularly important passage in the lines being recited are the ones that Downey seems to be testing out, as he repeats “Whatever it takes” twice before launching into the rest of the moment’s wording.
With Christopher Markus and Stephen McFeely’s Avengers: Endgame dialogue sitting in front of him, this Instagram video shows how dedicated Robert Downey Jr. was when it came to getting that line absolutely correct.