// File: /workspace/github_cpp_makefile_star2_O1/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 $0x158, %rsp            # imm = 0x158
movl %r9d, -0x4c(%rbp)
movq %r8, %r15
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x5266(%rip), %rsi      # 0xa07e
leaq 0x5263(%rip), %rdx      # 0xa082
leaq -0x48(%rbp), %rdi
callq 0x768c
movq %r12, -0x58(%rbp)
addq $0x10, %r12
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x7cc4
movq %rax, -0xf8(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4e5c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
leaq 0x5215(%rip), %rsi      # 0xa083
leaq 0x5213(%rip), %rdx      # 0xa088
callq 0x768c
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x7cc4
movq %rax, -0xd8(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4ea6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
leaq 0x51d5(%rip), %rsi      # 0xa08d
leaq 0x51d3(%rip), %rdx      # 0xa092
callq 0x768c
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x7cc4
movq %rax, -0xe0(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4ef0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
leaq 0x5187(%rip), %rsi      # 0xa089
leaq 0x5189(%rip), %rdx      # 0xa092
callq 0x768c
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x7cc4
movq %rax, -0xe8(%rbp)
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4f3a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
leaq 0x5147(%rip), %rsi      # 0xa093
leaq 0x5147(%rip), %rdx      # 0xa09a
callq 0x768c
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x7cc4
movq %rax, %r12
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4f80
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x75f2
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xd0(%rbp), %rdx
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %r14
movq %r15, %rcx
movl -0x4c(%rbp), %r15d
movl %r15d, %r8d
callq 0x49a2
testb %al, %al
je 0x56b7
movq -0x58(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x58(%rbp)
cmpq %rax, %r12
je 0x509e
movq 0x8fd5(%rip), %rdi      # 0xdfc8
leaq 0x50a1(%rip), %rsi      # 0xa09b
movl $0x8, %edx
callq 0x4300
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x8fb5(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
leaq 0x504b(%rip), %rsi      # 0xa06d
movl $0x1, %edx
movq %rax, %rdi
callq 0x4300
movq %rbx, %rdi
movl %r15d, %esi
callq 0x4470
movq %rax, %rbx
leaq 0x5060(%rip), %rsi      # 0xa0a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x4300
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x4300
movq %rax, %rbx
leaq 0x503b(%rip), %rsi      # 0xa0a5
movl $0x1, %edx
movq %rax, %rdi
callq 0x4300
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq 0x8f23(%rip), %rdi      # 0xdfc8
leaq 0x4ffb(%rip), %rsi      # 0xa0a7
movl $0x9, %edx
callq 0x4300
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq 0x8efd(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq -0xf8(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x515d
movq 0x8eba(%rip), %rdi      # 0xdfc8
leaq 0x4f9c(%rip), %rsi      # 0xa0b1
movl $0xa, %edx
callq 0x4300
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x8e9a(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq -0xe8(%rbp), %rbx
movq -0x58(%rbp), %rcx
xorq %rcx, %rbx
movq -0xe0(%rbp), %r14
xorq %rcx, %r14
movq -0xd8(%rbp), %rax
xorq %rcx, %rax
orq %r14, %rax
orq %rbx, %rax
je 0x56b7
leaq -0x80(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x6eae
movq $0x0, -0xb0(%rbp)
orq %rbx, %r14
setne -0x4c(%rbp)
leaq -0x80(%rbp), %r13
leaq -0x78(%rbp), %r15
leaq -0x178(%rbp), %r14
leaq -0xf0(%rbp), %r12
movq -0x80(%rbp), %rcx
movq -0xb0(%rbp), %rax
cmpq %rax, %rcx
je 0x56a2
testq %rcx, %rcx
je 0x51e6
movq 0x8(%rcx), %rdx
cmpq 0x10(%rcx), %rdx
jne 0x51fd
testq %rax, %rax
je 0x56a2
movq 0x8(%rax), %rcx
cmpq 0x10(%rax), %rcx
je 0x56a2
movq %r13, %rdi
callq 0x7d62
movq %rax, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x4340
testl %eax, %eax
je 0x5693
movq %r13, %rdi
callq 0x7d62
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x43e0
movl -0x78(%rbp), %ebx
cmpl $0x3, %ebx
jne 0x5263
movq %r13, %rdi
callq 0x7d62
movq %r14, %rdi
movq %rax, %rsi
callq 0x4500
movq %r14, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x4340
testl %eax, %eax
sete %r14b
jmp 0x5266
xorl %r14d, %r14d
cmpl $0x3, %ebx
jne 0x528d
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
je 0x528d
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x42d0
testb %r14b, %r14b
leaq -0x178(%rbp), %r14
je 0x5693
movq %r13, %rdi
callq 0x7d62
movq %r15, %rdi
movq %rax, %rsi
callq 0x4260
movq -0x78(%rbp), %rdi
movb (%rdi), %bl
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x52cb
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x2e, %bl
je 0x5693
movq -0xd8(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x5367
movl $0xc, %edx
movq 0x8cd7(%rip), %rdi      # 0xdfc8
leaq 0x4dc4(%rip), %rsi      # 0xa0bc
callq 0x4300
movq %r13, %rdi
callq 0x7d62
movq %r15, %rdi
movq %rax, %rsi
callq 0x4260
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq 0x8ca9(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x5367
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
cmpb $0x0, -0x4c(%rbp)
je 0x5693
movq %r13, %rdi
callq 0x7d62
movq %r12, %rdi
movq %rax, %rsi
callq 0x6eae
movq $0x0, -0xa8(%rbp)
movq -0xf0(%rbp), %rcx
movq -0xa8(%rbp), %rax
cmpq %rax, %rcx
je 0x567f
testq %rcx, %rcx
je 0x53b5
movq 0x8(%rcx), %rdx
cmpq 0x10(%rcx), %rdx
jne 0x53cc
testq %rax, %rax
je 0x567f
movq 0x8(%rax), %rcx
cmpq 0x10(%rax), %rcx
je 0x567f
movq %r12, %rdi
callq 0x7d62
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x43e0
movl -0x78(%rbp), %r14d
cmpl $0x3, %r14d
jne 0x53ef
xorl %ebx, %ebx
jmp 0x5442
movq %r12, %rdi
callq 0x7d62
leaq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x4310
leaq -0x148(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
leaq 0x4ca4(%rip), %rsi      # 0xa0c9
leaq 0x4ca0(%rip), %rdx      # 0xa0cc
callq 0x768c
leaq -0x118(%rbp), %rdi
movq %rbx, %rsi
callq 0x46ef
movl %eax, %ebx
cmpl $0x3, %r14d
leaq -0x178(%rbp), %r14
je 0x5493
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
cmpq %rax, %rdi
je 0x5471
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x5493
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x42d0
testb %bl, %bl
je 0x5670
movq %r12, %rdi
callq 0x7d62
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4500
leaq -0xa0(%rbp), %rdi
movq %rbx, %rsi
callq 0x4260
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x75f2
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x5507
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x5529
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x58(%rbp), %rax
cmpq %rax, -0xe8(%rbp)
je 0x55f8
movl $0x10, %edx
movq 0x8a82(%rip), %rdi      # 0xdfc8
leaq 0x4b80(%rip), %rsi      # 0xa0cd
callq 0x4300
movq %r13, %rdi
callq 0x7d62
leaq -0xa0(%rbp), %rdi
movq %rax, %rsi
callq 0x4260
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq 0x8a4a(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x4b49(%rip), %rsi      # 0xa0de
callq 0x4300
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq %rbx, %rdi
callq 0x4300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x5657
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5657
cmpq %rax, -0xe0(%rbp)
je 0x5657
movl $0xd, %edx
movq 0x89bb(%rip), %rdi      # 0xdfc8
leaq 0x4acc(%rip), %rsi      # 0xa0e0
callq 0x4300
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq 0x89a0(%rip), %rdi      # 0xdfc8
callq 0x4300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41e0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x5670
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %r12, %rdi
xorl %esi, %esi
callq 0x41b0
jmp 0x538f
leaq -0xa8(%rbp), %rdi
callq 0x716a
movq %r12, %rdi
callq 0x716a
movq %r13, %rdi
xorl %esi, %esi
callq 0x41b0
jmp 0x51c3
leaq -0xb0(%rbp), %rdi
callq 0x716a
leaq -0x80(%rbp), %rdi
callq 0x716a
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x56d9
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x56f2
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5813
jmp 0x5835
jmp 0x5835
jmp 0x5723
jmp 0x572b
jmp 0x5723
jmp 0x572b
jmp 0x5723
jmp 0x572b
jmp 0x5723
jmp 0x572b
movq %rax, %rbx
jmp 0x586f
movq %rax, %rbx
jmp 0x5888
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x5838
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x5838
movq %rax, %rbx
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x581b
movq -0x108(%rbp), %rsi
jmp 0x5809
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x57a8
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x57a8
movq %rax, %rbx
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x581b
movq -0x128(%rbp), %rsi
jmp 0x5809
jmp 0x5835
jmp 0x5835
jmp 0x57ca
movq %rax, %rbx
jmp 0x57f8
jmp 0x5818
jmp 0x5818
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x57f8
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x581b
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x581b
movq %rax, %rbx
jmp 0x584d
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x716a
leaq -0xf0(%rbp), %rdi
callq 0x716a
jmp 0x5838
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x716a
leaq -0x80(%rbp), %rdi
callq 0x716a
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x586f
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5888
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x44a0