// File: /workspace/github_cpp_makefile_star2_O3/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 $0x348, %rsp            # imm = 0x348
cmpl $0x1, %edi
jne 0x44b78
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4eaf8
movl %edi, %ebp
leaq 0x2d0(%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 0x300(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x48(%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 0x44ef2
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0xc0(%rsp), %rdi
movl $0x8, %edx
callq 0xe3f0
leaq 0x8(%rbx), %r13
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xe0(%rsp,%rax)
jne 0x452e9
movq %rbx, 0x30(%rsp)
movq 0x1a8(%rsp,%rax), %rsi
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x193ac
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rbx
movq %r14, 0x38(%rsp)
movl $0x0, 0x90(%rsp)
callq 0xe150
movq %rax, 0x98(%rsp)
leaq 0x8e7bc(%rip), %rax     # 0xd3421
leaq 0x328(%rsp), %rdi
movq %rax, (%rdi)
movq $0x5, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x8e795(%rip), %rax     # 0xd341c
leaq 0xa8(%rsp), %rsi
movq %rax, (%rsi)
movq $0x4, 0x8(%rsi)
movq $0x30, 0x10(%rsi)
callq 0x484f2
addq %r14, %rbx
leaq 0xd6d7f(%rip), %rsi     # 0x11ba30
leaq 0x2c8(%rsp), %r12
leaq 0x38(%rsp), %rdx
leaq 0x90(%rsp), %r8
movq %r12, %rdi
movq %rbx, %rcx
callq 0x4855d
movups 0x90(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %r14, %rax
addq %rdx, %rax
movq %rax, 0x80(%rsp)
movl 0x70(%rsp), %r14d
movl $0x0, 0x8(%rsp)
testl %r14d, %r14d
jne 0x45301
leaq 0x20(%rsp), %rax
cmpq %rax, %rdx
je 0x44d1e
movq %rdx, %rdi
callq 0xe240
leaq 0xc0(%rsp), %rdi
callq 0xe0a0
testl %r14d, %r14d
je 0x44d3a
movl 0x8(%rsp), %r12d
jmp 0x452b0
movq (%r13), %rsi
leaq 0xc0(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0xe110
leaq 0xc0(%rsp), %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0xe440
cmpq $-0x1, %rax
je 0x44d8e
incq %rax
leaq 0x10(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xe270
jmp 0x44da6
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44dbc
callq 0xe240
movb 0xdb8d6(%rip), %al      # 0x120698
testb %al, %al
je 0x45386
cmpl $0x2, %ebp
jne 0x44e15
movq 0x2e0(%rsp), %r14
movb $0x1, %bl
leaq 0x2d0(%rsp), %rax
cmpq %rax, %r14
movl 0x8(%rsp), %r12d
je 0x44ed6
leaq 0x40(%r14), %rdi
callq 0x454b6
movq %r14, %rdi
callq 0xe1a0
movq %rax, %r14
leaq 0x2d0(%rsp), %rax
cmpq %rax, %r14
jne 0x44def
jmp 0x44ed6
movl %ebp, %r14d
movl $0x2, %ebx
leaq 0xc0(%rsp), %r15
leaq 0xa8(%rsp), %r12
leaq 0x2c8(%rsp), %r13
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0xe110
movq %r13, %rdi
movq %r15, %rsi
callq 0x4b034
movq %rax, %rbp
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x44e71
callq 0xe240
leaq 0x2d0(%rsp), %rax
cmpq %rax, %rbp
je 0x45354
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0xe110
movq %r13, %rdi
movq %r15, %rsi
callq 0x47336
movq %rax, %rdi
callq 0x454b6
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x44ec3
callq 0xe240
incq %rbx
cmpq %rbx, %r14
jne 0x44e35
movb $0x1, %bl
movl 0x8(%rsp), %r12d
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x44eea
callq 0xe240
testb %bl, %bl
je 0x452b0
leaq 0xd0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8e4be(%rip), %rsi     # 0xd33c3
leaq 0x8e4bb(%rip), %rdx     # 0xd33c7
leaq 0xc0(%rsp), %rdi
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x44f44
callq 0xe240
cmpq %r15, %rbx
je 0x44f98
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e468(%rip), %rsi     # 0xd33c3
leaq 0x8e465(%rip), %rdx     # 0xd33c7
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq %rax, %rdi
callq 0x456c1
movl %eax, %r12d
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x44f9b
callq 0xe240
jmp 0x44f9b
xorl %r12d, %r12d
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e446(%rip), %rsi     # 0xd33f3
leaq 0x8e443(%rip), %rdx     # 0xd33f7
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x44fe4
callq 0xe240
cmpq %r15, %rbx
je 0x45038
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e3f8(%rip), %rsi     # 0xd33f3
leaq 0x8e3f5(%rip), %rdx     # 0xd33f7
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq %rax, %rdi
callq 0x45beb
movl %eax, %ebp
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x45035
callq 0xe240
addl %ebp, %r12d
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e315(%rip), %rsi     # 0xd335f
leaq 0x8e317(%rip), %rdx     # 0xd3368
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x45081
callq 0xe240
cmpq %r15, %rbx
je 0x450d5
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e2c7(%rip), %rsi     # 0xd335f
leaq 0x8e2c9(%rip), %rdx     # 0xd3368
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq %rax, %rdi
callq 0x104bc
movl %eax, %ebp
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x450d2
callq 0xe240
addl %ebp, %r12d
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e282(%rip), %rsi     # 0xd3369
leaq 0x8e286(%rip), %rdx     # 0xd3374
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4511e
callq 0xe240
cmpq %r15, %rbx
je 0x45172
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e234(%rip), %rsi     # 0xd3369
leaq 0x8e238(%rip), %rdx     # 0xd3374
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq %rax, %rdi
callq 0x1092e
movl %eax, %ebp
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4516f
callq 0xe240
addl %ebp, %r12d
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e1f1(%rip), %rsi     # 0xd3375
leaq 0x8e1f3(%rip), %rdx     # 0xd337e
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x451bb
callq 0xe240
cmpq %r15, %rbx
je 0x45211
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e1a3(%rip), %rsi     # 0xd3375
leaq 0x8e1a5(%rip), %rdx     # 0xd337e
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
leaq 0x8abb5(%rip), %rsi     # 0xcfdac
movq %rax, %rdi
callq 0x4742e
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x45211
callq 0xe240
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e15c(%rip), %rsi     # 0xd337f
leaq 0x8e160(%rip), %rdx     # 0xd338a
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4525a
callq 0xe240
cmpq %r15, %rbx
je 0x452b0
leaq 0xc0(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8e10e(%rip), %rsi     # 0xd337f
leaq 0x8e112(%rip), %rdx     # 0xd338a
callq 0x18f42
leaq 0x40(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x473b2
leaq 0x6c34c(%rip), %rsi     # 0xb15e2
movq %rax, %rdi
callq 0x4742e
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x452b0
callq 0xe240
leaq 0x40(%rsp), %rdi
callq 0x4844e
leaq 0x2f8(%rsp), %rdi
callq 0x4849c
leaq 0x2c8(%rsp), %rdi
callq 0x4849c
movl %r12d, %eax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc0(%rsp), %rsi
movq %r13, %rdi
callq 0xeae2
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x452b0
movq 0xdacd0(%rip), %rax     # 0x11ffd8
movq (%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x328(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x19034
leaq 0x328(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xa8(%rsp), %rbx
movq 0x8(%rsp), %rsi
movq %rbx, %rcx
callq 0xeb0e
movq (%rbx), %rdx
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
jmp 0x44d0c
movq 0xdac7d(%rip), %rax     # 0x11ffd8
movq (%rax), %rdi
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rdx
movq 0x8(%rax), %rcx
leaq 0x8dfd1(%rip), %rsi     # 0xd3343
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xe330
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x44ed6
leaq 0xdb30b(%rip), %rdi     # 0x120698
callq 0xe3e0
testl %eax, %eax
je 0x44dca
leaq 0x40(%rsp), %rax
movq %rax, 0xdb2da(%rip)     # 0x120680
movq %r12, 0xdb2db(%rip)     # 0x120688
movq %r15, 0xdb2dc(%rip)     # 0x120690
leaq 0xdb2dd(%rip), %rdi     # 0x120698
callq 0xe190
jmp 0x44dca
movq %rax, %r15
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x4547f
jmp 0x45406
jmp 0x45406
jmp 0x45406
jmp 0x45406
jmp 0x45406
jmp 0x45406
jmp 0x45406
jmp 0x45427
movq %rax, %r15
jmp 0x4543e
jmp 0x45406
jmp 0x45415
jmp 0x45406
jmp 0x45415
jmp 0x45406
jmp 0x45415
jmp 0x45406
jmp 0x45415
jmp 0x45406
jmp 0x45415
jmp 0x45406
jmp 0x45415
movq %rax, %r15
jmp 0x45489
jmp 0x45415
jmp 0x45415
jmp 0x45415
jmp 0x45415
jmp 0x45415
movq %rax, %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
jne 0x45484
jmp 0x45489
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4543e
callq 0xe240
leaq 0xc0(%rsp), %rdi
callq 0xe0a0
jmp 0x45489
jmp 0x45451
jmp 0x45451
movq %rax, %r15
jmp 0x45475
jmp 0x45458
movq %rax, %r15
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x45475
callq 0xe240
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x45489
callq 0xe240
leaq 0x40(%rsp), %rdi
callq 0x4844e
leaq 0x2f8(%rsp), %rdi
callq 0x4849c
leaq 0x2c8(%rsp), %rdi
callq 0x4849c
movq %r15, %rdi
callq 0xe3c0
nop