// File: /workspace/github_cpp_makefile_star2_O2/EDDRSoftware[P]libdefsEval/main.cpp
// Function: evaluateDefine(boost::program_options::variables_map const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, boost::filesystem::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
void evaluateDefine(const variables_map &vm, const string &var1,
                    const string &var2, const path &fp, const string &line, int lineNum)
{
    bool showLibs       = vm.count("libs");
    bool showCells      = vm.count("cells");
    bool showViews      = vm.count("views");
    bool showCellViews  = vm.count("cellviews");
    bool showDefines    = vm.count("defines");
    path libName(var1);
    path libPath;

    if(parse(var2, fp, &libPath, line, lineNum)) {
        if(showDefines) {
            cout << "DEFINE: " << fp.string() << ":" << lineNum << " \"" << line << "\"" <<
                 endl;
        }

        cout << "libPath: " << libPath.string() << endl;

        if(showLibs) {
            cout << "\tlibName: " << libName.string() << endl;
        }

        if(showCells || showViews || showCellViews) {
            recursive_directory_iterator it(libPath), eod;

            for(; it!=eod; ++it) {
                if(*it!=libPath) {
                    if(is_directory(it->path()) &&
                            it->path().parent_path()==libPath) {

                        // Ignore hidden directories.
                        if(it->path().filename().string()[0]=='.'){
                            continue;
                        }

                        if(showCells) {
                            cout << "\t\tcellName: " << it->path().filename().string() << endl;
                        }

                        if(showViews || showCellViews) {
                            recursive_directory_iterator it2(it->path()), eod2;

                            for(; it2!=eod2; ++it2) {
                                if(!is_directory(it2->path()) &&
                                        iCompareString(it2->path().extension().string(), string(".oa"))) {
                                    string viewName = it2->path().parent_path().filename().string();

                                    if(showCellViews) {
                                        cout << "\t\tcellViewName: " << it->path().filename().string() << "/" <<
                                             viewName << endl;
                                    } else if(showViews) {
                                        cout << "\t\t\tviewName: " << viewName << endl;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r9d, -0x50(%rbp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x451a(%rip), %rsi      # 0x9062
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x6052
addq $0x10, %r14
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x602e
movq %rax, -0xa8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4150
leaq 0x44e8(%rip), %rsi      # 0x9067
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x6052
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x602e
movq %rax, -0xa0(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4150
leaq 0x44bf(%rip), %rsi      # 0x9071
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x6052
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x602e
movq %rax, -0x58(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4150
leaq 0x448b(%rip), %rsi      # 0x906d
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x6052
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x602e
movq %rax, -0x60(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4150
leaq 0x4465(%rip), %rsi      # 0x9077
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x6052
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x602e
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x4150
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0x43c0
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x98(%rbp), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl -0x50(%rbp), %ebx
movl %ebx, %r8d
callq 0x4887
testb %al, %al
je 0x5050
testq %r14, %r14
je 0x4ce9
movq 0x9340(%rip), %rdi      # 0xdfc8
leaq 0x43f0(%rip), %rsi      # 0x907f
callq 0x42d0
movq %rax, %rdi
movq %r12, %rsi
callq 0x42a0
leaq 0x43ab(%rip), %rsi      # 0x9051
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movl %ebx, %esi
callq 0x4490
leaq 0x43c9(%rip), %rsi      # 0x9088
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
movq %r15, %rsi
callq 0x42a0
leaq 0x43b0(%rip), %rsi      # 0x9089
movq %rax, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0x4170
movq 0x92d8(%rip), %rdi      # 0xdfc8
leaq 0x4394(%rip), %rsi      # 0x908b
callq 0x42d0
leaq -0x98(%rbp), %rsi
movq %rax, %rdi
callq 0x42a0
movq %rax, %rdi
callq 0x4170
cmpq $0x0, -0xa8(%rbp)
je 0x4d44
movq 0x92a4(%rip), %rdi      # 0xdfc8
leaq 0x436a(%rip), %rsi      # 0x9095
callq 0x42d0
leaq -0x48(%rbp), %rsi
movq %rax, %rdi
callq 0x42a0
movq %rax, %rdi
callq 0x4170
movq -0x58(%rbp), %rax
orq -0xa0(%rbp), %rax
orq -0x60(%rbp), %rax
je 0x5050
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x608e
leaq -0x70(%rbp), %rax
andq $0x0, (%rax)
movq -0x60(%rbp), %rax
orq -0x58(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x78(%rbp), %r13
leaq -0xd0(%rbp), %r14
leaq -0xb0(%rbp), %r15
leaq -0x110(%rbp), %rbx
movq %r13, %rdi
leaq -0x70(%rbp), %rsi
callq 0x60bd
testb %al, %al
je 0x503e
movq %r13, %rdi
callq 0x6eda
movq %rax, %rdi
leaq -0x98(%rbp), %rsi
callq 0x60ca
testb %al, %al
je 0x5031
movq %r13, %rdi
callq 0x6eda
movq %rax, %rdi
callq 0x6009
testb %al, %al
je 0x5031
movq %r13, %rdi
callq 0x6eda
movq %r14, %rdi
movq %rax, %rsi
callq 0x4510
movq %r14, %rdi
leaq -0x98(%rbp), %rsi
callq 0x60da
movl %eax, %r12d
movq %r14, %rdi
callq 0x4150
testb %r12b, %r12b
je 0x5031
movq %r13, %rdi
callq 0x6eda
movq %r14, %rdi
movq %rax, %rsi
callq 0x4280
movq -0xd0(%rbp), %rax
movb (%rax), %r12b
movq %r14, %rdi
callq 0x4150
cmpb $0x2e, %r12b
je 0x5031
cmpq $0x0, -0xa0(%rbp)
je 0x4e94
movq 0x9171(%rip), %rdi      # 0xdfc8
leaq 0x4242(%rip), %rsi      # 0x90a0
callq 0x42d0
movq %rax, %r12
movq %r13, %rdi
callq 0x6eda
movq %r14, %rdi
movq %rax, %rsi
callq 0x4280
movq %r12, %rdi
movq %r14, %rsi
callq 0x42a0
movq %rax, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x4150
cmpq $0x0, -0x50(%rbp)
je 0x5031
movq %r13, %rdi
callq 0x6eda
movq %r15, %rdi
movq %rax, %rsi
callq 0x608e
andq $0x0, -0x68(%rbp)
movq %r15, %rdi
leaq -0x68(%rbp), %rsi
callq 0x60bd
testb %al, %al
je 0x5020
movq %r15, %rdi
callq 0x6eda
movq %rax, %rdi
callq 0x6009
testb %al, %al
jne 0x5013
movq %r15, %rdi
callq 0x6eda
movq %r14, %rdi
movq %rax, %rsi
callq 0x4330
movq %rbx, %rdi
leaq 0x41ad(%rip), %rsi      # 0x90ad
leaq -0xf0(%rbp), %rdx
callq 0x6052
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46df
movl %eax, %r12d
movq %rbx, %rdi
callq 0x4150
movq %r14, %rdi
callq 0x4150
testb %r12b, %r12b
je 0x5013
movq %r15, %rdi
callq 0x6eda
leaq -0xf0(%rbp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x4510
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4280
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43c0
movq %rbx, %rdi
callq 0x4150
leaq -0xf0(%rbp), %rdi
callq 0x4150
cmpq $0x0, -0x60(%rbp)
je 0x4fde
movq 0x9043(%rip), %rdi      # 0xdfc8
leaq 0x4125(%rip), %rsi      # 0x90b1
callq 0x42d0
movq %rax, %r12
movq %r13, %rdi
callq 0x6eda
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4280
movq %r12, %rdi
movq %rbx, %rsi
callq 0x42a0
movq %rax, %rdi
leaq 0x4106(%rip), %rsi      # 0x90c2
callq 0x42d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x42a0
movq %rax, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x4150
jmp 0x500b
cmpq $0x0, -0x58(%rbp)
je 0x500b
movq 0x8fdc(%rip), %rdi      # 0xdfc8
leaq 0x40d1(%rip), %rsi      # 0x90c4
callq 0x42d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x42a0
movq %rax, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x4150
movq %r15, %rdi
callq 0x6ece
jmp 0x4eb7
leaq -0x68(%rbp), %rdi
callq 0x630a
movq %r15, %rdi
callq 0x630a
movq %r13, %rdi
callq 0x6ece
jmp 0x4d96
leaq -0x70(%rbp), %rdi
callq 0x630a
leaq -0x78(%rbp), %rdi
callq 0x630a
leaq -0x98(%rbp), %rdi
callq 0x4150
leaq -0x48(%rbp), %rdi
callq 0x4150
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x50e5
jmp 0x5109
jmp 0x5109
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x4150
jmp 0x5126
jmp 0x50a7
jmp 0x50af
jmp 0x50a7
jmp 0x50af
jmp 0x50a7
jmp 0x50af
jmp 0x50a7
jmp 0x50af
movq %rax, %rbx
jmp 0x5144
movq %rax, %rbx
jmp 0x514d
jmp 0x5109
movq %rax, %rbx
jmp 0x50cd
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x4150
leaq -0xf0(%rbp), %rdi
jmp 0x5100
jmp 0x50de
jmp 0x50de
jmp 0x5109
jmp 0x50ea
movq %rax, %rbx
jmp 0x50f9
jmp 0x510e
movq %rax, %rbx
jmp 0x5138
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x4150
leaq -0xd0(%rbp), %rdi
callq 0x4150
jmp 0x5111
jmp 0x510e
movq %rax, %rbx
jmp 0x5126
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x630a
leaq -0xb0(%rbp), %rdi
callq 0x630a
leaq -0x70(%rbp), %rdi
callq 0x630a
leaq -0x78(%rbp), %rdi
callq 0x630a
leaq -0x98(%rbp), %rdi
callq 0x4150
leaq -0x48(%rbp), %rdi
callq 0x4150
movq %rbx, %rdi
callq 0x44c0