// File: /workspace/github_cpp_makefile_star2_O2/pstuifzand[P]magento-tools/src/magento-config.cpp
// Function: main
int main(int argc, char** argv) {
    parse_module_config parse;

    argc--;
    argv++;

    int names = 0;
    while (argc) {
        if (strcmp(*argv, "--names") == 0) {
            names = 1;
        }
        else if (argv[0][0] == '-' && argv[0][1] == '-') {
            // unknown argument
        }
        else {
            parse(*argv);
        }
        argc--;
        argv++;
    }

    std::sort(std::begin(parse.data.names), std::end(parse.data.names));

    if (names) {
        for (auto& s : parse.data.names) {
            std::cout << s << "\n";
        }
        exit(0);
    }

    std::string s;
    while (std::getline(std::cin, s)) {
        std::string key = s;

        auto p = std::equal_range(
            std::begin(parse.data.names),
            std::end(parse.data.names),
            key);

        if (p.first == p.second) {
            std::cout << "not found " << '"' << key << '"' << "\n";
        } else {
            std::cout << "found " << '"' << key << '"' << "\n";
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movl %edi, %r13d
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x286c
movb $0x1, %al
movl %eax, 0x4(%rsp)
leaq 0x1a19(%rip), %r15      # 0x40ae
addq $0x8, %rbx
decl %r13d
movl %r13d, %ebp
subl $0x1, %ebp
jb 0x26e3
movq (%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2220
testl %eax, %eax
je 0x26d9
cmpb $0x2d, (%r12)
jne 0x26c5
cmpb $0x2d, 0x1(%r12)
je 0x26d0
movq %r14, %rdi
movq %r12, %rsi
callq 0x2882
addq $0x8, %rbx
movl %ebp, %r13d
jmp 0x269f
movl $0x0, 0x4(%rsp)
jmp 0x2695
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
callq 0x2d4f
testb $0x1, 0x4(%rsp)
je 0x27ec
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x38bd(%rip), %rbx      # 0x5fd8
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
movq 0x389c(%rip), %r12      # 0x5fc8
pushq $0x22
popq %rbp
leaq 0x1980(%rip), %r13      # 0x40b6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x27c4
movq %r15, %rdi
movq %r14, %rsi
callq 0x2210
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq %r15, %rdx
callq 0x34dd
leaq 0x193f(%rip), %rsi      # 0x40b8
cmpq %rdx, %rax
je 0x2785
leaq 0x1937(%rip), %rsi      # 0x40bc
movq %r12, %rdi
callq 0x2160
movq %rax, %rdi
movl %ebp, %esi
callq 0x21a0
movq %rax, %rdi
movq %r15, %rsi
callq 0x2140
movq %rax, %rdi
movl %ebp, %esi
callq 0x21a0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2160
movq %r15, %rdi
callq 0x20b0
jmp 0x2736
leaq 0x8(%rsp), %rdi
callq 0x20b0
leaq 0x48(%rsp), %rdi
callq 0x295e
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc0(%rsp), %rbx
movq 0xc8(%rsp), %r12
movq 0x37c5(%rip), %r14      # 0x5fc8
leaq 0x18ac(%rip), %r15      # 0x40b6
cmpq %r12, %rbx
je 0x282b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2140
movq %rax, %rdi
movq %r15, %rsi
callq 0x2160
addq $0x20, %rbx
jmp 0x280a
xorl %edi, %edi
callq 0x21c0
jmp 0x2836
jmp 0x2836
movq %rax, %rbx
jmp 0x2859
jmp 0x283d
movq %rax, %rbx
jmp 0x284f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20b0
leaq 0x8(%rsp), %rdi
callq 0x20b0
leaq 0x48(%rsp), %rdi
callq 0x295e
movq %rbx, %rdi
callq 0x2270
nop