// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x8(%rdi), %rcx
xorl %eax, %eax
cmpl $0x0, (%rcx)
jne 0x8d33
movq %rsi, %r14
movq %rdi, %rbx
movups (%rsi), %xmm0
movaps %xmm0, -0x50(%rbp)
pushq $0xc
popq %rsi
callq 0x893a
movl 0x160(%rbx), %edi
movq 0x20(%rbx), %rcx
movl %eax, -0x2c(%rbp)
movslq %eax, %rsi
movl 0x4(%rcx,%rsi,8), %edx
shll $0x5, %edi
andl $0x20, %edi
andl $-0x21, %edx
orl %edi, %edx
movq %rsi, -0x38(%rbp)
movl %edx, 0x4(%rcx,%rsi,8)
movq %r14, %rdi
callq 0x89a5
xorl %r15d, %r15d
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jae 0x8c9f
movq 0x8(%rbx), %rax
cmpl $0x0, (%rax)
jne 0x8c9f
movups (%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
movq %rbx, %rdi
pushq $0xb
popq %rsi
callq 0x893a
movl %eax, %r13d
movq %r14, %rdi
callq 0x89a5
movq (%r14), %rax
movl 0x1c(%rbx), %r12d
cmpq 0x8(%r14), %rax
jae 0x8c3d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8d42
testl %eax, %eax
je 0x8c39
movq %r14, %rdi
callq 0x89a5
movq (%r14), %rax
cmpb $0x2e, (%rax)
jne 0x8bec
cmpb $0x2e, 0x1(%rax)
jne 0x8bec
cmpb $0x2e, 0x2(%rax)
jne 0x8bec
movslq %r12d, %rax
movq 0x20(%rbx), %rcx
orl $0x40, 0x4(%rcx,%rax,8)
movq (%r14), %rax
addq $0x3, %rax
movq %rax, (%r14)
jmp 0x8bec
movl 0x1c(%rbx), %r12d
leal 0x1(%r13), %eax
cmpl %r12d, %eax
je 0x8c93
subl %r13d, %r12d
movq 0x20(%rbx), %rax
movslq %r13d, %rcx
shll $0x7, %r12d
andl $0x7ffff80, %r12d       # imm = 0x7FFFF80
movl 0x4(%rax,%rcx,8), %edx
movl $0xf800007f, %esi       # imm = 0xF800007F
andl %esi, %edx
orl %r12d, %edx
movl %edx, 0x4(%rax,%rcx,8)
incl %r15d
movq %r14, %rdi
callq 0x89a5
movq (%r14), %rax
cmpb $0x7c, (%rax)
jne 0x8c9f
incq %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x89a5
jmp 0x8bb1
movaps -0x60(%rbp), %xmm0
movups %xmm0, (%r14)
movl %r13d, 0x1c(%rbx)
movq 0x20(%rbx), %rcx
movq -0x38(%rbp), %r8
movb 0x4(%rcx,%r8,8), %al
shrb $0x5, %al
cmpl $0x1, %r15d
sete %dl
andb %al, %dl
leal 0x1(%r8), %eax
cmpb $0x1, %dl
jne 0x8cfa
movslq %eax, %rdx
pushq $0x1
popq %rsi
movl 0x4(%rcx,%rdx,8), %edi
shrl $0x7, %edi
andl $0xfffff, %edi          # imm = 0xFFFFF
cmpl %edi, %esi
jae 0x8cfa
leal (%rsi,%rax), %edi
movslq %edi, %rdi
orb $0x20, 0x4(%rcx,%rdi,8)
movq 0x20(%rbx), %rcx
movl 0x4(%rcx,%rdi,8), %edi
shrl $0x7, %edi
andl $0xfffff, %edi          # imm = 0xFFFFF
addl %esi, %edi
movl %edi, %esi
jmp 0x8cc7
movl 0x1c(%rbx), %edx
cmpl %edx, %eax
jne 0x8d13
movaps -0x50(%rbp), %xmm0
movups %xmm0, (%r14)
movl -0x2c(%rbp), %eax
movl %eax, 0x1c(%rbx)
xorl %eax, %eax
jmp 0x8d33
pushq $0x1
popq %rax
subl %r8d, %edx
shll $0x7, %edx
andl $0x7ffff80, %edx        # imm = 0x7FFFF80
movl $0xf800007f, %esi       # imm = 0xF800007F
andl 0x4(%rcx,%r8,8), %esi
orl %edx, %esi
movl %esi, 0x4(%rcx,%r8,8)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq