Normal form for mirror machine Hamiltonians