// File: /workspace/github_cpp_makefile_star2_O1/oknenavin[P]cxon/test/src/json/json.node-main.cxx
// Function: main
int main(int argc, char *argv[]) {
    if (argc == 1)
#       ifndef CXON_TIME_ONLY
            return test::kind::self();
#       else
            return -1;
#       endif

    test::config cf;
    std::map<std::string, test::cases> sets;

    if (argc > 1) {
        if (auto is = std::ifstream(argv[1])) {
            auto const str = std::string(std::istreambuf_iterator<char>(is), std::istreambuf_iterator<char>());
            auto const fbr = cxon::from_bytes<cxon::CXCF<>>(cf, str);
            if (!fbr) {
                std::fprintf(stderr, "%s\n", test::format_error(fbr, std::begin(str)).c_str());
                std::fprintf(stderr, "usage: cxon-json-node <tests>.cf <label>*\n");
                return -1;
            }
        }
        else {
            std::fprintf(stderr, "\"%s\": cannot be opened\n", argv[1]);
            return -1;
        }
        std::string const cfd = test::get_directory(argv[1]);
        static auto const load = [&](const test::config::set& ts) {
            auto& cs = sets[ts.label];
            for (auto& t : ts.group) {
                auto& ss = cf.sets[t];
                for (auto& s : ss.group) {
                    auto p = !test::is_absolute(s.c_str()) ? cfd + s : s;
                    cs.push_back({std::move(p), 0, {}, {}, false});
                }
            }
        };
        if (argc > 2) {
            for (int i = 2; i != argc; ++i)
                if (cf.tests.find(argv[i]) == cf.tests.end()) {
                        std::fprintf(stderr, "%s: test not found in \"%s\"\n", argv[i], argv[1]);
                        return -1;
                }
                else    load(cf.tests[argv[i]]);
        }
        else
            for (auto& ts : cf.tests) load(ts.second);
    }

    int err = 0;

#   ifndef CXON_TIME_ONLY
        if (!sets["pass"].empty())
            err += test::kind::pass(sets["pass"]);
        if (!sets["fail"].empty())
            err += test::kind::fail(sets["fail"]);
        if (!sets["diff-node"].empty())
            err += test::kind::diff_node(sets["diff-node"]);
        if (!sets["diff-native"].empty())
            err += test::kind::diff_native(sets["diff-native"]);
#   endif
        if (!sets["time-node"].empty())
            test::kind::time(sets["time-node"], test::kind::time_cxon_node);
        if (!sets["time-native"].empty())
            test::kind::time(sets["time-native"], test::kind::time_cxon_native);

    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x358, %rsp            # imm = 0x358
cmpl $0x1, %edi
jne 0x48540
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x51ecc
movl %edi, %ebp
leaq 0xa8(%rsp), %rcx
xorl %eax, %eax
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0xd8(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x40(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
cmpl $0x2, %edi
jl 0x4889e
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x100(%rsp), %rdi
movl $0x8, %edx
callq 0xe3f0
leaq 0x8(%rbx), %r15
movq 0x100(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0x120(%rsp,%rcx)
movq %rbx, (%rsp)
jne 0x48c95
movq -0x18(%rax), %rax
movq 0x1e8(%rsp,%rax), %rsi
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x1932e
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rbx
movq %r14, 0x30(%rsp)
movl $0x0, 0x88(%rsp)
callq 0xe150
movq %rax, 0x90(%rsp)
leaq 0x8fe23(%rip), %rax     # 0xd8451
leaq 0x320(%rsp), %rdi
movq %rax, (%rdi)
movq $0x5, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x8fdfc(%rip), %rax     # 0xd844c
leaq 0x308(%rsp), %rsi
movq %rax, (%rsi)
movq $0x4, 0x8(%rsi)
movq $0x30, 0x10(%rsi)
callq 0x4bf16
addq %r14, %rbx
leaq 0xd93b6(%rip), %rsi     # 0x121a30
leaq 0xa0(%rsp), %rdi
leaq 0x30(%rsp), %rdx
leaq 0x88(%rsp), %r8
movq %rbx, %rcx
callq 0x4bf64
movups 0x88(%rsp), %xmm0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %r14, %rax
addq %rdx, %rax
movaps %xmm0, 0x70(%rsp)
movq %rax, 0x80(%rsp)
xorl %r13d, %r13d
cmpl $0x0, 0x70(%rsp)
sete %r14b
jne 0x48cab
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x486dd
callq 0xe240
leaq 0x100(%rsp), %rdi
callq 0xe0a0
testb %r14b, %r14b
je 0x48c5c
movq (%r15), %rsi
leaq 0x100(%rsp), %rdi
leaq 0x308(%rsp), %rdx
callq 0xe110
leaq 0x100(%rsp), %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0xe440
cmpq $-0x1, %rax
je 0x48746
incq %rax
leaq 0x10(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xe270
jmp 0x4875a
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48770
callq 0xe240
movb 0xddf22(%rip), %al      # 0x126698
testb %al, %al
je 0x48d11
cmpl $0x2, %ebp
jne 0x487b4
movq 0xb8(%rsp), %r14
movb $0x1, %bl
leaq 0xa8(%rsp), %rax
cmpq %rax, %r14
je 0x48882
leaq 0x40(%r14), %rdi
callq 0x48e44
movq %r14, %rdi
callq 0xe1a0
movq %rax, %r14
jmp 0x4878d
movl %r13d, 0xc(%rsp)
movl %ebp, %eax
movq %rax, 0x68(%rsp)
movl $0x2, %r14d
xorl %ebx, %ebx
leaq 0x100(%rsp), %r15
leaq 0x308(%rsp), %r12
leaq 0xa0(%rsp), %r13
movq (%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0xe110
movq %r13, %rdi
movq %r15, %rsi
callq 0x4e112
movq %rax, %rbp
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x4881b
callq 0xe240
leaq 0xa8(%rsp), %rax
cmpq %rax, %rbp
je 0x48ce2
movq (%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0xe110
movq %r13, %rdi
movq %r15, %rsi
callq 0x4adea
movq %rax, %rdi
callq 0x48e44
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x4886c
callq 0xe240
incq %r14
cmpq %r14, 0x68(%rsp)
sete %bl
jne 0x487e0
movl 0xc(%rsp), %r13d
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48895
callq 0xe240
testb $0x1, %bl
je 0x48c5c
leaq 0x110(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8fb42(%rip), %rsi     # 0xd83f3
leaq 0x8fb3f(%rip), %rdx     # 0xd83f7
leaq 0x100(%rsp), %rdi
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x488f0
callq 0xe240
cmpq %r15, %rbx
je 0x48944
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8faec(%rip), %rsi     # 0xd83f3
leaq 0x8fae9(%rip), %rdx     # 0xd83f7
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq %rax, %rdi
callq 0x4904f
movl %eax, %r13d
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48947
callq 0xe240
jmp 0x48947
xorl %r13d, %r13d
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8faca(%rip), %rsi     # 0xd8423
leaq 0x8fac7(%rip), %rdx     # 0xd8427
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48990
callq 0xe240
cmpq %r15, %rbx
je 0x489e4
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8fa7c(%rip), %rsi     # 0xd8423
leaq 0x8fa79(%rip), %rdx     # 0xd8427
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq %rax, %rdi
callq 0x4956e
movl %eax, %ebp
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x489e1
callq 0xe240
addl %ebp, %r13d
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f999(%rip), %rsi     # 0xd838f
leaq 0x8f99b(%rip), %rdx     # 0xd8398
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48a2d
callq 0xe240
cmpq %r15, %rbx
je 0x48a81
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f94b(%rip), %rsi     # 0xd838f
leaq 0x8f94d(%rip), %rdx     # 0xd8398
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq %rax, %rdi
callq 0x104cc
movl %eax, %ebp
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48a7e
callq 0xe240
addl %ebp, %r13d
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f906(%rip), %rsi     # 0xd8399
leaq 0x8f90a(%rip), %rdx     # 0xd83a4
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48aca
callq 0xe240
cmpq %r15, %rbx
je 0x48b1e
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f8b8(%rip), %rsi     # 0xd8399
leaq 0x8f8bc(%rip), %rdx     # 0xd83a4
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq %rax, %rdi
callq 0x10922
movl %eax, %ebp
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48b1b
callq 0xe240
addl %ebp, %r13d
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f875(%rip), %rsi     # 0xd83a5
leaq 0x8f877(%rip), %rdx     # 0xd83ae
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48b67
callq 0xe240
cmpq %r15, %rbx
je 0x48bbd
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f827(%rip), %rsi     # 0xd83a5
leaq 0x8f829(%rip), %rdx     # 0xd83ae
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
leaq 0x8ba21(%rip), %rsi     # 0xd45c4
movq %rax, %rdi
callq 0x4aee2
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48bbd
callq 0xe240
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f7e0(%rip), %rsi     # 0xd83af
leaq 0x8f7e4(%rip), %rdx     # 0xd83ba
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48c06
callq 0xe240
cmpq %r15, %rbx
je 0x48c5c
leaq 0x100(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8f792(%rip), %rsi     # 0xd83af
leaq 0x8f796(%rip), %rdx     # 0xd83ba
callq 0x18eca
leaq 0x38(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4ae66
leaq 0x6b036(%rip), %rsi     # 0xb3c78
movq %rax, %rdi
callq 0x4aee2
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
je 0x48c5c
callq 0xe240
leaq 0x38(%rsp), %rdi
callq 0x4be72
leaq 0xd0(%rsp), %rdi
callq 0x4bec0
leaq 0xa0(%rsp), %rdi
callq 0x4bec0
movl %r13d, %eax
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0xeae2
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
xorl %r14d, %r14d
jmp 0x486dd
movq 0xdd326(%rip), %rax     # 0x125fd8
movq (%rax), %rbx
leaq 0x320(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x18fb6
leaq 0x320(%rsp), %rdi
movq %rbx, %rsi
callq 0xeb06
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x486ce
movq 0xdd2ef(%rip), %rax     # 0x125fd8
movq (%rax), %rdi
movq (%rsp), %rax
movq (%rax,%r14,8), %rdx
movq 0x8(%rax), %rcx
leaq 0x8f674(%rip), %rsi     # 0xd8373
xorl %eax, %eax
callq 0xe330
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x48882
leaq 0xdd980(%rip), %rdi     # 0x126698
callq 0xe3e0
testl %eax, %eax
je 0x4877e
leaq 0x38(%rsp), %rax
movq %rax, 0xdd94f(%rip)     # 0x126680
leaq 0xa0(%rsp), %rax
movq %rax, 0xdd948(%rip)     # 0x126688
leaq 0x10(%rsp), %rax
movq %rax, 0xdd944(%rip)     # 0x126690
leaq 0xdd945(%rip), %rdi     # 0x126698
callq 0xe190
jmp 0x4877e
movq %rax, %r15
leaq 0x110(%rsp), %rax
jmp 0x48e09
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48d9a
jmp 0x48dbb
movq %rax, %r15
jmp 0x48dcd
jmp 0x48d9a
jmp 0x48da9
jmp 0x48d9a
jmp 0x48da9
jmp 0x48d9a
jmp 0x48da9
jmp 0x48d9a
jmp 0x48da9
jmp 0x48d9a
jmp 0x48da9
jmp 0x48d9a
jmp 0x48da9
movq %rax, %r15
jmp 0x48e17
jmp 0x48da9
jmp 0x48da9
jmp 0x48da9
jmp 0x48da9
jmp 0x48da9
movq %rax, %r15
movq 0x100(%rsp), %rdi
cmpq %r14, %rdi
jne 0x48e12
jmp 0x48e17
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x48dcd
callq 0xe240
leaq 0x100(%rsp), %rdi
callq 0xe0a0
jmp 0x48e17
jmp 0x48de0
jmp 0x48de0
movq %rax, %r15
jmp 0x48e04
jmp 0x48de7
movq %rax, %r15
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x48e04
callq 0xe240
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48e17
callq 0xe240
leaq 0x38(%rsp), %rdi
callq 0x4be72
leaq 0xd0(%rsp), %rdi
callq 0x4bec0
leaq 0xa0(%rsp), %rdi
callq 0x4bec0
movq %r15, %rdi
callq 0xe3c0
nop