Raw IQ should only be one of several components to consider. There are many proxies for determining raw IQ, but the proxies themselves should not be the end goal.
Remember that writing maintainable code is also about communicating an idea -- knowing how to pick the right word to describe a variable or function -- knowing how to document your code succinctly, are critical and have a significant effect on a company's bottom line in the long-run.
Furthermore, you want to hire someone who will not negatively affect the productivity of his coworkers with his attitude. He must be able to work productively in a team setting.