// File: /workspace/github_c_makefile_star2_O3/jaroslov[P]docoptc/./docopt.h
// Function: docopt
docopt_t docopt(const char* doc, int argc, char** argv, unsigned int flags, unsigned int version)
{
    struct docopt_parse_state   dS  = { 0 };
    struct docopt_entries*      dE  = 0;
    uint32_t VERSION                = DOCOPT_VERSION;
    if (((version & 0x00FF0000) != (VERSION & 0x00FF0000)) || (version < VERSION))
    {
        dS.entries->error           = DOCOPT_BAD_VERSION;
        goto docoptFail;
    }
    if (docopt_parse_state_init(&dS, doc, argc, argv, flags)) goto docoptFail;
    if (dS.entries->error) goto docoptFail;
    fprintf(dS.log, "%s", "Getting Usage Section.\n");
    if (docopt_get_section(&dS, &dS.re_usage_section_start, &dS.re_usage_section_stop, dS.entries->docstr.fst, &dS.usage_section, 0, 0)) goto docoptFail;
    if (dS.entries->error) goto docoptFail;
    fprintf(dS.log, "%s", "Getting Usage PNAME... ");
    if (regexec(&dS.re_pname, dS.usage_section.fst, DOCOPT_NUM_PMATCHES, &dS.docopt_pmatches[0], 0)) return 0;
    if (dS.entries->error) goto docoptFail;
    fprintf(dS.log, "" PRdocS "\n", DOCOPT_PR(&dS.pname));
    dS.pname.fst    = dS.docopt_pmatches[2].rm_so + dS.usage_section.fst;
    dS.pname.lst    = dS.docopt_pmatches[2].rm_eo + dS.usage_section.fst;
    fprintf(dS.log, "%s", "Getting Parse Options.\n");
    if (docopt_parse_options(&dS)) goto docoptFail;
    if (dS.entries->error) goto docoptFail;
    fprintf(dS.log, "%s", "Getting Parse Usage.\n");
    if (docopt_parse_usage(&dS)) goto docoptFail;
    if (dS.entries->error) goto docoptFail;
    fprintf(dS.log, "Getting Parse Args (%d).\n", argc);
    if (argc && docopt_parse_args(&dS))
    {
        goto docoptFail;
    }
    dE      = dS.entries;

    fprintf(dS.log, "%s", "Success!\n");

docoptFail:
    for (int i = 0; i < argc; ++i)
        if (!strncmp(argv[i], "--help", 6) || !strncmp(argv[i], "-h", 2))
        {
            docopt_print_help(&dS, 1);
            return dE;
        }
    if (!dE) docopt_print_help(&dS, 0);
    docopt_parse_state_free(&dS);
    return dE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x618, %rsp            # imm = 0x618
movl %ecx, -0x30(%rbp)
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r13
leaq -0x638(%rbp), %r15
movl $0x600, %edx            # imm = 0x600
movq %r15, %rdi
xorl %esi, %esi
callq 0x70a0
movq 0x29c3b(%rip), %rax     # 0x30fd8
movq (%rax), %rax
movq %rax, (%r15)
movl $0x2, 0x184(%r15)
movl $0x40, %edi
movl $0x1, %esi
callq 0x70d0
movq %rax, 0x8(%r15)
testq %rax, %rax
movq %r12, -0x38(%rbp)
je 0x756c
movq %rax, %r14
movl %ebx, -0x4cc(%rbp)
movq %r12, -0x4c0(%rbp)
movl $0x0, -0x4d0(%rbp)
movq %r13, 0x8(%rax)
movq %r13, %rdi
callq 0x7070
addq %r13, %rax
movq %rax, 0x10(%r14)
movl -0x30(%rbp), %eax
movl %eax, 0x18(%r14)
movabsq $0x100000002, %rax      # imm = 0x100000002
movq %rax, 0x1c(%r14)
movl $0x38, %edi
movl $0x2, %esi
callq 0x70d0
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x756c
movq $0x1, -0x620(%rbp)
movl $0x8, %edi
movl $0x1, %esi
callq 0x70d0
movq %rax, -0x618(%rbp)
testq %rax, %rax
je 0x756c
leaq -0x478(%rbp), %r12
leaq 0x4ab8(%rip), %rsi      # 0xbf1c
movq %r12, %rdi
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x438(%rbp), %rdi
leaq 0x4ab4(%rip), %rsi      # 0xbf3b
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x3f8(%rbp), %rdi
leaq 0x4a9e(%rip), %rsi      # 0xbf45
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x3b8(%rbp), %rdi
leaq 0x4a97(%rip), %rsi      # 0xbf5e
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x378(%rbp), %rdi
leaq 0x4a99(%rip), %rsi      # 0xbf80
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x338(%rbp), %rdi
leaq 0x4ad2(%rip), %rsi      # 0xbfd5
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x2f8(%rbp), %rdi
leaq 0x4af7(%rip), %rsi      # 0xc016
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x2b8(%rbp), %rdi
leaq 0x4ae5(%rip), %rsi      # 0xc020
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x756c
leaq -0x278(%rbp), %r13
leaq 0x4ad9(%rip), %rsi      # 0xc030
movq %r13, %rdi
movl $0x3, %edx
callq 0x70b0
testl %eax, %eax
je 0x76de
movq $0x0, -0x30(%rbp)
testl %ebx, %ebx
jle 0x75c0
movl %ebx, %r15d
xorl %r13d, %r13d
leaq 0x2b77(%rip), %r14      # 0xa0fc
movq -0x38(%rbp), %rax
movq (%rax,%r13,8), %r12
movl $0x6, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x7040
testl %eax, %eax
je 0x76b4
cmpb $0x2d, (%r12)
jne 0x75b8
cmpb $0x68, 0x1(%r12)
je 0x76b4
incq %r13
cmpq %r13, %r15
jne 0x7585
movq -0x30(%rbp), %r14
testq %r14, %r14
jne 0x75d7
leaq -0x638(%rbp), %rdi
xorl %esi, %esi
callq 0x72dc
movq -0x618(%rbp), %rdi
testq %rdi, %rdi
je 0x75e8
callq 0x7030
leaq -0x478(%rbp), %rdi
movq $0x0, -0x1b8(%rdi)
callq 0x7060
leaq -0x438(%rbp), %rdi
callq 0x7060
leaq -0x3f8(%rbp), %rdi
callq 0x7060
leaq -0x3b8(%rbp), %rdi
callq 0x7060
leaq -0x378(%rbp), %rdi
callq 0x7060
leaq -0x338(%rbp), %rdi
callq 0x7060
leaq -0x2f8(%rbp), %rdi
callq 0x7060
leaq -0x2b8(%rbp), %rdi
callq 0x7060
leaq -0x278(%rbp), %rbx
movq %rbx, %rdi
callq 0x7060
leaq -0x1b8(%rbp), %rdi
callq 0x7060
leaq -0x178(%rbp), %rdi
callq 0x7060
leaq -0x138(%rbp), %rdi
callq 0x7060
leaq -0xf8(%rbp), %rdi
callq 0x7060
leaq -0x1f8(%rbp), %rdi
callq 0x7060
leaq -0xb8(%rbp), %rdi
callq 0x7060
movq %rbx, %rdi
callq 0x7060
jmp 0x76c9
leaq -0x638(%rbp), %rdi
movl $0x1, %esi
callq 0x72dc
movq -0x30(%rbp), %r14
movq %r14, %rax
addq $0x618, %rsp            # imm = 0x618
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebx, %r15d
leaq -0x238(%rbp), %rbx
leaq 0x494b(%rip), %rsi      # 0xc03a
movq %rbx, %rdi
movl $0x3, %edx
callq 0x70b0
testl %eax, %eax
jne 0x777c
leaq -0x1b8(%rbp), %rdi
leaq 0x4949(%rip), %rsi      # 0xc057
movl $0x3, %edx
callq 0x70b0
testl %eax, %eax
jne 0x777c
leaq -0x178(%rbp), %rdi
leaq 0x4952(%rip), %rsi      # 0xc07c
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x777c
leaq -0x138(%rbp), %rdi
leaq 0x4948(%rip), %rsi      # 0xc08e
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x777c
leaq -0xb8(%rbp), %rdi
leaq 0x4981(%rip), %rsi      # 0xc0e3
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
jne 0x777c
movq -0x630(%rbp), %rax
cmpl $0x0, (%rax)
je 0x778c
movq $0x0, -0x30(%rbp)
movl %r15d, %ebx
jmp 0x7574
leaq -0x610(%rbp), %r14
movq -0x28(%r14), %rsi
leaq 0x28dc(%rip), %rdi      # 0xa07a
callq 0x7090
movq -0x20(%r14), %rax
movq 0x8(%rax), %rcx
leaq -0x638(%rbp), %rdi
movq $0x0, -0x30(%rbp)
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x7937
testl %eax, %eax
jne 0x7784
movq -0x630(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x777c
leaq -0x4b0(%rbp), %r14
movq -0x188(%r14), %rsi
leaq 0x28a2(%rip), %rdi      # 0xa092
callq 0x7090
movq -0x160(%r14), %rsi
movl $0x7, %edx
movq %r12, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x781b
xorl %r14d, %r14d
jmp 0x76c9
movq -0x630(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x777c
leaq -0x638(%rbp), %r12
movq (%r12), %rdi
movq 0x48(%r12), %rcx
movl 0x50(%r12), %edx
subl %ecx, %edx
leaq 0x2823(%rip), %rsi      # 0xa06c
movq $0x0, -0x30(%rbp)
xorl %eax, %eax
callq 0x70e0
movslq 0x198(%r12), %rax
movq (%r12), %rsi
movq 0x28(%r12), %rcx
addq %rcx, %rax
movq %rax, 0x48(%r12)
movslq 0x19c(%r12), %rax
addq %rcx, %rax
movq %rax, 0x50(%r12)
leaq 0x2822(%rip), %rdi      # 0xa0aa
callq 0x7090
movq %r12, %rdi
callq 0x79df
testl %eax, %eax
jne 0x7784
movq -0x630(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x777c
leaq -0x638(%rbp), %r14
movq (%r14), %rsi
leaq 0x2804(%rip), %rdi      # 0xa0c2
callq 0x7090
movq %r14, %rdi
callq 0x7fc9
testl %eax, %eax
jne 0x777c
movq -0x630(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x777c
movq -0x638(%rbp), %rdi
leaq 0x27e7(%rip), %rsi      # 0xa0d8
movl %r15d, %edx
xorl %eax, %eax
callq 0x70e0
testl %r15d, %r15d
je 0x7914
leaq -0x638(%rbp), %rdi
callq 0x81e1
testl %eax, %eax
jne 0x777c
movq -0x638(%rbp), %rsi
movq -0x630(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x27c5(%rip), %rdi      # 0xa0f2
callq 0x7090
jmp 0x7784