x86: corruption check: move the corruption checks into their own file