// File: /workspace/github_cpp_makefile_star2_O1/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 0x285d
movl %ebp, %ebp
movl $0x1, %r15d
leaq 0x1899(%rip), %r14      # 0x40ae
movq (%rbx,%r15,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2210
testl %eax, %eax
je 0x2846
cmpb $0x2d, (%r12)
jne 0x2837
cmpb $0x2d, 0x1(%r12)
je 0x284c
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x2b82
jmp 0x284c
movl $0x1, %r13d
incq %r15
cmpl %r15d, %ebp
jne 0x2815
testl %r13d, %r13d
sete %bpl
jmp 0x2860
movb $0x1, %bpl
movq 0xc0(%rsp), %rbx
movq 0xc8(%rsp), %r14
cmpq %r14, %rbx
je 0x28a2
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 0x31f7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32db
testb %bpl, %bpl
je 0x2acf
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x18(%rsp), %rbp
movq 0x370d(%rip), %r14      # 0x5fd8
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movq 0x36ec(%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 0x2a22
movq %rbp, 0x8(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2f00
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq %r12, %rdx
callq 0x3a71
cmpq %rdx, %rax
je 0x299e
movl $0x6, %edx
movq %r13, %rdi
leaq 0x1761(%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 0x29ee
movl $0xa, %edx
movq %r13, %rdi
leaq 0x170b(%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 0x16b9(%rip), %rsi      # 0x40b6
callq 0x21b0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x28e1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x28e1
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2a3e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0xc0(%rsp), %rdi
callq 0x2ea4
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x2a70
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x2a95
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x2ab1
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 0x2b1a
movq 0x34dd(%rip), %rbx      # 0x5fc8
leaq 0x15c4(%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 0x2af2
xorl %edi, %edi
callq 0x21d0
jmp 0x2b2d
movq %rax, %rdi
callq 0x2d0b
jmp 0x2b2d
movq %rax, %rbx
jmp 0x2b6f
jmp 0x2b34
movq %rax, %rbx
jmp 0x2b53
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2b53
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
cmpq %rax, %rdi
je 0x2b6f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x48(%rsp), %rdi
callq 0x2ca4
movq %rbx, %rdi
callq 0x2280
nop