// File: /workspace/github_cpp_makefile_star2_O3/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, %ebp
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x2270
leaq 0x70(%rsp), %rcx
movq %rax, -0x28(%rcx)
movl $0x1, -0x20(%rcx)
movq %r13, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %r13, -0x8(%rcx)
movb %r13b, (%rcx)
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r13, -0x8(%rax)
movb %r13b, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %r13, 0x20(%rax)
cmpl $0x1, %ebp
je 0x28a3
movl %ebp, %ebp
movl $0x1, %r15d
leaq 0x1895(%rip), %r14      # 0x40ae
movq (%rbx,%r15,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2210
testl %eax, %eax
je 0x284a
cmpb $0x2d, (%r12)
jne 0x283b
cmpb $0x2d, 0x1(%r12)
je 0x2850
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x2b7a
jmp 0x2850
movl $0x1, %r13d
incq %r15
cmpl %r15d, %ebp
jne 0x2819
movq 0xc0(%rsp), %rbx
movq 0xc8(%rsp), %r14
cmpq %r14, %rbx
je 0x289a
movq %r14, %rax
subq %rbx, %rax
sarq $0x5, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31c9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x329d
testl %r13d, %r13d
jne 0x2ac7
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x18(%rsp), %rbp
movq 0x3715(%rip), %r14      # 0x5fd8
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movq 0x36f4(%rip), %r13      # 0x5fc8
leaq 0x7(%rsp), %rbx
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x22c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2a1a
movq %rbp, 0x8(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2ec4
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq %r12, %rdx
callq 0x3a12
cmpq %rdx, %rax
je 0x2996
movl $0x6, %edx
movq %r13, %rdi
leaq 0x1769(%rip), %rsi      # 0x40bc
callq 0x21b0
movb $0x22, 0x7(%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x21b0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x21b0
movb $0x22, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21b0
jmp 0x29e6
movl $0xa, %edx
movq %r13, %rdi
leaq 0x1713(%rip), %rsi      # 0x40b8
callq 0x21b0
movb $0x22, 0x7(%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x21b0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x21b0
movb $0x22, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x16c1(%rip), %rsi      # 0x40b6
callq 0x21b0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x28d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x28d9
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2a36
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0xc0(%rsp), %rdi
callq 0x2e66
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x2a68
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x2a8d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x2aa9
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x48(%rsp), %rdi
callq 0x2140
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc0(%rsp), %r15
movq 0xc8(%rsp), %r12
cmpq %r12, %r15
je 0x2b12
movq 0x34e5(%rip), %rbx      # 0x5fc8
leaq 0x15cc(%rip), %r14      # 0x40b6
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x21b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21b0
addq $0x20, %r15
cmpq %r12, %r15
jne 0x2aea
xorl %edi, %edi
callq 0x21d0
jmp 0x2b25
jmp 0x2b25
movq %rax, %rdi
callq 0x2d03
movq %rax, %rbx
jmp 0x2b67
jmp 0x2b2c
movq %rax, %rbx
jmp 0x2b4b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2b4b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
cmpq %rax, %rdi
je 0x2b67
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x48(%rsp), %rdi
callq 0x2c9c
movq %rbx, %rdi
callq 0x2280
nop