New analytical method for the calculation of the LED secondary optics for automotive high-beam lamps is presented. Automotive headlamps should illuminate the road and the curb at the distance of 100-150 meters and create a bright, flat, relatively powerful light beam. To generate intensity distribution of this kind we propose to use TIR optical element (collimator working on the total internal reflection principle) with array of microlenses (optical corrector) on the upper surface. TIR part of the optical element enables reflection of the side rays to the front direction and provides a collimated beam which incidents on the microrelief. Microrelief, in its turn, dissipates the light flux in horizontal direction to meet the requirements of the Regulations 112, 113 and to provide well-illuminated area across the road in the far field. As an example, we computed and simulated the optical element with the diameter of 33 millimeters and the height of 22 millimeters. Simulation data shows that three illuminating modules including Cree XP-G2 LED and lens allow generating an appropriate intensity distribution for the class D of UNECE Regulations.