resolver: move large code blocks to arrange related functions closer.  almost no code changes
resolver: move large code blocks to arrange related functions closer.
 almost no code changes


brgl/uclibc-ng,hwoarang/uClibc,kraj/uClibc,mephi42/uClibc,atgreen/uClibc-moxie,groundwater/uClibc,hwoarang/uClibc,gittup/uClibc,ffainelli/uClibc,mephi42/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,hjl-tools/uClibc,groundwater/uClibc,wbx-github/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,wbx-github/uclibc-ng,hjl-tools/uClibc,gittup/uClibc,waweber/uclibc-clang,foss-xtensa/uClibc,czankel/xtensa-uclibc,skristiansson/uClibc-or1k,hwoarang/uClibc,brgl/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,groundwater/uClibc,waweber/uclibc-clang,atgreen/uClibc-moxie,majek/uclibc-vx32,czankel/xtensa-uclibc,hjl-tools/uClibc,m-labs/uclibc-lm32,hjl-tools/uClibc,skristiansson/uClibc-or1k,kraj/uclibc-ng,brgl/uclibc-ng,ysat0/uClibc,majek/uclibc-vx32,majek/uclibc-vx32,groundwater/uClibc,ffainelli/uClibc,mephi42/uClibc,ysat0/uClibc,ddcc/klee-uclibc-0.9.33.2,gittup/uClibc,ndmsystems/uClibc,kraj/uclibc-ng,kraj/uclibc-ng,mephi42/uClibc,ndmsystems/uClibc,m-labs/uclibc-lm32,ndmsystems/uClibc,waweber/uclibc-clang,foss-xtensa/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,wbx-github/uclibc-ng,ffainelli/uClibc,atgreen/uClibc-moxie,OpenInkpot-archive/iplinux-uclibc,m-labs/uclibc-lm32,ffainelli/uClibc,gittup/uClibc,OpenInkpot-archive/iplinux-uclibc,atgreen/uClibc-moxie,OpenInkpot-archive/iplinux-uclibc,ndmsystems/uClibc,ffainelli/uClibc,skristiansson/uClibc-or1k,ysat0/uClibc,foss-xtensa/uClibc,majek/uclibc-vx32,kraj/uClibc,kraj/uClibc,brgl/uclibc-ng,skristiansson/uClibc-or1k,ddcc/klee-uclibc-0.9.33.2,ysat0/uClibc,hjl-tools/uClibc,kraj/uClibc,czankel/xtensa-uclibc,groundwater/uClibc,wbx-github/uclibc-ng,m-labs/uclibc-lm32,foss-for-synopsys-dwc-arc-processors/uClibc,waweber/uclibc-clang,kraj/uclibc-ng,czankel/xtensa-uclibc