I'm not sure what they use at the processing plants, but somehow they are able to shatter them without pulverizing the nuts too much.
Pretty sure sets of rollers or counter-rotating plates, screens, and hand picking.
Ever see how cashews are processed? Every one by hand...Hand sorted, too. Again, it explains why they are so expensive.