// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d536(%rip), %rsi     # 0x2306b
leaq 0x1d538(%rip), %rdx     # 0x23074
leaq 0x1f0(%rsp), %rdi
callq 0xc736
leaq 0x1e0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1dc02(%rip), %rdx     # 0x2375e
leaq 0x1d0(%rsp), %rdi
movq %rdx, %rsi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
leaq 0x1d0(%rsp), %rdx
callq 0x787c
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ba6
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5bc3
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 0x1d487(%rip), %rsi     # 0x23075
leaq 0x1d488(%rip), %rdx     # 0x2307d
leaq 0x190(%rsp), %rdi
callq 0xc736
leaq 0x180(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d468(%rip), %rsi     # 0x2307e
leaq 0x1d469(%rip), %rdx     # 0x23086
leaq 0x170(%rsp), %rdi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0x190(%rsp), %rsi
leaq 0x1b0(%rsp), %rdx
leaq 0x170(%rsp), %rcx
callq 0x7a26
movb $0x1, 0x20(%rax)
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c70
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c8d
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1d3ea(%rip), %rsi     # 0x23087
leaq 0x1d3e8(%rip), %rdx     # 0x2308c
leaq 0x30(%rsp), %rdi
callq 0xc736
leaq 0x160(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d3cb(%rip), %rsi     # 0x2308d
leaq 0x1d3ce(%rip), %rdx     # 0x23097
leaq 0x150(%rsp), %rdi
callq 0xc736
leaq 0x140(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d3af(%rip), %rsi     # 0x23098
leaq 0x1d3ad(%rip), %rdx     # 0x2309d
leaq 0x130(%rsp), %rdi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x130(%rsp), %rcx
callq 0x7a26
movq 0x130(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d3c
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x5d59
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x52c0
movl $0x0, 0xc(%rsp)
leaq 0x120(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d329(%rip), %rsi     # 0x2309e
leaq 0x1d32d(%rip), %rdx     # 0x230a9
leaq 0x110(%rsp), %rdi
callq 0xc736
leaq 0x100(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d30e(%rip), %rsi     # 0x230aa
leaq 0x1d30d(%rip), %rdx     # 0x230b0
leaq 0xf0(%rsp), %rdi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0x110(%rsp), %rsi
leaq 0xc(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
callq 0x7c38
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x5def
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e0c
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x52c0
movq $0x0, 0x10(%rsp)
leaq 0xe0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d288(%rip), %rsi     # 0x230b1
leaq 0x1d28c(%rip), %rdx     # 0x230bc
leaq 0xd0(%rsp), %rdi
callq 0xc736
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d26d(%rip), %rsi     # 0x230bd
leaq 0x1d26c(%rip), %rdx     # 0x230c3
leaq 0xb0(%rsp), %rdi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
callq 0x7e4a
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x5ea3
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x5ec0
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x52c0
movb $0x0, 0xb(%rsp)
leaq 0xa0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d1eb(%rip), %rsi     # 0x230c4
leaq 0x1d1f2(%rip), %rdx     # 0x230d2
leaq 0x90(%rsp), %rdi
callq 0xc736
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1d1d3(%rip), %rsi     # 0x230d3
leaq 0x1d1d5(%rip), %rdx     # 0x230dc
leaq 0x70(%rsp), %rdi
callq 0xc736
leaq 0x210(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x805c
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f4a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x90(%rsp), %rdi
cmpq %r12, %rdi
je 0x5f67
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x82b6
leaq 0x18(%rsp), %rdi
callq 0x1efc4
movzbl 0xb(%rsp), %edx
xorl $0x1, %edx
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1f008
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d132(%rip), %rsi     # 0x230dd
leaq 0x1d132(%rip), %rdx     # 0x230e4
leaq 0x50(%rsp), %rdi
callq 0xc736
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1f0d4
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fe2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x18(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x1f114
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rdx
leaq 0x18(%rsp), %rdi
callq 0x1f15a
leaq 0x18(%rsp), %rdi
callq 0x1efd4
xorl %ebx, %ebx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x602a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1b0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6047
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
callq 0x85e8
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 0x629e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x629e
jmp 0x629b
jmp 0x6207
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x62a8
movq %rbx, %rdi
callq 0x5140
movq 0x29f18(%rip), %rdx     # 0x2ffc8
movq 0x29f31(%rip), %rcx     # 0x2ffe8
leaq 0x210(%rsp), %rdi
movq %rax, %rsi
callq 0x835e
movl %eax, %ebx
callq 0x54b0
jmp 0x6013
jmp 0x6207
movq %rax, %rbx
callq 0x54b0
jmp 0x62a8
movq %rax, %rdi
callq 0x85dd
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x610f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x610f
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r12, %rdi
je 0x62a8
movq 0xa0(%rsp), %rsi
jmp 0x61fa
jmp 0x6207
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6157
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6157
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x62a8
movq 0xe0(%rsp), %rsi
jmp 0x61fa
jmp 0x6207
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x619f
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x619f
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x62a8
movq 0x120(%rsp), %rsi
jmp 0x61fa
jmp 0x6207
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r13, %rdi
je 0x61e1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x61e1
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x62a8
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x62a8
movq %rax, %rbx
jmp 0x62a8
jmp 0x624d
movq %rax, %rbx
movq 0x170(%rsp), %rdi
cmpq %r12, %rdi
je 0x6236
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6236
movq %rax, %rbx
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x62bf
movq 0x1a0(%rsp), %rsi
jmp 0x62b7
movq %rax, %rbx
jmp 0x62bf
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6277
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x6277
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x62e9
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x62e9
movq %rax, %rbx
jmp 0x62e9
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1efd4
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x62bf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x1b0(%rsp), %rdi
cmpq %r14, %rdi
je 0x62dc
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x210(%rsp), %rdi
callq 0x85e8
movq %rbx, %rdi
callq 0x5510
nop