// File: /workspace/github_c_makefile_star2_O3/jaroslov[P]docoptc/./docopt.h
// Function: docopt_parse_expr
static int docopt_parse_expr(struct docopt_parse_state* dS, struct docopt_str* usestmt)
{
    if (dS->entries->error) return 0;
    int multisequence           = 0;
    struct docopt_str olduse    = *usestmt;
    int hterm                   = docopt_new_term(dS, DOCOPT_TYPE_EXPR);
    DO_TM(hterm)->optional = dS->optional;
    docopt_eat_ws(usestmt);
    while ((usestmt->fst < usestmt->lst) && docopt_parse_seq(dS, usestmt))
    {
        ++multisequence;
        docopt_eat_ws(usestmt);
        if (usestmt->fst[0] != '|') break;
        ++usestmt->fst;
        docopt_eat_ws(usestmt);
    }
    if (DO_TM(hterm)->optional && (multisequence == 1))
    {
        for (int x = 1; x < DO_TM(hterm+1)->length; x += DO_TM(hterm+1+x)->length)
            DO_TM(hterm+1+x)->optional = 1;
    }
    if ((hterm + 1) == dS->curterm)
    {
        *usestmt                    = olduse;
        dS->curterm                 = hterm;
        return 0;
    }
    DO_TM(hterm)->length = dS->curterm - hterm;
    return 1;
}

// Assembly:
movq 0x8(%rdi), %rcx
xorl %eax, %eax
cmpl $0x0, (%rcx)
je 0x8d70
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movups (%rsi), %xmm0
movaps %xmm0, -0x50(%rbp)
movl $0xc, %esi
callq 0x8b4e
movl 0x160(%rbx), %esi
movq 0x20(%rbx), %rcx
movq %rax, -0x30(%rbp)
movslq %eax, %r15
movl 0x4(%rcx,%r15,8), %edx
shll $0x5, %esi
andl $0x20, %esi
andl $-0x21, %edx
orl %esi, %edx
movl %edx, 0x4(%rcx,%r15,8)
movq %r14, %rdi
callq 0x8bbc
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jae 0x8eb4
movq %r15, -0x38(%rbp)
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
cmpl $0x0, (%rax)
jne 0x8ec9
movups (%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
movq %rbx, %rdi
movl $0xb, %esi
callq 0x8b4e
movl %eax, %r12d
movq %r14, %rdi
callq 0x8bbc
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jae 0x8e55
movslq 0x1c(%rbx), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8f8e
testl %eax, %eax
je 0x8e55
movq %r14, %rdi
callq 0x8bbc
movq (%r14), %rax
cmpb $0x2e, (%rax)
jne 0x8e0a
cmpb $0x2e, 0x1(%rax)
jne 0x8e0a
cmpb $0x2e, 0x2(%rax)
jne 0x8e0a
movq 0x20(%rbx), %rax
orl $0x40, 0x4(%rax,%r13,8)
movq (%r14), %rax
addq $0x3, %rax
movq %rax, (%r14)
jmp 0x8e0a
leal 0x1(%r12), %ecx
movl 0x1c(%rbx), %eax
cmpl %eax, %ecx
je 0x8ebd
subl %r12d, %eax
movq 0x20(%rbx), %rcx
movslq %r12d, %rdx
shll $0x7, %eax
andl $0x7ffff80, %eax        # imm = 0x7FFFF80
movl 0x4(%rcx,%rdx,8), %esi
movl $0xf800007f, %edi       # imm = 0xF800007F
andl %edi, %esi
orl %eax, %esi
movl %esi, 0x4(%rcx,%rdx,8)
incl %r15d
movq %r14, %rdi
callq 0x8bbc
movq (%r14), %rax
cmpb $0x7c, (%rax)
jne 0x8ec9
incq %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x8bbc
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jb 0x8dda
jmp 0x8ec9
movq 0x20(%rbx), %rax
jmp 0x8f41
movaps -0x60(%rbp), %xmm0
movups %xmm0, (%r14)
movl %r12d, 0x1c(%rbx)
movq 0x20(%rbx), %rax
movq -0x38(%rbp), %rsi
movb 0x4(%rax,%rsi,8), %cl
shrb $0x5, %cl
cmpl $0x1, %r15d
sete %dl
testb %dl, %cl
je 0x8f3e
movq -0x30(%rbp), %rcx
incl %ecx
testl $0x7ffff00, 0xc(%rax,%rsi,8) # imm = 0x7FFFF00
movq %rsi, %r15
je 0x8f38
leaq 0x1(%r15), %rdx
movl $0x1, %edi
movl $0xfffff, %esi          # imm = 0xFFFFF
leal (%rdi,%rcx), %r8d
movslq %r8d, %r8
orb $0x20, 0x4(%rax,%r8,8)
movq 0x20(%rbx), %rax
movl 0x4(%rax,%r8,8), %r8d
shrl $0x7, %r8d
andl %esi, %r8d
addl %edi, %r8d
movl 0x4(%rax,%rdx,8), %r9d
shrl $0x7, %r9d
andl %esi, %r9d
movl %r8d, %edi
cmpl %r9d, %r8d
jb 0x8f04
movq -0x30(%rbp), %rsi
jmp 0x8f48
movq %rsi, %r15
movq -0x30(%rbp), %rsi
leal 0x1(%rsi), %ecx
movl 0x1c(%rbx), %edx
cmpl %edx, %ecx
jne 0x8f5e
movaps -0x50(%rbp), %xmm0
movups %xmm0, (%r14)
movl %esi, 0x1c(%rbx)
xorl %eax, %eax
jmp 0x8f7f
subl %esi, %edx
shll $0x7, %edx
movl $0xf800007f, %ecx       # imm = 0xF800007F
andl 0x4(%rax,%r15,8), %ecx
andl $0x7ffff80, %edx        # imm = 0x7FFFF80
orl %edx, %ecx
movl %ecx, 0x4(%rax,%r15,8)
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq