// File: /workspace/github_cpp_makefile_star2_O1/ridiculousfish[P]docopt_fish/docopt_fish_parse_tree.cpp
// Function: docopt_fish::parse_context_t::parse(docopt_fish::expression_t*)
bool parse(expression_t *result) {
        rstring_t token;
        bool success = false;
        // Note that options must come before trying to parse it as a list, because
        // "[options]"
        // itself looks like a list
        if (this->scan("[options]", &token)) {
            result->production = 3;
            success = this->parse(&result->options_shortcut);
        } else if (this->scan("(", &token) || this->scan("[", &token)) {
            if (!this->try_parse_unique(&result->alternation_list)) {
                error(token, error_empty_bracket_paren, "Expected an expression inside");
            }
            bool is_paren = (token[0] == '(');
            rstring_t close_token;
            if (this->scan(is_paren ? ")" : "]", &close_token)) {
                result->production = is_paren ? 1 : 2;
                success = parse(&result->opt_ellipsis);  // never fails
            } else {
                // No closing bracket or paren
                if (is_paren) {
                    error(token, error_missing_close_paren, "Missing ')' to match opening '('");
                } else {
                    error(token, error_missing_close_bracket, "Missing ']' to match opening '['");
                }
            }
        } else if (this->scan("...", &token)) {
            error(token, error_leading_ellipsis, "Ellipsis may only follow an expression");
        } else if (this->peek("|")) {
            // End of an alternation list, nothing to do
            success = false;
        } else {
            // Simple clause
            success = try_parse_unique(&result->simple_clause);
            if (success) {
                result->production = 0;
                parse(&result->opt_ellipsis);  // never fails except on error
            }
        }
        return success;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x1138a
leaq 0x116f0(%rip), %rdx     # 0x22f5e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11706
cmpq $0x0, 0x8(%r15)
je 0x1188f
movw $0x301, 0x60(%r14)      # imm = 0x301
movb $0x1, %bpl
jmp 0x11a84
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x1138a
leaq 0x116c7(%rip), %rdx     # 0x22f68
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11706
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x11907
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x1138a
leaq 0x1168f(%rip), %rdx     # 0x22f6a
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11706
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x11a2f
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x11086
movl %eax, %ebp
testb %al, %al
je 0x11973
movl $0x18, %edi
callq 0x71e0
leaq 0x20(%r14), %rdi
movq %rsp, %r15
movq (%r15), %rcx
movq %rcx, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq %rax, %rsi
callq 0x11c70
movq %r15, %rdi
callq 0xf894
testb %bpl, %bpl
je 0x1197b
jmp 0x11994
movq %rsp, %rdi
callq 0xf894
leaq 0x115ea(%rip), %rcx     # 0x22f6c
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x9, %edx
callq 0x11574
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movl (%rcx,%rax,4), %ebp
cmpl $0x28, %ebp
leaq 0x10857(%rip), %rax     # 0x22202
leaq 0x1286a(%rip), %r15     # 0x2421c
cmoveq %rax, %r15
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x1138a
movq %rsp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x11706
cmpq $0x0, 0x8(%r12)
je 0x119fe
cmpl $0x28, %ebp
sete %al
movb $0x2, %cl
subb %al, %cl
movb %cl, 0x61(%r14)
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11bb6
movl %eax, %ebp
jmp 0x11a84
cmpl $0x28, %ebp
jne 0x11a19
leaq 0x11580(%rip), %rcx     # 0x22f8a
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x7, %edx
jmp 0x11a7d
leaq 0x11327(%rip), %rcx     # 0x22d47
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x8, %edx
jmp 0x11a7d
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x1138a
leaq 0x13095(%rip), %rdx     # 0x24ad6
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11706
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x11a93
leaq 0x1153b(%rip), %rcx     # 0x22fab
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x11574
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x114ac(%rip), %rsi     # 0x22f46
movq %rbx, %rdi
callq 0x11c0e
testb %al, %al
jne 0x11a82
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x11c94
movl %eax, %ebp
testb %al, %al
je 0x11ad0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x11de4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11ae4
movl $0x18, %esi
callq 0x7200
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x11b01
movl $0x18, %esi
callq 0x7200
movq $0x0, 0x8(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11b1d
movl $0x98, %esi
callq 0x7200
testb %bpl, %bpl
je 0x11a84
movb $0x0, 0x61(%r14)
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11bb6
jmp 0x11a84
movq %rax, %rbx
movq %rsp, %rdi
callq 0x11b60
jmp 0x11b57
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf894
movq %rbx, %rdi
callq 0x7360
nop