Machida won it. He won round 1 and 2, 3rd was for Hendo.
Machida should not be that surprised because of the split decision, the second round was actually very very close. And he did not win the 3rd round. Hendo layed on him for about 2 minutes, landed some (kinda weak) ground and pound, then in the stand up Machida was better but anyone knows that the ground and takedowns have a much bigger impact than the stand up for the judges.
Kinda boring fight, but it is Machida's style and it worked good for him. Hendo has that vicious right hand, he has a granite chin, so Machida used the correct strategy to stay away from Hendo, and just attack him in order to score points.