// File: /workspace/github_cpp_makefile_star2_O3/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 0x10358
leaq 0x106da(%rip), %rdx     # 0x20f0e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x106ea
cmpq $0x0, 0x8(%r15)
je 0x10854
movw $0x301, 0x60(%r14)      # imm = 0x301
movb $0x1, %al
jmp 0x10a39
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x10358
leaq 0x106b2(%rip), %rdx     # 0x20f18
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x106ea
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x108cc
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x10358
leaq 0x1067a(%rip), %rdx     # 0x20f1a
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x106ea
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x109e4
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x10058
testb %al, %al
je 0x1092a
movl $0x18, %edi
callq 0x61e0
leaq 0x20(%r14), %rdi
movq %rsp, %r15
movaps (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq %rax, %rsi
callq 0x10c22
movq %r15, %rdi
callq 0xe816
jmp 0x1094b
movq %rsp, %rdi
callq 0xe816
leaq 0x105e3(%rip), %rcx     # 0x20f1c
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x9, %edx
callq 0x1055c
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movl (%rcx,%rax,4), %ebp
cmpl $0x28, %ebp
leaq 0xf8d0(%rip), %rax      # 0x20232
leaq 0x11863(%rip), %r15     # 0x221cc
cmoveq %rax, %r15
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x10358
movq %rsp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x106ea
cmpq $0x0, 0x8(%r12)
je 0x109b3
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 0x10b68
jmp 0x10a39
cmpl $0x28, %ebp
jne 0x109ce
leaq 0x1057b(%rip), %rcx     # 0x20f3a
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x7, %edx
jmp 0x10a32
leaq 0x10321(%rip), %rcx     # 0x20cf6
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x8, %edx
jmp 0x10a32
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x10358
leaq 0x12090(%rip), %rdx     # 0x22a86
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x106ea
movq 0x10(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x20(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x10a46
leaq 0x10536(%rip), %rcx     # 0x20f5b
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x1055c
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x104a9(%rip), %rsi     # 0x20ef6
movq %rbx, %rdi
callq 0x10bc0
testb %al, %al
jne 0x10a37
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x10c46
movl %eax, %ebp
testb %al, %al
je 0x10a83
movq %rsp, %rsi
movq %r14, %rdi
callq 0x10d96
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x10a97
movl $0x18, %esi
callq 0x6200
movq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10ab4
movl $0x18, %esi
callq 0x6200
movq $0x0, 0x8(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x10ad0
movl $0x98, %esi
callq 0x6200
testb %bpl, %bpl
je 0x10a37
movb $0x0, 0x61(%r14)
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10b68
jmp 0x1084d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x10b12
jmp 0x10b0a
movq %rax, %rbx
movq %rsp, %rdi
callq 0xe816
movq %rbx, %rdi
callq 0x6360