// File: /workspace/github_cpp_makefile_star2_O1/meirdev[P]HexViewer/Main.cpp
// Function: main
int main(int argc, char** argv)
{
    CLI::App app("HexViewer");

    std::string fileName;
    app.add_option("filename", fileName, "Filename")->required();

    std::string theme = "hexyl";
    app.add_option("-t,--theme", theme, "Theme");

    int offset = 0;
    app.add_option("-s,--offset", offset, "Offset");

    size_t length = 0;
    app.add_option("-l,--length", length, "Length");

    bool noColor = false;
    app.add_flag("-n,--no-colors", noColor, "No colors");

    CLI11_PARSE(app, argc, argv);

    HexViewer hexViewer;

    hexViewer.setStyle(theme, !noColor);
    hexViewer.setPrinter("default");
    hexViewer.setFile(fileName);

    hexViewer.print(offset, length);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x200(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1d556(%rip), %rsi     # 0x2306b
leaq 0x1d558(%rip), %rdx     # 0x23074
leaq 0x1f0(%rsp), %rdi
callq 0xc794
leaq 0x1e0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1dc22(%rip), %rdx     # 0x2375e
leaq 0x1d0(%rsp), %rdi
movq %rdx, %rsi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
leaq 0x1d0(%rsp), %rdx
callq 0x78c0
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5b86
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5ba3
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x1c0(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x1a0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1d4a7(%rip), %rsi     # 0x23075
leaq 0x1d4a8(%rip), %rdx     # 0x2307d
leaq 0x190(%rsp), %rdi
callq 0xc794
leaq 0x180(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d488(%rip), %rsi     # 0x2307e
leaq 0x1d489(%rip), %rdx     # 0x23086
leaq 0x170(%rsp), %rdi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0x190(%rsp), %rsi
leaq 0x1b0(%rsp), %rdx
leaq 0x170(%rsp), %rcx
callq 0x7a6a
movb $0x1, 0x20(%rax)
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c50
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c6d
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1d40a(%rip), %rsi     # 0x23087
leaq 0x1d408(%rip), %rdx     # 0x2308c
leaq 0x30(%rsp), %rdi
callq 0xc794
leaq 0x160(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d3eb(%rip), %rsi     # 0x2308d
leaq 0x1d3ee(%rip), %rdx     # 0x23097
leaq 0x150(%rsp), %rdi
callq 0xc794
leaq 0x140(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d3cf(%rip), %rsi     # 0x23098
leaq 0x1d3cd(%rip), %rdx     # 0x2309d
leaq 0x130(%rsp), %rdi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x130(%rsp), %rcx
callq 0x7a6a
movq 0x130(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d1c
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x5d39
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x52c0
movl $0x0, 0xc(%rsp)
leaq 0x120(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d349(%rip), %rsi     # 0x2309e
leaq 0x1d34d(%rip), %rdx     # 0x230a9
leaq 0x110(%rsp), %rdi
callq 0xc794
leaq 0x100(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d32e(%rip), %rsi     # 0x230aa
leaq 0x1d32d(%rip), %rdx     # 0x230b0
leaq 0xf0(%rsp), %rdi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0x110(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
callq 0x7c78
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x5dcf
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x5dec
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x52c0
movq $0x0, 0x10(%rsp)
leaq 0xe0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d2a8(%rip), %rsi     # 0x230b1
leaq 0x1d2ac(%rip), %rdx     # 0x230bc
leaq 0xd0(%rsp), %rdi
callq 0xc794
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d28d(%rip), %rsi     # 0x230bd
leaq 0x1d28c(%rip), %rdx     # 0x230c3
leaq 0xb0(%rsp), %rdi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
callq 0x7e86
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x5e83
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x5ea0
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x52c0
movb $0x0, 0xb(%rsp)
leaq 0xa0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d20b(%rip), %rsi     # 0x230c4
leaq 0x1d212(%rip), %rdx     # 0x230d2
leaq 0x90(%rsp), %rdi
callq 0xc794
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d1f3(%rip), %rsi     # 0x230d3
leaq 0x1d1f5(%rip), %rdx     # 0x230dc
leaq 0x70(%rsp), %rdi
callq 0xc794
leaq 0x210(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x8094
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f2a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x90(%rsp), %rdi
cmpq %r12, %rdi
je 0x5f47
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x82ee
leaq 0x18(%rsp), %rdi
callq 0x1f390
movzbl 0xb(%rsp), %edx
xorl $0x1, %edx
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1f3d4
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d152(%rip), %rsi     # 0x230dd
leaq 0x1d152(%rip), %rdx     # 0x230e4
leaq 0x50(%rsp), %rdi
callq 0xc794
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1f4a0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fc2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x18(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x1f4e0
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rdx
leaq 0x18(%rsp), %rdi
callq 0x1f526
leaq 0x18(%rsp), %rdi
callq 0x1f3a0
xorl %ebx, %ebx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x600a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1b0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6027
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
callq 0x8626
movl %ebx, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x627e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x627e
jmp 0x627b
jmp 0x61e7
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x6288
movq %rbx, %rdi
callq 0x5140
movq 0x29f38(%rip), %rdx     # 0x2ffc8
movq 0x29f51(%rip), %rcx     # 0x2ffe8
leaq 0x210(%rsp), %rdi
movq %rax, %rsi
callq 0x839c
movl %eax, %ebx
callq 0x54b0
jmp 0x5ff3
jmp 0x61e7
movq %rax, %rbx
callq 0x54b0
jmp 0x6288
movq %rax, %rdi
callq 0x861b
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x60ef
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x60ef
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r12, %rdi
je 0x6288
movq 0xa0(%rsp), %rsi
jmp 0x61da
jmp 0x61e7
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6137
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6137
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x6288
movq 0xe0(%rsp), %rsi
jmp 0x61da
jmp 0x61e7
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x617f
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x617f
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x6288
movq 0x120(%rsp), %rsi
jmp 0x61da
jmp 0x61e7
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r13, %rdi
je 0x61c1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x61c1
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x6288
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6288
movq %rax, %rbx
jmp 0x6288
jmp 0x622d
movq %rax, %rbx
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x6216
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6216
movq %rax, %rbx
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x629f
movq 0x1a0(%rsp), %rsi
jmp 0x6297
movq %rax, %rbx
jmp 0x629f
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6257
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6257
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x62c9
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x62c9
movq %rax, %rbx
jmp 0x62c9
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1f3a0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x629f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1b0(%rsp), %rdi
cmpq %r14, %rdi
je 0x62bc
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
callq 0x8626
movq %rbx, %rdi
callq 0x5510
nop