// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/src/cbor/cbor.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::fixture::vector> 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-cbor-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]);
        for (auto& s : cf.sets)
            for (auto& f : s.second.group)
                if (!test::is_absolute(f.c_str())) f = cfd + f;
        static auto const load = [&](const test::fixture& ts) {
            auto& fs = sets[ts.label];
            for (auto& s : ts.group)
                fs.push_back(cf.sets[s]);
        };
        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::vector(sets["pass"]);
        if (!sets["round-trip"].empty())
            err += test::kind::roundtrip(sets["round-trip"]);
#   endif
        if (!sets["time"].empty())
            err += test::kind::time(sets["time"]);

    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
cmpl $0x1, %edi
jne 0x49e8
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22fe4
movl %edi, %ebp
leaq 0x78(%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 0xa8(%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 0x4e7d
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x120(%rsp), %rdi
movl $0x8, %edx
callq 0x43e0
leaq 0x8(%rbx), %r15
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x140(%rsp,%rax)
jne 0x5096
movq 0x208(%rsp,%rax), %rsi
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x9942
movl %ebp, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rbx
movq %r14, 0x38(%rsp)
movl $0x0, 0xf0(%rsp)
callq 0x4130
movq %rax, 0xf8(%rsp)
leaq 0x3fe55(%rip), %rax     # 0x44928
leaq 0x328(%rsp), %rdi
movq %rax, (%rdi)
movq $0x5, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x3fe2e(%rip), %rax     # 0x44923
leaq 0x108(%rsp), %rsi
movq %rax, (%rsi)
movq $0x4, 0x8(%rsi)
movq $0x30, 0x10(%rsi)
callq 0x9cf7
addq %r14, %rbx
leaq 0x538c1(%rip), %rsi     # 0x583e0
leaq 0x70(%rsp), %rdi
leaq 0x38(%rsp), %rdx
leaq 0xf0(%rsp), %r8
movq %rbx, %rcx
callq 0x9d62
movups 0xf0(%rsp), %xmm0
movaps %xmm0, 0xd0(%rsp)
movq 0x38(%rsp), %rax
movq 0x8(%rsp), %rdx
subq %r14, %rax
addq %rdx, %rax
movq %rax, 0xe0(%rsp)
movl 0xd0(%rsp), %ebp
xorl %r12d, %r12d
testl %ebp, %ebp
jne 0x50ae
cmpq %r13, %rdx
je 0x4b80
movq %rdx, %rdi
callq 0x4220
leaq 0x120(%rsp), %rdi
callq 0x4090
testl %ebp, %ebp
jne 0x5060
movq (%r15), %rsi
leaq 0x120(%rsp), %rdi
leaq 0x108(%rsp), %rdx
callq 0x40f0
leaq 0x120(%rsp), %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0x4420
cmpq $-0x1, %rax
je 0x4be8
incq %rax
leaq 0x8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x4250
jmp 0x4bfb
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl %r12d, 0x4(%rsp)
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c16
callq 0x4220
movq 0xb8(%rsp), %r15
leaq 0xa8(%rsp), %rax
cmpq %rax, %r15
je 0x4cc2
leaq 0x120(%rsp), %r12
movq 0x60(%r15), %rbx
movq 0x68(%r15), %r14
cmpq %r14, %rbx
je 0x4ca6
movq (%rbx), %rbp
movb (%rbp), %r13b
cmpb $0x2f, %r13b
je 0x4ca0
movq %rbp, %rdi
callq 0x4110
cmpb $0x5c, %r13b
jne 0x4c6b
cmpq $0x2, %rax
jb 0x4c6b
cmpb $0x5c, 0x1(%rbp)
je 0x4ca0
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x7cc0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x42b0
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x4ca0
callq 0x4220
addq $0x20, %rbx
jmp 0x4c3f
movq %r15, %rdi
callq 0x4180
movq %rax, %r15
leaq 0xa8(%rsp), %rax
cmpq %rax, %r15
jne 0x4c37
movb 0x545b0(%rip), %al      # 0x59278
testb %al, %al
je 0x5129
movl 0x28(%rsp), %eax
cmpl $0x2, %eax
movq 0x30(%rsp), %r14
jne 0x4d62
movq 0x88(%rsp), %r14
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
cmpq %rax, %r14
leaq 0x18(%rsp), %r13
je 0x4d58
leaq 0x40(%r14), %rsi
movq 0x54561(%rip), %rdi     # 0x59268
callq 0x8510
movq 0x60(%r14), %r15
movq 0x68(%r14), %r12
cmpq %r12, %r15
je 0x4d43
movq %rax, %rbx
movq 0x5454d(%rip), %rdi     # 0x59270
addq $0x30, %rdi
movq %r15, %rsi
callq 0x85b6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x858c
addq $0x20, %r15
cmpq %r12, %r15
jne 0x4d1c
movq %r14, %rdi
callq 0x4180
movq %rax, %r14
leaq 0x78(%rsp), %rax
cmpq %rax, %r14
jne 0x4cfc
movl 0x4(%rsp), %r12d
jmp 0x4e65
movl %eax, %eax
movq %rax, 0x28(%rsp)
movl $0x2, %r12d
leaq 0x120(%rsp), %r15
leaq 0x108(%rsp), %r13
movq (%r14,%r12,8), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x40f0
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0xe0a6
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x4db8
callq 0x4220
leaq 0x78(%rsp), %rax
cmpq %rax, %rbx
je 0x50fc
movq (%r14,%r12,8), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x40f0
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x7d14
movq %rax, %r14
movq 0x5447c(%rip), %rdi     # 0x59268
movq %rax, %rsi
callq 0x8510
movq 0x20(%r14), %rbp
movq 0x28(%r14), %r14
cmpq %r14, %rbp
je 0x4e2b
movq %rax, %rbx
movq 0x54465(%rip), %rdi     # 0x59270
addq $0x30, %rdi
movq %rbp, %rsi
callq 0x85b6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x858c
addq $0x20, %rbp
cmpq %r14, %rbp
jne 0x4e04
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
movq 0x30(%rsp), %r14
je 0x4e4a
callq 0x4220
incq %r12
cmpq 0x28(%rsp), %r12
jne 0x4d7f
movb $0x1, %bpl
movl 0x4(%rsp), %r12d
leaq 0x18(%rsp), %r13
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4e74
callq 0x4220
testb %bpl, %bpl
je 0x5060
leaq 0x130(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f8df(%rip), %rsi     # 0x4476f
leaq 0x3f8dc(%rip), %rdx     # 0x44773
leaq 0x120(%rsp), %rdi
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x4ecf
callq 0x4220
cmpq %r15, %rbx
je 0x4f23
leaq 0x120(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x3f889(%rip), %rsi     # 0x4476f
leaq 0x3f886(%rip), %rdx     # 0x44773
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq %rax, %rdi
callq 0x521f
movl %eax, %r12d
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f26
callq 0x4220
jmp 0x4f26
xorl %r12d, %r12d
leaq 0x120(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x3f83c(%rip), %rsi     # 0x44774
leaq 0x3f83f(%rip), %rdx     # 0x4477e
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f6f
callq 0x4220
cmpq %r15, %rbx
je 0x4fc3
leaq 0x120(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x3f7ee(%rip), %rsi     # 0x44774
leaq 0x3f7f1(%rip), %rdx     # 0x4477e
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq %rax, %rdi
callq 0x579f
movl %eax, %ebx
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fc0
callq 0x4220
addl %ebx, %r12d
leaq 0x120(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x3f7aa(%rip), %rsi     # 0x4477f
leaq 0x3f7a7(%rip), %rdx     # 0x44783
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x500c
callq 0x4220
cmpq %r15, %rbx
je 0x5060
leaq 0x120(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x3f75c(%rip), %rsi     # 0x4477f
leaq 0x3f759(%rip), %rdx     # 0x44783
callq 0x98ac
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x7d90
movq %rax, %rdi
callq 0x6306
movl %eax, %ebx
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
je 0x505d
callq 0x4220
addl %ebx, %r12d
leaq 0x40(%rsp), %rdi
callq 0x9778
leaq 0xa0(%rsp), %rdi
callq 0x97c6
leaq 0x70(%rsp), %rdi
callq 0x97c6
movl %r12d, %eax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x120(%rsp), %rsi
movq %r15, %rdi
callq 0x4450
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x5060
movq 0x53f1b(%rip), %rax     # 0x58fd0
movq (%rax), %rbx
leaq 0x328(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x79e0
leaq 0x328(%rsp), %rdi
leaq 0x8(%rsp), %rdx
leaq 0x108(%rsp), %r12
movq %rbx, %rsi
movq %r12, %rcx
callq 0x447c
movq (%r12), %rdx
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x4b73
movq 0x53ecd(%rip), %rax     # 0x58fd0
movq (%rax), %rdi
movq (%r14,%r12,8), %rdx
movq 0x8(%r14), %rcx
leaq 0x3f63e(%rip), %rsi     # 0x44753
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x4300
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x4e60
leaq 0x40(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x44da
jmp 0x4cd0
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x51f1
jmp 0x51f6
jmp 0x5175
jmp 0x5175
jmp 0x5175
jmp 0x5175
jmp 0x5190
movq %rax, %rbx
jmp 0x51a2
jmp 0x5175
jmp 0x517e
jmp 0x5175
jmp 0x517e
jmp 0x5175
jmp 0x517e
movq %rax, %rbx
jmp 0x51f6
jmp 0x517e
jmp 0x517e
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r14, %rdi
jne 0x51f1
jmp 0x51f6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x51a2
callq 0x4220
leaq 0x120(%rsp), %rdi
callq 0x4090
jmp 0x51f6
jmp 0x51c0
jmp 0x51bb
jmp 0x51bb
jmp 0x51c5
jmp 0x51c5
movq %rax, %rbx
jmp 0x51e2
movq %rax, %rbx
jmp 0x51e7
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x51e2
callq 0x4220
leaq 0x18(%rsp), %r13
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x51f6
callq 0x4220
leaq 0x40(%rsp), %rdi
callq 0x9778
leaq 0xa0(%rsp), %rdi
callq 0x97c6
leaq 0x70(%rsp), %rdi
callq 0x97c6
movq %rbx, %rdi
callq 0x43b0