Herbert Smith Freehills is advising Australia's AGL Energy after local billionaire Mike Cannon-Brookes and Canadian investment giant Brookfield Asset Management made an unsolicited $5.8 billion bid for the company.