// File: /workspace/github_c_makefile_star2_O0/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
subq $0x650, %rsp            # imm = 0x650
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
leaq -0x628(%rbp), %rdi
xorl %esi, %esi
movl $0x600, %edx            # imm = 0x600
callq 0x70a0
movq $0x0, -0x630(%rbp)
movl $0x100, -0x634(%rbp)    # imm = 0x100
movl -0x28(%rbp), %eax
andl $0xff0000, %eax         # imm = 0xFF0000
movl -0x634(%rbp), %ecx
andl $0xff0000, %ecx         # imm = 0xFF0000
cmpl %ecx, %eax
jne 0x74a8
movl -0x28(%rbp), %eax
cmpl -0x634(%rbp), %eax
jae 0x74ba
movq -0x620(%rbp), %rax
movl $0x7, (%rax)
jmp 0x7729
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
leaq -0x628(%rbp), %rdi
callq 0x7800
cmpl $0x0, %eax
je 0x74df
jmp 0x7729
movq -0x620(%rbp), %rax
cmpl $0x0, (%rax)
je 0x74f0
jmp 0x7729
movq -0x628(%rbp), %rdi
leaq 0x4b3c(%rip), %rsi      # 0xc03a
leaq 0x4b40(%rip), %rdx      # 0xc045
movb $0x0, %al
callq 0x70e0
leaq -0x628(%rbp), %rsi
addq $0x3c0, %rsi            # imm = 0x3C0
leaq -0x628(%rbp), %rdx
addq $0x400, %rdx            # imm = 0x400
movq -0x620(%rbp), %rax
movq 0x8(%rax), %rcx
leaq -0x628(%rbp), %r8
addq $0x28, %r8
leaq -0x628(%rbp), %rdi
xorl %r9d, %r9d
movl $0x0, (%rsp)
callq 0x7b80
cmpl $0x0, %eax
je 0x755e
jmp 0x7729
movq -0x620(%rbp), %rax
cmpl $0x0, (%rax)
je 0x756f
jmp 0x7729
movq -0x628(%rbp), %rdi
leaq 0x4abd(%rip), %rsi      # 0xc03a
leaq 0x4ad9(%rip), %rdx      # 0xc05d
movb $0x0, %al
callq 0x70e0
leaq -0x628(%rbp), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
movq -0x600(%rbp), %rsi
leaq -0x628(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
je 0x75cd
movq $0x0, -0x8(%rbp)
jmp 0x77eb
movq -0x620(%rbp), %rax
cmpl $0x0, (%rax)
je 0x75de
jmp 0x7729
movq -0x628(%rbp), %rax
movq %rax, -0x640(%rbp)
leaq -0x628(%rbp), %rdi
addq $0x48, %rdi
callq 0x7420
movq -0x640(%rbp), %rdi
movl %eax, %edx
movq -0x5e0(%rbp), %rcx
leaq 0x4a21(%rip), %rsi      # 0xc034
movb $0x0, %al
callq 0x70e0
movl -0x490(%rbp), %ecx
movq -0x600(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x5e0(%rbp)
movl -0x48c(%rbp), %ecx
movq -0x600(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x5d8(%rbp)
movq -0x628(%rbp), %rdi
leaq 0x49de(%rip), %rsi      # 0xc03a
leaq 0x4a12(%rip), %rdx      # 0xc075
movb $0x0, %al
callq 0x70e0
leaq -0x628(%rbp), %rdi
callq 0x7cb0
cmpl $0x0, %eax
je 0x7680
jmp 0x7729
movq -0x620(%rbp), %rax
cmpl $0x0, (%rax)
je 0x7691
jmp 0x7729
movq -0x628(%rbp), %rdi
leaq 0x499b(%rip), %rsi      # 0xc03a
leaq 0x49e7(%rip), %rdx      # 0xc08d
movb $0x0, %al
callq 0x70e0
leaq -0x628(%rbp), %rdi
callq 0x8450
cmpl $0x0, %eax
je 0x76c0
jmp 0x7729
movq -0x620(%rbp), %rax
cmpl $0x0, (%rax)
je 0x76ce
jmp 0x7729
movq -0x628(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x49c4(%rip), %rsi      # 0xc0a3
movb $0x0, %al
callq 0x70e0
cmpl $0x0, -0x14(%rbp)
je 0x76ff
leaq -0x628(%rbp), %rdi
callq 0x8790
cmpl $0x0, %eax
je 0x76ff
jmp 0x7729
movq -0x620(%rbp), %rax
movq %rax, -0x630(%rbp)
movq -0x628(%rbp), %rdi
leaq 0x491f(%rip), %rsi      # 0xc03a
leaq 0x499b(%rip), %rdx      # 0xc0bd
movb $0x0, %al
callq 0x70e0
movl $0x0, -0x638(%rbp)
movl -0x638(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x77bc
movq -0x20(%rbp), %rax
movslq -0x638(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4973(%rip), %rsi      # 0xc0c7
movl $0x6, %edx
callq 0x7040
cmpl $0x0, %eax
je 0x7788
movq -0x20(%rbp), %rax
movslq -0x638(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4955(%rip), %rsi      # 0xc0ce
movl $0x2, %edx
callq 0x7040
cmpl $0x0, %eax
jne 0x77a6
leaq -0x628(%rbp), %rdi
movl $0x1, %esi
callq 0x7250
movq -0x630(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x77eb
jmp 0x77a8
movl -0x638(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x638(%rbp)
jmp 0x7733
cmpq $0x0, -0x630(%rbp)
jne 0x77d4
leaq -0x628(%rbp), %rdi
xorl %esi, %esi
callq 0x7250
leaq -0x628(%rbp), %rdi
callq 0x8e10
movq -0x630(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x650, %rsp            # imm = 0x650
popq %rbp
retq
nopl (%rax,%rax)