// File: /workspace/github_cpp_makefile_star2_O1/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 $0x358, %rsp            # imm = 0x358
cmpl $0x1, %edi
jne 0x49c8
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2522c
movl %edi, %ebp
leaq 0x90(%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 0xc0(%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 0x4e7a
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x138(%rsp), %rdi
movl $0x8, %edx
callq 0x43e0
leaq 0x8(%rbx), %r15
movq 0x138(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0x158(%rsp,%rcx)
movq %rbx, 0x10(%rsp)
movl %ebp, 0x8(%rsp)
jne 0x5096
movq -0x18(%rax), %rax
movq 0x220(%rsp,%rax), %rsi
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x18(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x988c
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %rbx
movq %r14, 0x38(%rsp)
movl $0x0, 0xe8(%rsp)
callq 0x4130
movq %rax, 0xf0(%rsp)
leaq 0x42f2d(%rip), %rax     # 0x479e8
leaq 0x118(%rsp), %rdi
movq %rax, (%rdi)
movq $0x5, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x42f06(%rip), %rax     # 0x479e3
leaq 0x100(%rsp), %rsi
movq %rax, (%rsi)
movq $0x4, 0x8(%rsi)
movq $0x30, 0x10(%rsi)
callq 0x9bfc
addq %r14, %rbx
leaq 0x568d9(%rip), %rsi     # 0x5b3e0
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rdx
leaq 0xe8(%rsp), %r8
movq %rbx, %rcx
callq 0x9c4a
movups 0xe8(%rsp), %xmm0
movq 0x38(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %r14, %rax
addq %rdx, %rax
movaps %xmm0, 0x70(%rsp)
movq %rax, 0x80(%rsp)
xorl %r13d, %r13d
cmpl $0x0, 0x70(%rsp)
sete %bpl
jne 0x50ab
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x4b6a
callq 0x4220
leaq 0x138(%rsp), %rdi
callq 0x4090
testb %bpl, %bpl
je 0x505d
movq (%r15), %rsi
leaq 0x138(%rsp), %rdi
leaq 0x100(%rsp), %rdx
callq 0x40f0
leaq 0x138(%rsp), %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0x4420
cmpq $-0x1, %rax
je 0x4bd3
incq %rax
leaq 0x18(%rsp), %rdi
leaq 0x138(%rsp), %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x4250
jmp 0x4be7
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl %r13d, 0x4(%rsp)
leaq 0x148(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c02
callq 0x4220
movq 0xd0(%rsp), %r15
leaq 0xc0(%rsp), %rax
cmpq %rax, %r15
je 0x4cae
leaq 0x138(%rsp), %r12
movq 0x60(%r15), %rbx
movq 0x68(%r15), %r14
cmpq %r14, %rbx
je 0x4c92
movq (%rbx), %rbp
movb (%rbp), %r13b
cmpb $0x2f, %r13b
je 0x4c8c
movq %rbp, %rdi
callq 0x4110
cmpb $0x5c, %r13b
jne 0x4c57
cmpq $0x2, %rax
jb 0x4c57
cmpb $0x5c, 0x1(%rbp)
je 0x4c8c
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x7cc5
movq %rbx, %rdi
movq %r12, %rsi
callq 0x42b0
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x4c8c
callq 0x4220
addq $0x20, %rbx
jmp 0x4c2b
movq %r15, %rdi
callq 0x4180
movq %rax, %r15
leaq 0xc0(%rsp), %rax
cmpq %rax, %r15
jne 0x4c23
movb 0x575c4(%rip), %al      # 0x5c278
testb %al, %al
je 0x5112
movl 0x8(%rsp), %eax
cmpl $0x2, %eax
jne 0x4d4e
movq 0xa0(%rsp), %r14
movb $0x1, %bpl
leaq 0x90(%rsp), %rax
cmpq %rax, %r14
movl 0x4(%rsp), %r13d
je 0x4e5d
leaq 0x40(%r14), %rsi
movq 0x57573(%rip), %rdi     # 0x5c268
callq 0x8430
movq 0x60(%r14), %r15
movq 0x68(%r14), %r12
cmpq %r12, %r15
je 0x4d31
movq %rax, %rbx
movq 0x5755f(%rip), %rdi     # 0x5c270
addq $0x30, %rdi
movq %r15, %rsi
callq 0x84d6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x84ac
addq $0x20, %r15
cmpq %r12, %r15
jne 0x4d0a
movq %r14, %rdi
callq 0x4180
movq %rax, %r14
leaq 0x90(%rsp), %rax
cmpq %rax, %r14
jne 0x4cea
jmp 0x4e5d
movl %eax, %eax
movq %rax, 0x8(%rsp)
movl $0x2, %r12d
xorl %ebp, %ebp
leaq 0x138(%rsp), %r15
leaq 0x88(%rsp), %r13
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rsi
movq %r15, %rdi
leaq 0x100(%rsp), %rdx
callq 0x40f0
movq %r13, %rdi
movq %r15, %rsi
callq 0xd102
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x4dae
callq 0x4220
leaq 0x90(%rsp), %rax
cmpq %rax, %rbx
je 0x50e2
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rsi
movq %r15, %rdi
leaq 0x100(%rsp), %rdx
callq 0x40f0
movq %r13, %rdi
movq %r15, %rsi
callq 0x7d1a
movq %rax, %r14
movq 0x5747b(%rip), %rdi     # 0x5c268
movq %rax, %rsi
callq 0x8430
movq 0x20(%r14), %rbp
movq 0x28(%r14), %r14
cmpq %r14, %rbp
je 0x4e2c
movq %rax, %rbx
movq 0x57464(%rip), %rdi     # 0x5c270
addq $0x30, %rdi
movq %rbp, %rsi
callq 0x84d6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x84ac
addq $0x20, %rbp
cmpq %r14, %rbp
jne 0x4e05
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x4e46
callq 0x4220
incq %r12
cmpq 0x8(%rsp), %r12
sete %bpl
jne 0x4d6d
movl 0x4(%rsp), %r13d
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e70
callq 0x4220
testb $0x1, %bpl
je 0x505d
leaq 0x148(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x429a2(%rip), %rsi     # 0x4782f
leaq 0x4299f(%rip), %rdx     # 0x47833
leaq 0x138(%rsp), %rdi
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x4ecc
callq 0x4220
cmpq %r15, %rbx
je 0x4f20
leaq 0x138(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x4294c(%rip), %rsi     # 0x4782f
leaq 0x42949(%rip), %rdx     # 0x47833
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq %rax, %rdi
callq 0x51fd
movl %eax, %r13d
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f23
callq 0x4220
jmp 0x4f23
xorl %r13d, %r13d
leaq 0x138(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x428ff(%rip), %rsi     # 0x47834
leaq 0x42902(%rip), %rdx     # 0x4783e
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f6c
callq 0x4220
cmpq %r15, %rbx
je 0x4fc0
leaq 0x138(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x428b1(%rip), %rsi     # 0x47834
leaq 0x428b4(%rip), %rdx     # 0x4783e
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq %rax, %rdi
callq 0x5749
movl %eax, %ebx
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fbd
callq 0x4220
addl %ebx, %r13d
leaq 0x138(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x4286d(%rip), %rsi     # 0x4783f
leaq 0x4286a(%rip), %rdx     # 0x47843
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x5009
callq 0x4220
cmpq %r15, %rbx
je 0x505d
leaq 0x138(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x4281f(%rip), %rsi     # 0x4783f
leaq 0x4281c(%rip), %rdx     # 0x47843
callq 0x97fc
leaq 0x40(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x7d96
movq %rax, %rdi
callq 0x62d0
movl %eax, %ebx
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x505a
callq 0x4220
addl %ebx, %r13d
leaq 0x40(%rsp), %rdi
callq 0x96c8
leaq 0xb8(%rsp), %rdi
callq 0x9716
leaq 0x88(%rsp), %rdi
callq 0x9716
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 0x4450
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
xorl %ebp, %ebp
jmp 0x4b6a
movq 0x56f1e(%rip), %rax     # 0x5bfd0
movq (%rax), %rbx
leaq 0x118(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x79e5
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
callq 0x4474
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x4b5b
movq 0x56ee7(%rip), %rax     # 0x5bfd0
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rdx
movq 0x8(%rax), %rcx
leaq 0x42713(%rip), %rsi     # 0x47813
xorl %eax, %eax
callq 0x4300
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x4e5d
leaq 0x40(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x44be
jmp 0x4cbc
movq %rax, %rbx
leaq 0x148(%rsp), %rax
jmp 0x51c3
jmp 0x5154
jmp 0x5154
jmp 0x5154
jmp 0x5154
jmp 0x516f
movq %rax, %rbx
jmp 0x5181
jmp 0x5154
jmp 0x515d
jmp 0x5154
jmp 0x515d
jmp 0x5154
jmp 0x515d
movq %rax, %rbx
jmp 0x51d1
jmp 0x515d
jmp 0x515d
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
jne 0x51cc
jmp 0x51d1
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x5181
callq 0x4220
leaq 0x138(%rsp), %rdi
callq 0x4090
jmp 0x51d1
jmp 0x519c
jmp 0x519c
jmp 0x519c
jmp 0x51a1
jmp 0x51a1
jmp 0x519c
movq %rax, %rbx
jmp 0x51be
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x51be
callq 0x4220
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51d1
callq 0x4220
leaq 0x40(%rsp), %rdi
callq 0x96c8
leaq 0xb8(%rsp), %rdi
callq 0x9716
leaq 0x88(%rsp), %rdi
callq 0x9716
movq %rbx, %rdi
callq 0x43b0