// File: /workspace/github_c_makefile_star2_O1/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 0x8e00
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 0x8be7
movl 0x160(%rbx), %edi
movq 0x20(%rbx), %rcx
movq %rax, -0x30(%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 0x8c53
movq (%r14), %rax
xorl %r15d, %r15d
cmpq 0x8(%r14), %rax
jae 0x8f5f
movq 0x8(%rbx), %rax
cmpl $0x0, (%rax)
jne 0x8f57
movups (%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
movq %rbx, %rdi
movl $0xb, %esi
callq 0x8be7
movl %eax, %r13d
movq %r14, %rdi
callq 0x8c53
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jae 0x8ee1
movslq 0x1c(%rbx), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9012
testl %eax, %eax
je 0x8ee1
movq %r14, %rdi
callq 0x8c53
movq (%r14), %rsi
movl $0x3, %edx
leaq 0x1d52(%rip), %rdi      # 0xac1a
callq 0x7040
testl %eax, %eax
jne 0x8e95
movq 0x20(%rbx), %rax
orl $0x40, 0x4(%rax,%r12,8)
addq $0x3, (%r14)
jmp 0x8e95
leal 0x1(%r13), %eax
movl 0x1c(%rbx), %ecx
cmpl %ecx, %eax
jne 0x8efa
movaps -0x60(%rbp), %xmm0
movups %xmm0, (%r14)
movl %r13d, 0x1c(%rbx)
jmp 0x8f25
movl %ecx, %edx
subl %r13d, %edx
movq 0x20(%rbx), %rsi
movslq %r13d, %rdi
shll $0x7, %edx
andl $0x7ffff80, %edx        # imm = 0x7FFFF80
movl 0x4(%rsi,%rdi,8), %r8d
movl $0xf800007f, %r9d       # imm = 0xF800007F
andl %r9d, %r8d
orl %edx, %r8d
movl %r8d, 0x4(%rsi,%rdi,8)
cmpl %ecx, %eax
je 0x8f57
incl %r15d
movq %r14, %rdi
callq 0x8c53
movq (%r14), %rax
cmpb $0x7c, (%rax)
jne 0x8f57
incq %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x8c53
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jb 0x8e68
cmpl $0x1, %r15d
sete %r15b
movq 0x20(%rbx), %rax
movq -0x38(%rbp), %r9
movb 0x4(%rax,%r9,8), %al
andb $0x20, %al
shrb $0x5, %al
andb %r15b, %al
cmpb $0x1, %al
jne 0x8fc2
movq 0x20(%rbx), %rax
testl $0x7ffff00, 0xc(%rax,%r9,8) # imm = 0x7FFFF00
je 0x8fc2
leaq 0x1(%r9), %rcx
movl $0x1, %esi
movl $0xfffff, %edx          # imm = 0xFFFFF
leal (%rsi,%rcx), %edi
movslq %edi, %rdi
orb $0x20, 0x4(%rax,%rdi,8)
movq 0x20(%rbx), %rax
movl 0x4(%rax,%rdi,8), %edi
shrl $0x7, %edi
andl %edx, %edi
addl %esi, %edi
movl 0x4(%rax,%rcx,8), %r8d
shrl $0x7, %r8d
andl %edx, %r8d
movl %edi, %esi
cmpl %r8d, %edi
jb 0x8f95
movq -0x30(%rbp), %rdx
leal 0x1(%rdx), %ecx
movl 0x1c(%rbx), %eax
cmpl %eax, %ecx
jne 0x8fdf
movaps -0x50(%rbp), %xmm0
movups %xmm0, (%r14)
movl %edx, 0x1c(%rbx)
xorl %eax, %eax
jmp 0x9003
subl %edx, %eax
movq 0x20(%rbx), %rcx
shll $0x7, %eax
movl $0xf800007f, %edx       # imm = 0xF800007F
andl 0x4(%rcx,%r9,8), %edx
andl $0x7ffff80, %eax        # imm = 0x7FFFF80
orl %eax, %edx
movl %edx, 0x4(%rcx,%r9,8)
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq