MMQ rewrite the last of the old scanhash loop