// File: /workspace/github_c_makefile_star2_O0/jaroslov[P]docoptc/./docopt.h
// Function: docopt_parse_options
static int docopt_parse_options(struct docopt_parse_state* dS)
{
    if (dS->entries->error) return 1;
    struct docopt_str optstmt   = { 0 };
    struct docopt_entry option  = { };
    int which_first             = 0;
    char unarged_shorts[]       = DOCOPT_RE_ALL_SHORTS_CHARS;
    char re_arged_shorts[256]   = { 0 };
    char short_name[3]          = "- ";
    struct docopt_str sname     = { &short_name[0], &short_name[2] };
    int options_x               = 0;
    int options_s               = 0;
    int sterm                   = 0;
    int lterm                   = 0;

    if (docopt_get_section(dS, &dS->re_option_section_start, &dS->re_option_section_start, dS->usage_section.lst, &dS->option_section, 3, 0)) return 0;
    dS->option_section.lst  = dS->entries->docstr.lst;
    optstmt.fst                 = dS->option_section.fst;

    options_x                   = docopt_new_term(dS, DOCOPT_TYPE_OPTION_SECTION);
    DO_TM(options_x)->repeat    = 1;
    DO_TM(options_x)->optional  = 1;
    while (!docopt_get_section(dS, &dS->re_option_statement_start, &dS->re_option_statement_start, optstmt.fst, &optstmt, 3, 0))
    {
        fprintf(dS->log, "%s\n", "Parsing Option Statement.");
        sterm           = -1;
        lterm           = -1;
        which_first     = 0;
        memset(&option, 0x0, sizeof(option));
        if (optstmt.fst >= dS->option_section.lst) break;
        docopt_eat_ws(&optstmt);
        options_s   = docopt_new_term(dS, DOCOPT_TYPE_OPTION_STATEMENT);
        for (int X = 0; X < 2; ++X)
        {
            if ((which_first != 1) && regexec(&dS->re_optshort, optstmt.fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0) == 0)
            {
                sterm       = docopt_new_term(dS, DOCOPT_TYPE_SHORT);
                DO_TM(sterm)->length = 1;
                which_first = 1;
                sprintf(option.short_name, "-%c", optstmt.fst[1]);
                if (dS->docopt_pmatches[4].rm_so >= 0)
                {
                    option.command.fst  = optstmt.fst + dS->docopt_pmatches[4].rm_so;
                    option.command.lst  = optstmt.fst + dS->docopt_pmatches[4].rm_eo;
                }
            }
            else if ((which_first != 2) && regexec(&dS->re_long, optstmt.fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0) == 0)
            {
                which_first = 2;
                lterm           = docopt_new_term(dS, DOCOPT_TYPE_LONG);
                DO_TM(lterm)->length = 1;
                option.name.fst = optstmt.fst;
                option.name.lst = optstmt.fst + dS->docopt_pmatches[2].rm_eo;
                if (dS->docopt_pmatches[4].rm_so >= 0)
                {
                    option.command.fst  = optstmt.fst + dS->docopt_pmatches[5].rm_so;
                    option.command.lst  = optstmt.fst + dS->docopt_pmatches[5].rm_eo;
                }
            }
            if (X == 0) optstmt.fst += dS->docopt_pmatches[0].rm_eo + 1; docopt_eat_ws(&optstmt);
        }
        if (which_first == 0)
        {
            dS->entries->error  = DOCOPT_BAD_DEFAULTS;
            return 1;
        }
        if (regexec(&dS->re_default, optstmt.fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0)) goto docoptAddOption;
        if ((optstmt.fst + dS->docopt_pmatches[0].rm_eo) > optstmt.lst) goto docoptAddOption;
        option.defvalue.fst     = optstmt.fst + dS->docopt_pmatches[2].rm_so;
        option.defvalue.lst     = optstmt.fst + dS->docopt_pmatches[2].rm_eo;
docoptAddOption:
        if (lterm >= 0) DO_TM(lterm)->entry = docopt_entries_insert_entry(dS->entries, &option);
        if (sterm >= 0) DO_TM(sterm)->entry = docopt_entries_insert_entry(dS->entries, &option);
        DO_TM(options_s)->length = dS->curterm - options_s;
        fprintf(dS->log, "%s\n", "... Done Parsing Option Statement.");
    }
    DO_TM(options_x)->length = dS->curterm - options_x;
    for (int i = 0, idx = 0, jdx = 0, entry; i < strlen(unarged_shorts); ++i)
    {
        short_name[1]   = unarged_shorts[i];
        if (((entry = docopt_entries_get_entry(dS->entries, &sname)) < 0) ||
            !docopt_str_len(&docopt_fetch_entry(dS->entries, entry)->command))
            dS->unarged_shorts[idx++]   = unarged_shorts[i];
        else
            dS->arged_shorts[jdx++]     = short_name[1];
    }
    if (strlen(dS->arged_shorts))
    {
        fprintf(dS->log, "Setting up arged shorts: %s\n", dS->arged_shorts);
        sprintf(&re_arged_shorts[0], "^" DOCOPT_RE_ARGED_SHORTS, dS->unarged_shorts, dS->arged_shorts);
        if (regcomp(&dS->re_arged_shorts, re_arged_shorts, REG_EXTENDED))
        {
            dS->entries->error  = DOCOPT_BAD_ARGED_SHORTS;
            return 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0x7cd8
movl $0x1, -0x4(%rbp)
jmp 0x8441
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x70a0
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x70a0
movl $0x0, -0x5c(%rbp)
leaq -0xa0(%rbp), %rdi
leaq 0x66c3(%rip), %rsi      # 0xe3d0
movl $0x3b, %edx
callq 0x70f0
leaq -0x1a0(%rbp), %rdi
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x70a0
movw 0x638d(%rip), %ax       # 0xe0be
movw %ax, -0x1a3(%rbp)
movb 0x6382(%rip), %al       # 0xe0c0
movb %al, -0x1a1(%rbp)
leaq -0x1a3(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq -0x1a3(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x1b0(%rbp)
movl $0x0, -0x1bc(%rbp)
movl $0x0, -0x1c0(%rbp)
movl $0x0, -0x1c4(%rbp)
movl $0x0, -0x1c8(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x480, %rsi            # imm = 0x480
movq -0x10(%rbp), %rdx
addq $0x480, %rdx            # imm = 0x480
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %r8
addq $0x38, %r8
movl $0x3, %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x7b80
cmpl $0x0, %eax
je 0x7ddb
movl $0x0, -0x4(%rbp)
jmp 0x8441
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl $0x3, %esi
callq 0x9940
movl %eax, -0x1bc(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1bc(%rbp), %esi
callq 0x99f0
movl 0x4(%rax), %ecx
andl $-0x41, %ecx
orl $0x40, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rdi
movl -0x1bc(%rbp), %esi
callq 0x99f0
movl 0x4(%rax), %ecx
andl $-0x21, %ecx
orl $0x20, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x4c0, %rsi            # imm = 0x4C0
movq -0x10(%rbp), %rdx
addq $0x4c0, %rdx            # imm = 0x4C0
movq -0x20(%rbp), %rcx
leaq -0x20(%rbp), %r8
movl $0x3, %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x7b80
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x7e8c
jmp 0x8260
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x5f8d(%rip), %rsi      # 0xde27
leaq 0x622d(%rip), %rdx      # 0xe0ce
movb $0x0, %al
callq 0x70e0
movl $0xffffffff, -0x1c4(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x1c8(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x5c(%rbp)
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x70a0
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x7ee6
jmp 0x8260
leaq -0x20(%rbp), %rdi
callq 0x9a10
movq -0x10(%rbp), %rdi
movl $0x4, %esi
callq 0x9940
movl %eax, -0x1c0(%rbp)
movl $0x0, -0x1cc(%rbp)
cmpl $0x2, -0x1cc(%rbp)
jge 0x80fe
cmpl $0x1, -0x5c(%rbp)
je 0x7fec
movq -0x10(%rbp), %rdi
addq $0x2c0, %rdi            # imm = 0x2C0
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0x7fec
movq -0x10(%rbp), %rdi
movl $0x6, %esi
callq 0x9940
movl %eax, -0x1c4(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c4(%rbp), %esi
callq 0x99f0
movl 0x4(%rax), %ecx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl $0x80, %ecx
movl %ecx, 0x4(%rax)
movl $0x1, -0x5c(%rbp)
leaq -0x58(%rbp), %rdi
addq $0x10, %rdi
movq -0x20(%rbp), %rax
movsbl 0x1(%rax), %edx
leaq 0x611a(%rip), %rsi      # 0xe0c1
movb $0x0, %al
callq 0x7130
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1a8(%rax)
jl 0x7fe7
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x1a8(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x1ac(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x80bd
cmpl $0x2, -0x5c(%rbp)
je 0x80bb
movq -0x10(%rbp), %rdi
addq $0x300, %rdi            # imm = 0x300
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0x80bb
movl $0x2, -0x5c(%rbp)
movq -0x10(%rbp), %rdi
movl $0x5, %esi
callq 0x9940
movl %eax, -0x1c8(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c8(%rbp), %esi
callq 0x99f0
movl 0x4(%rax), %ecx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl $0x80, %ecx
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x19c(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1a8(%rax)
jl 0x80b9
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b0(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b4(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x80bb
jmp 0x80bd
cmpl $0x0, -0x1cc(%rbp)
jne 0x80e1
movq -0x10(%rbp), %rax
movl 0x18c(%rax), %ecx
addl $0x1, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x9a10
movl -0x1cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1cc(%rbp)
jmp 0x7f0d
cmpl $0x0, -0x5c(%rbp)
jne 0x811e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl $0x1, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x8441
movq -0x10(%rbp), %rdi
addq $0x280, %rdi            # imm = 0x280
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
je 0x814c
jmp 0x8192
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x18c(%rcx), %rcx
addq %rcx, %rax
cmpq -0x18(%rbp), %rax
jbe 0x8166
jmp 0x8192
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x198(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq 0x19c(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x1c8(%rbp)
jl 0x81c9
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x9a80
movl %eax, -0x1e0(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c8(%rbp), %esi
callq 0x99f0
movl -0x1e0(%rbp), %ecx
movl %ecx, (%rax)
cmpl $0x0, -0x1c4(%rbp)
jl 0x8200
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x58(%rbp), %rsi
callq 0x9a80
movl %eax, -0x1e4(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c4(%rbp), %esi
callq 0x99f0
movl -0x1e4(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
subl -0x1c0(%rbp), %eax
movl %eax, -0x1e8(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c0(%rbp), %esi
callq 0x99f0
movl -0x1e8(%rbp), %edx
movl 0x4(%rax), %ecx
andl $0xfffff, %edx          # imm = 0xFFFFF
shll $0x7, %edx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x5bda(%rip), %rsi      # 0xde27
leaq 0x5e71(%rip), %rdx      # 0xe0c5
movb $0x0, %al
callq 0x70e0
jmp 0x7e45
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
subl -0x1bc(%rbp), %eax
movl %eax, -0x1ec(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1bc(%rbp), %esi
callq 0x99f0
movl -0x1ec(%rbp), %edx
movl 0x4(%rax), %ecx
andl $0xfffff, %edx          # imm = 0xFFFFF
shll $0x7, %edx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movl $0x0, -0x1d0(%rbp)
movl $0x0, -0x1d4(%rbp)
movl $0x0, -0x1d8(%rbp)
movslq -0x1d0(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x7070
movq %rax, %rcx
movq -0x1f8(%rbp), %rax
cmpq %rcx, %rax
jae 0x83a8
movslq -0x1d0(%rbp), %rax
movb -0xa0(%rbp,%rax), %al
movb %al, -0x1a2(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x9120
movl %eax, -0x1dc(%rbp)
cmpl $0x0, %eax
jl 0x8341
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x1dc(%rbp), %esi
callq 0x9240
movq %rax, %rdi
addq $0x18, %rdi
callq 0x7420
cmpl $0x0, %eax
jne 0x8370
movslq -0x1d0(%rbp), %rax
movb -0xa0(%rbp,%rax), %dl
movq -0x10(%rbp), %rax
movl -0x1d4(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1d4(%rbp)
movslq %ecx, %rcx
movb %dl, 0xd8(%rax,%rcx)
jmp 0x8392
movb -0x1a2(%rbp), %dl
movq -0x10(%rbp), %rax
movl -0x1d8(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1d8(%rbp)
movslq %ecx, %rcx
movb %dl, 0x58(%rax,%rcx)
jmp 0x8394
movl -0x1d0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1d0(%rbp)
jmp 0x82bd
movq -0x10(%rbp), %rdi
addq $0x58, %rdi
callq 0x7070
cmpq $0x0, %rax
je 0x843a
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rdx
addq $0x58, %rdx
leaq 0x5d17(%rip), %rsi      # 0xe0e8
movb $0x0, %al
callq 0x70e0
leaq -0x1a0(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0xd8, %rdx
movq -0x10(%rbp), %rcx
addq $0x58, %rcx
leaq 0x5d0c(%rip), %rsi      # 0xe105
movb $0x0, %al
callq 0x7130
movq -0x10(%rbp), %rdi
addq $0x540, %rdi            # imm = 0x540
leaq -0x1a0(%rbp), %rsi
movl $0x1, %edx
callq 0x70b0
cmpl $0x0, %eax
je 0x8438
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl $0x4, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x8441
jmp 0x843a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
nopl (%rax)