hammer out

/HH AE1 M ER0 AW1 T/
verb
  1. 1

    To come to (a difficult agreement or settlement) after much arguing and conflict.

    โ€œTwo years after the flood, my lawyer managed to hammer out a settlement with my insurance company over the damages.โ€

Source: https://en.wiktionary.org/wiki/hammer%20out