loanDepot, the nation’s second-largest retail mortgage lender, has so far cut nearly 4,000 jobs since the end of last year, but today said it plans to cut something else: its wholesale lending business. The company made the announcement as it released its earnings for the second quarter of 2022, reporting a net loss of $223.8 million, or 66 cents per diluted share. It was the company’s second-consecutive quarter with a loss, after reporting a loss of $91.32 million in the previous quarter.