// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0x8(%rdi), %rax
xorl %r15d, %r15d
cmpl $0x0, (%rax)
jne 0x8f43
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
andq $0x0, -0x50(%rbp)
movaps %xmm0, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
pushq $-0x1
popq %r15
cmpq %rdx, %rcx
jae 0x8f35
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r14, %rdi
callq 0x89a5
movq 0x48(%rbx), %rdi
movq (%r14), %r13
movl 0x50(%rbx), %edx
subl %edi, %edx
movq %r13, %rsi
callq 0x7040
testl %eax, %eax
je 0x8e9e
leaq 0x580(%rbx), %rdi
leaq 0x188(%rbx), %r12
pushq $0x7
popq %rdx
movq %r13, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x8eda
movq (%r14), %rsi
movzbl (%rsi), %eax
testl %eax, %eax
je 0x8dfc
cmpl $0x5b, %eax
je 0x8dfc
cmpl $0x28, %eax
jne 0x8f55
incq %rsi
movq %rsi, (%r14)
xorl %eax, %eax
movq -0x38(%rbp), %rcx
cmpb $0x5b, (%rcx)
sete %al
movl %eax, 0x160(%rbx)
movb (%rcx), %r12b
movl 0x168(%rbx), %r13d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8b4a
testl %eax, %eax
je 0x8f2a
movslq %r13d, %rax
cmpb $0x5b, %r12b
pushq $0x5d
popq %rcx
pushq $0x29
popq %r12
cmovel %ecx, %r12d
movl 0x160(%rbx), %ecx
movq 0x20(%rbx), %rdx
movl 0x4(%rdx,%rax,8), %esi
shll $0x5, %ecx
andl $0x20, %ecx
andl $-0x21, %esi
orl %ecx, %esi
movl %esi, 0x4(%rdx,%rax,8)
movq %r14, %rdi
callq 0x89a5
movq (%r14), %rax
movsbl (%rax), %ecx
cmpl %ecx, %r12d
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rdx
jne 0x8f35
incq %rax
movq %rax, (%r14)
andl $0x0, 0x160(%rbx)
pushq $-0x1
popq %r15
cmpq %rax, %rcx
jne 0x8f43
jmp 0x8f35
leaq 0x48(%rbx), %r12
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x893a
movl 0x50(%rbx), %ecx
subl 0x48(%rbx), %ecx
movl %eax, %r15d
addq %rcx, (%r14)
movups (%r12), %xmm0
leaq -0x80(%rbp), %rsi
movaps %xmm0, (%rsi)
movq 0x8(%rbx), %rdi
callq 0x89e4
movq 0x20(%rbx), %rcx
movslq %r15d, %rdx
movl %eax, (%rcx,%rdx,8)
jmp 0x8ef2
pushq $0x7
popq %rsi
movq %rbx, %rdi
callq 0x893a
movl %eax, %r15d
movslq 0x18c(%rbx), %rax
addq %rax, (%r14)
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
cmpq (%r14), %rcx
je 0x8f35
testl %r15d, %r15d
js 0x8f43
movl 0x1c(%rbx), %eax
subl %r15d, %eax
movq 0x20(%rbx), %rcx
movl %r15d, %edx
shll $0x7, %eax
andl $0x7ffff80, %eax        # imm = 0x7FFFF80
movl $0xf800007f, %esi       # imm = 0xF800007F
andl 0x4(%rcx,%rdx,8), %esi
orl %eax, %esi
movl %esi, 0x4(%rcx,%rdx,8)
jmp 0x8f43
movl %r13d, %r15d
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rdx
movq %rcx, (%r14)
movq %rdx, 0x8(%r14)
movl %r15d, 0x1c(%rbx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x300(%rbx), %rdi
pushq $0x7
popq %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x9082
cmpb $0x0, 0x58(%rbx)
je 0x8f98
leaq 0x540(%rbx), %rdi
movq (%r14), %rsi
pushq $0x7
popq %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x90d7
leaq 0x500(%rbx), %rdi
movq (%r14), %rsi
pushq $0x7
popq %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x90d7
leaq 0x240(%rbx), %rdi
movq (%r14), %rsi
pushq $0x7
popq %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x70f0
testl %eax, %eax
je 0x918b
pushq $0x9
popq %rsi
movq %rbx, %rdi
callq 0x893a
movl %eax, %r15d
movq 0x8(%rbx), %rdi
cmpl $0x0, (%rdi)
movq (%r14), %rdx
jne 0x91d4
movq %rdi, -0x88(%rbp)
movq 0x8(%r14), %rax
movq %rax, -0x90(%rbp)
incq %rdx
movq %rdx, %rax
movq %rax, %r12
decq %rax
movq %rax, -0x40(%rbp)
cmpq -0x90(%rbp), %rax
jae 0x91c9
movq -0x40(%rbp), %rax
movsbl (%rax), %r13d
cmpl $0x2e, %r13d
jne 0x9046
cmpb $0x2e, (%r12)
jne 0x9046
cmpb $0x2e, 0x1(%r12)
je 0x91c9
leaq 0x31e7(%rip), %rdi      # 0xc234
movl %r13d, %esi
pushq $0x6
popq %rdx
callq 0x70c0
testq %rax, %rax
jne 0x91c9
callq 0x7140
movq (%rax), %rax
movslq %r13d, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x91c9
movq %r12, %rax
movq %r12, (%r14)
incq %rax
jmp 0x900e
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x893a
movl %eax, %r15d
movq (%r14), %rax
movq %rax, -0x80(%rbp)
movslq 0x19c(%rbx), %rcx
addq %rax, %rcx
movq %rcx, -0x78(%rbp)
cmpl $0x0, 0x1a8(%rbx)
js 0x90ca
movslq 0x1b0(%rbx), %rcx
addq %rax, %rcx
movq %rcx, -0x68(%rbp)
movslq 0x1b4(%rbx), %rcx
addq %rax, %rcx
movq %rcx, -0x60(%rbp)
movq 0x8(%rbx), %rdi
leaq -0x80(%rbp), %rsi
jmp 0x91b5
movslq 0x1a0(%rbx), %r12
movslq 0x1a4(%rbx), %rax
movq %rax, -0x40(%rbp)
leal 0x1(%r12), %r13d
pushq $-0x1
popq %r15
cmpq -0x40(%rbp), %r12
jge 0x8ee8
movq (%r14), %rax
movsbl (%rax,%r12), %edx
leaq -0x70(%rbp), %rdi
leaq 0x2fe4(%rip), %rsi      # 0xc0f3
xorl %eax, %eax
callq 0x7120
movq %rbx, %rdi
pushq $0x6
popq %rsi
callq 0x893a
movq 0x20(%rbx), %rcx
movslq %eax, %r15
movl 0x4(%rcx,%r15,8), %eax
movl $0xf800007f, %edx       # imm = 0xF800007F
andl %edx, %eax
orl $0x80, %eax
movl %eax, 0x4(%rcx,%r15,8)
cmpl 0x1a4(%rbx), %r13d
jne 0x916b
movslq 0x1b0(%rbx), %rax
testq %rax, %rax
jle 0x916b
movq (%r14), %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movslq 0x1b4(%rbx), %rax
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq 0x8(%rbx), %rdi
leaq -0x80(%rbp), %rsi
callq 0x89e4
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r15,8)
incl %r13d
incq %r12
jmp 0x90f2
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x893a
movl %eax, %r15d
movq (%r14), %rax
leaq -0x80(%rbp), %rsi
movq %rax, (%rsi)
movslq 0x194(%rbx), %rcx
addq %rax, %rcx
movq %rcx, 0x8(%rsi)
movq 0x8(%rbx), %rdi
callq 0x89e4
movq 0x20(%rbx), %rcx
movslq %r15d, %rdx
movl %eax, (%rcx,%rdx,8)
jmp 0x8ee8
movq -0x88(%rbp), %rdi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
cmpq %rdx, %rcx
je 0x8f31
leaq -0x80(%rbp), %rsi
movq %rcx, (%rsi)
movq %rdx, 0x8(%rsi)
jmp 0x8ec9