This code is very hard to mess with, as you can see from my
FAILED attempt to fix it for AMD processors from build 2520:
if (%cputype == AMD) {
if (%cpuspeed >= 1450) && (%cpuspeed <= 1485) { var %cpuview = %cputype XP1700+ }
if (%cpuspeed >= 1515) && (%cpuspeed <= 1545) { var %cpuview = %cputype XP1800+ }
if (%cpuspeed >= 1585) && (%cpuspeed <= 1610) { var %cpuview = %cputype XP1900+ }
if (%cpuspeed >= 1650) && (%cpuspeed <= 1690) { var %cpuview = %cputype XP2000+ }
if (%cpuspeed >= 1700) && (%cpuspeed <= 1745) { var %cpuview = %cputype XP2100+ }
if (%cpuspeed >= 1750) && (%cpuspeed <= 1795) { var %cpuview = %cputype XP2200+ }
if (%cpuspeed >= 1815) && (%cpuspeed <= 1845) { var %cpuview = %cputype XP2500+ }
if (%cpuspeed >= 1915) && (%cpuspeed <= 1945) { var %cpuview = %cputype XP2400+ }
if (%cpuspeed >= 2065) && (%cpuspeed <= 2090) { var %cpuview = %cputype XP2800+ }
if (%cpuspeed >= 2115) && (%cpuspeed <= 2145) { var %cpuview = %cputype XP2600+ }
if (%cpuspeed >= 2150) && (%cpuspeed <= 2190) { var %cpuview = %cputype XP2700 Or 3000+ }
if (%cpuspeed >= 2230) { var %cpuview = %cputype XP3200+ }
}