// File: /workspace/github_c_makefile_star2_O0/jaroslov[P]docoptc/./docopt.h
// Function: docopt_parse_atom
int docopt_parse_atom(struct docopt_parse_state* dS, struct docopt_str* usestmt)
{
    if (dS->entries->error) return 0;
    struct docopt_str olduse    = *usestmt;
    struct docopt_entry entry   = { };
    int hterm                   = -1;
    char seqend                 = 0;

    if (usestmt->fst >= usestmt->lst) goto docoptFail;
    docopt_eat_ws(usestmt);

    if (strncmp(dS->pname.fst, usestmt->fst, docopt_str_len(&dS->pname)) == 0)
    {
        hterm           = docopt_new_term(dS, DOCOPT_TYPE_PNAME);
        usestmt->fst    += docopt_str_len(&dS->pname);
        entry.name      = dS->pname;
        DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
    }
    else if (!regexec(&dS->re_optref, usestmt->fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0))
    {
        hterm           = docopt_new_term(dS, DOCOPT_TYPE_OPTREF);
        usestmt->fst    += dS->docopt_pmatches[0].rm_eo;
    }
    else if (strchr("[(", usestmt->fst[0]) != 0)
    {
        hterm           = dS->curterm;
        ++usestmt->fst;
        dS->optional    = (olduse.fst[0] == '[');
        seqend          = (olduse.fst[0] == '[') ? ']' : ')';
        hterm           = dS->curarg;
        if (!docopt_parse_expr(dS, usestmt)) goto docoptFail;
        DO_TM(hterm)->optional = dS->optional;
        hterm           = -1;
        docopt_eat_ws(usestmt);
        if (seqend != usestmt->fst[0]) goto docoptFail;
        ++usestmt->fst;
        dS->optional    = 0;
    }
    else if (!regexec(&dS->re_long, usestmt->fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0))
    {
        hterm           = docopt_new_term(dS, DOCOPT_TYPE_LONG);
        entry.name.fst  = usestmt->fst;
        entry.name.lst  = usestmt->fst + dS->docopt_pmatches[2].rm_eo;
        if (dS->docopt_pmatches[4].rm_so >= 0)
        {
            entry.command.fst  = usestmt->fst + dS->docopt_pmatches[5].rm_so;
            entry.command.lst  = usestmt->fst + dS->docopt_pmatches[5].rm_eo;
        }
        DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
        usestmt->fst    += dS->docopt_pmatches[0].rm_eo;
    }
    else if ((dS->arged_shorts[0] && !regexec(&dS->re_arged_shorts, usestmt->fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0)) ||
        !regexec(&dS->re_naked_shorts, usestmt->fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0))
    {
        for (int h = (int)dS->docopt_pmatches[3].rm_so, he = (int)dS->docopt_pmatches[3].rm_eo; h < he; ++h)
        {
            sprintf(&entry.short_name[0], "-%c", usestmt->fst[h]);
            hterm           = docopt_new_term(dS, DOCOPT_TYPE_SHORT);
            DO_TM(hterm)->length = 1;
            if (((h+1) == dS->docopt_pmatches[3].rm_eo) && (dS->docopt_pmatches[5].rm_so > 0))
            {
                entry.command.fst   = usestmt->fst + dS->docopt_pmatches[5].rm_so;
                entry.command.lst   = usestmt->fst + dS->docopt_pmatches[5].rm_eo;
            }
            DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
        }
        usestmt->fst    += dS->docopt_pmatches[0].rm_eo;
    }
    else if (!regexec(&dS->re_argument, usestmt->fst, DOCOPT_NUM_PMATCHES, &dS->docopt_pmatches[0], 0))
    {
        hterm           = docopt_new_term(dS, DOCOPT_TYPE_ARGUMENT);
        entry.name.fst  = usestmt->fst;
        entry.name.lst  = usestmt->fst + dS->docopt_pmatches[1].rm_eo;
        DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
        usestmt->fst    += dS->docopt_pmatches[0].rm_eo;
    }
    else
    {
        hterm           = docopt_new_term(dS, DOCOPT_TYPE_COMMAND);
        docopt_parse_command(dS, usestmt);
        if (olduse.fst == usestmt->fst) goto docoptFail;
        entry.name.fst  = olduse.fst;
        entry.name.lst  = usestmt->fst;
        DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
    }

    if (olduse.fst == usestmt->fst) goto docoptFail;
    if (hterm >= 0)
    {
        DO_TM(hterm)->length    = dS->curterm - hterm;
    }
    return hterm;
docoptFail:
    *usestmt        = olduse;
    dS->curterm     = hterm;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0xa08c
movl $0x0, -0x4(%rbp)
jmp 0xa712
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x28(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x70a0
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
movb $0x0, -0x65(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jb 0xa0d0
jmp 0xa6ee
movq -0x18(%rbp), %rdi
callq 0x9a10
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
callq 0x7420
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl %eax, %eax
movl %eax, %edx
callq 0x7040
cmpl $0x0, %eax
jne 0xa186
movq -0x10(%rbp), %rdi
movl $0x8, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
callq 0x7420
movl %eax, %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x50(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x9a80
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x84(%rbp), %ecx
movl %ecx, (%rax)
jmp 0xa698
movq -0x10(%rbp), %rdi
addq $0x580, %rdi            # imm = 0x580
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0xa1e5
movq -0x10(%rbp), %rdi
movl $0x7, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rax
movl 0x18c(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0xa696
movq -0x18(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %esi
leaq 0x401b(%rip), %rdi      # 0xe211
callq 0x7080
cmpq $0x0, %rax
je 0xa2f2
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5b, %eax
sete %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x160(%rax)
movq -0x28(%rbp), %rax
movsbl (%rax), %edx
movl $0x29, %eax
movl $0x5d, %ecx
cmpl $0x5b, %edx
cmovel %ecx, %eax
movb %al, -0x65(%rbp)
movq -0x10(%rbp), %rax
movl 0x168(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9ce0
cmpl $0x0, %eax
jne 0xa277
jmp 0xa6ee
movq -0x10(%rbp), %rax
movl 0x160(%rax), %eax
movl %eax, -0x88(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x88(%rbp), %edx
movl 0x4(%rax), %ecx
andl $0x1, %edx
shll $0x5, %edx
andl $-0x21, %ecx
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
movq -0x18(%rbp), %rdi
callq 0x9a10
movsbl -0x65(%rbp), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0xa2d1
jmp 0xa6ee
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x160(%rax)
jmp 0xa694
movq -0x10(%rbp), %rdi
addq $0x300, %rdi            # imm = 0x300
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0xa3e3
movq -0x10(%rbp), %rdi
movl $0x5, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x19c(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1a8(%rax)
jl 0xa399
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b0(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b4(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x9a80
movl %eax, -0x8c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x8c(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x18c(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0xa692
movq -0x10(%rbp), %rax
movsbl 0x58(%rax), %eax
cmpl $0x0, %eax
je 0xa41f
movq -0x10(%rbp), %rdi
addq $0x540, %rdi            # imm = 0x540
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
je 0xa452
movq -0x10(%rbp), %rdi
addq $0x500, %rdi            # imm = 0x500
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0xa575
movq -0x10(%rbp), %rax
movl 0x1a0(%rax), %eax
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rax
movl 0x1a4(%rax), %eax
movl %eax, -0x70(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0xa556
leaq -0x60(%rbp), %rdi
addq $0x10, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0x6c(%rbp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0x3c2b(%rip), %rsi      # 0xe0c1
movb $0x0, %al
callq 0x7130
movq -0x10(%rbp), %rdi
movl $0x6, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl 0x4(%rax), %ecx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl $0x80, %ecx
movl %ecx, 0x4(%rax)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movq -0x10(%rbp), %rcx
cmpl 0x1a4(%rcx), %eax
jne 0xa51d
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1b0(%rax)
jle 0xa51d
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b0(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x1b4(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x9a80
movl %eax, -0x90(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x90(%rbp), %ecx
movl %ecx, (%rax)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0xa46c
movq -0x10(%rbp), %rax
movl 0x18c(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0xa690
movq -0x10(%rbp), %rdi
addq $0x240, %rdi            # imm = 0x240
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rcx
addq $0x188, %rcx            # imm = 0x188
movl $0x7, %edx
xorl %r8d, %r8d
callq 0x7100
cmpl $0x0, %eax
jne 0xa620
movq -0x10(%rbp), %rdi
movl $0xa, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x194(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x9a80
movl %eax, -0x94(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x94(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x18c(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0xa68e
movq -0x10(%rbp), %rdi
movl $0x9, %esi
callq 0x9940
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa720
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq (%rcx), %rax
jne 0xa650
jmp 0xa6ee
movq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x9a80
movl %eax, -0x98(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x98(%rbp), %ecx
movl %ecx, (%rax)
jmp 0xa690
jmp 0xa692
jmp 0xa694
jmp 0xa696
jmp 0xa698
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq (%rcx), %rax
jne 0xa6a7
jmp 0xa6ee
cmpl $0x0, -0x64(%rbp)
jl 0xa6e6
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
subl -0x64(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x99f0
movl -0x9c(%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 -0x64(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xa712
movq -0x18(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x64(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nop