HSBC has agreed to pay a $470 million settlement to the US government and states related to dubious mortgage lending…