Law firms in Australia advised on M&A deals valued at $52 billion in the first six months of this year.