// File: /workspace/github_cpp_makefile_star2_O3/ridiculousfish[P]docopt_fish/docopt_fish.cpp
// Function: docopt_fish::docopt_impl::populate_from_usage(std::vector<docopt_fish::error_t, std::allocator<docopt_fish::error_t>>*)
void populate_from_usage(error_list_t *out_errors) {
        // Distinguish between normal (docopt) and exposition (e.g. description). */
        enum mode_t { mode_normal, mode_exposition } mode = mode_normal;

        // We need to parse the usage spec ranges after all of the Options
        // This is because we need the options to disambiguate some usages
        rstring_list_t usage_specs;

        rstring_t line;
        while (get_next_line(this->usage_storage, &line)) {
            // There are a couple of possibilitise for each line
            //
            // 1. It may have a header like "Usage:". If so, we want to strip that
            //    header, and optionally use it to determine the mode.
            // 2. It may be a usage spec. We can tell because the first word is plain text.
            // 3. It may be an option spec. We can tell because the first character is a dash.
            // 4. It may be a variable spec. We can tell because the first character is a <.
            // 5. It may be just whitespace or empty, and is ignored.
            //
            // Also note that a (nonempty) line indented more than the previous line is
            // considered a continuation of that line.
            rstring_t trimmed_line = line.trim_whitespace();
            const rstring_t header = find_header(trimmed_line);
            if (!header.empty()) {
                // It's a header
                // Set mode based on header, and remove header from line
                // The headers we know about are Usage, Synopsis, Options, and Arguments,
                // all case insensitive
                // Everything else is considered exposition and is ignored
                mode = mode_exposition;
                const char *const keywords[] = {"Usage", "Synopsis", "Options", "Arguments"};
                size_t keyword_count = sizeof keywords / sizeof *keywords;
                for (size_t i = 0; i < keyword_count; i++) {
                    if (header.find_case_insensitive(keywords[i]) != rstring_t::npos) {
                        mode = mode_normal;
                        break;
                    }
                }
                // Remove the header range from the trimmed line
                assert(header.length() <= trimmed_line.length());
                trimmed_line = trimmed_line.substr_from(header.length()).trim_whitespace();
            }

            // Skip exposition or empty lines
            if (mode == mode_exposition || trimmed_line.empty()) {
                continue;
            }

            // Compute the indent. Note that the header is considered part of the indent, so that:
            //
            //
            // Usage: foo
            // bar
            //
            // Here 'foo' is indented more than 'bar'.
            const size_t line_indent = compute_indent(line, trimmed_line);

            // Determine the "line group." That is, this line plus all subsequent
            // nonempty lines
            // that are indented more than this line.
            rstring_t line_group = trimmed_line;
            rstring_t all_consumed_lines = line;
            rstring_t next_line = line;
            while (get_next_line(this->usage_storage, &next_line)) {
                rstring_t trimmed_next_line = next_line.trim_whitespace();
                size_t next_line_indent = compute_indent(next_line, trimmed_next_line);
                if (trimmed_next_line.empty() || next_line_indent <= line_indent) {
                    break;
                }
                line_group = line_group.merge(next_line);
                all_consumed_lines = all_consumed_lines.merge(next_line);
            }

            rstring_t::char_t first_char = line_group.front();
            if (first_char == '-') {
                // It's an option spec
                this->shortcut_options.push_back(
                    parse_one_option_spec(line_group, &this->names_to_metadata, out_errors));

            } else if (first_char == '<') {
                // It's a variable command spec
                rstring_t variable_name = parse_variable_name(&line_group, out_errors);
                if (! variable_name.empty()) {
                    base_metadata_t<rstring_t> *md = &this->names_to_metadata[variable_name];
                    if (!md->command.empty()) {
                        append_token_error(out_errors, line_group,
                                           error_one_variable_multiple_commands,
                                           "Duplicate command for variable");
                    }
                    // remaining part of line is the command
                    md->command = line_group.trim_whitespace();;
                }
            } else if (isalnum(first_char) || first_char == '_') {
                // It's a usage spec. We will come back to this.
                usage_specs.push_back(line_group);

            } else {
                // It's an error
                append_token_error(out_errors, trimmed_line, error_unknown_leader,
                                    "Lines must start with a normal character, "
                                    "less-than sign, or dash.");
                break;
            }

            // Note the line range we consumed, for the next iteration of the loop
            line = all_consumed_lines;
        }

        // Ensure our shortcut options don't have duplicates
        uniqueize_options(&this->shortcut_options, true /* error on duplicates */, out_errors);

        // Now parse our usage_spec_ranges
        this->usages.reserve(usage_specs.size());
        for (const rstring_t &usage_spec : usage_specs) {
            usage_t usage = parse_one_usage(usage_spec, this->shortcut_options, out_errors);
            this->usages.push_back(std::move(usage));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
leaq 0x80(%rsp), %rsi
movq $0x0, 0x78(%rsp)
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rdi, 0x70(%rsp)
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x8810
testb %al, %al
je 0xa4c4
movq 0x70(%rsp), %rax
leaq 0x80(%rax), %rcx
movq %rcx, 0x98(%rsp)
addq $0x50, %rax
movq %rax, 0x1b8(%rsp)
leaq 0x80(%rsp), %r13
leaq 0xa0(%rsp), %rbp
leaq 0x130(%rsp), %rbx
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0xd5b8
xorps %xmm0, %xmm0
movaps %xmm0, 0xe0(%rsp)
movq $0x0, 0xf0(%rsp)
movq 0x58(%rsp), %r14
testq %r14, %r14
je 0x9f72
movq %r15, %rbp
movq 0x50(%rsp), %r12
movq 0x60(%rsp), %rbx
leaq (%rbx,%r12,4), %r15
xorl %r13d, %r13d
movl (%r15,%r13,4), %edi
cmpl $0x20, %edi
je 0x9e85
cmpl $0x3a, %edi
je 0x9ead
callq 0x6210
testl %eax, %eax
je 0x9e8d
incq %r13
cmpq %r14, %r13
jb 0x9e6e
movq %rbp, %r15
leaq 0x80(%rsp), %r13
leaq 0xa0(%rsp), %rbp
leaq 0x130(%rsp), %rbx
jmp 0x9f72
incq %r13
movq %r12, 0xe0(%rsp)
movq %r13, 0xe8(%rsp)
movq %rbx, 0xf0(%rsp)
xorl %ebx, %ebx
movq %rbp, %r15
leaq 0x80(%rsp), %r13
leaq 0xa0(%rsp), %rbp
leaq 0x16f38(%rip), %rax     # 0x20e1c
movslq (%rbx,%rax), %rsi
addq %rax, %rsi
leaq 0xe0(%rsp), %rdi
callq 0xd696
cmpq $-0x1, %rax
jne 0x9f14
addq $0x4, %rbx
cmpq $0x10, %rbx
jne 0x9edd
movl $0x1, %eax
movq %rax, 0x78(%rsp)
jmp 0x9f1d
movq $0x0, 0x78(%rsp)
movq 0xe8(%rsp), %rdx
cmpq 0x58(%rsp), %rdx
leaq 0x130(%rsp), %rbx
ja 0xa5bc
leaq 0x1c0(%rsp), %r14
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
callq 0x8e44
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd5b8
movq 0x140(%rsp), %rax
movq %rax, 0x60(%rsp)
movups 0x130(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
cmpl $0x1, 0x78(%rsp)
je 0xa4b1
movq 0x58(%rsp), %rdx
testq %rdx, %rdx
je 0xa4b1
movq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0x8931
movq %rax, %r14
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movaps 0x50(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0xd0(%rsp)
movaps 0x80(%rsp), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq %rax, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
callq 0x8810
testb %al, %al
je 0xa08f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xd5b8
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq %rbp, %rdi
callq 0x8931
cmpq %r14, %rax
jbe 0xa08f
cmpq $0x0, 0x138(%rsp)
je 0xa08f
leaq 0x1c0(%rsp), %r12
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x8b90
movq 0x1d0(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x1c0(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r12, %rdi
leaq 0xc0(%rsp), %rsi
movq %rbp, %rdx
callq 0x8b90
movq 0x1d0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movups 0x1c0(%rsp), %xmm0
movaps %xmm0, 0xc0(%rsp)
jmp 0x9fdf
movq 0x18(%rsp), %r14
testq %r14, %r14
je 0xa59d
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movl (%rcx,%rax,4), %ebx
cmpl $0x3c, %ebx
je 0xa1ec
cmpl $0x2d, %ebx
jne 0xa279
xorps %xmm0, %xmm0
movups %xmm0, 0x22c(%rsp)
movaps %xmm0, 0x220(%rsp)
movaps %xmm0, 0x210(%rsp)
movaps %xmm0, 0x200(%rsp)
movaps %xmm0, 0x1f0(%rsp)
movaps %xmm0, 0x1e0(%rsp)
movaps %xmm0, 0x1d0(%rsp)
movaps %xmm0, 0x1c0(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x16bde(%rip), %rsi     # 0x20ce9
callq 0xdc54
leaq 0x130(%rsp), %rbx
cmpq %r14, %rax
cmovbq %rax, %r14
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x8e44
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
callq 0xd5b8
cmpq $0x0, 0x120(%rsp)
je 0xa2ef
leaq 0x118(%rsp), %rdi
leaq 0x16b8f(%rip), %rsi     # 0x20cec
callq 0xd696
cmpq $-0x1, %rax
je 0xa2ef
addq $0x9, %rax
leaq 0x240(%rsp), %rdi
leaq 0x118(%rsp), %rsi
movq %rax, %rdx
callq 0x8e44
movq %rbx, %rdi
leaq 0x240(%rsp), %rsi
callq 0xd5b8
movq %rbx, %rdi
leaq 0x1802a(%rip), %rsi     # 0x221cc
callq 0xdc54
cmpq $-0x1, %rax
je 0xa2d1
cmpq 0x138(%rsp), %rax
ja 0xa5db
movq 0x130(%rsp), %rcx
movq 0x140(%rsp), %rdx
movq %rcx, 0x220(%rsp)
movq %rax, 0x228(%rsp)
movq %rdx, 0x230(%rsp)
jmp 0xa2ef
leaq 0x130(%rsp), %rbx
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x6c25
cmpq $0x0, 0x138(%rsp)
je 0xa491
movq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0xd70e
movq %rax, %r14
cmpq $0x0, 0x8(%rax)
je 0xa24a
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movl $0xc, %edx
leaq 0x16863(%rip), %rcx     # 0x20aa8
callq 0x6bd4
leaq 0x1c0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xd5b8
movq 0x1d0(%rsp), %rax
movq %rax, 0x10(%r14)
movups 0x1c0(%rsp), %xmm0
movups %xmm0, (%r14)
jmp 0xa491
movl %ebx, %edi
callq 0x6210
cmpl $0x5f, %ebx
je 0xa28d
testl %eax, %eax
je 0xa57d
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xa2b5
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsi)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x18, 0x38(%rsp)
jmp 0xa46a
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xe3ae
leaq 0x130(%rsp), %rbx
jmp 0xa491
movq 0x130(%rsp), %rsi
movq 0x8(%rsp), %rdi
movl $0xa, %edx
leaq 0x16a0c(%rip), %rcx     # 0x20cf6
callq 0x6bd4
cmpq 0x18(%rsp), %r14
ja 0xa5db
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x130(%rsp)
movq %r14, 0x138(%rsp)
movq %rcx, 0x140(%rsp)
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
callq 0xd5b8
cmpq $0x0, 0x108(%rsp)
je 0xa3f1
movq 0x100(%rsp), %rsi
movq 0x110(%rsp), %rax
cmpl $0x2d, (%rax,%rsi,4)
jne 0xa3db
xorps %xmm0, %xmm0
movups %xmm0, 0x19c(%rsp)
movaps %xmm0, 0x190(%rsp)
movaps %xmm0, 0x180(%rsp)
movaps %xmm0, 0x170(%rsp)
movaps %xmm0, 0x160(%rsp)
movaps %xmm0, 0x150(%rsp)
movaps %xmm0, 0x140(%rsp)
movaps %xmm0, 0x130(%rsp)
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x685e
testb %al, %al
je 0xa3f1
leaq 0x1c0(%rsp), %rdi
movq %rbx, %rsi
callq 0xdccc
leaq 0x240(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xdee0
jmp 0xa32c
movq 0x8(%rsp), %rdi
movl $0x5, %edx
leaq 0x1692b(%rip), %rcx     # 0x20d17
callq 0x6bd4
cmpq $0x0, 0x120(%rsp)
je 0xa443
xorl %ebx, %ebx
cmpq $0x0, 0x1c8(%rsp,%rbx)
je 0xa439
leaq (%rsp,%rbx), %rsi
addq $0x1c0, %rsi            # imm = 0x1C0
movq 0x98(%rsp), %rdi
callq 0xd70e
movq 0x128(%rsp), %rcx
movq %rcx, 0x40(%rax)
movups 0x118(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
addq $0x18, %rbx
cmpq $0x48, %rbx
jne 0xa3fe
movq 0x70(%rsp), %rax
movq 0x58(%rax), %rsi
cmpq 0x60(%rax), %rsi
je 0xa474
movl $0x10, %ecx
movq %rsi, %rdi
leaq 0x1c0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
subq $-0x80, 0x58(%rax)
leaq 0x130(%rsp), %rbx
jmp 0xa491
movq 0x1b8(%rsp), %rdi
leaq 0x1c0(%rsp), %rdx
callq 0xdafc
leaq 0x130(%rsp), %rbx
movq 0xd0(%rsp), %rax
movq %rax, 0x90(%rsp)
movaps 0xc0(%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x8810
testb %al, %al
jne 0x9e28
movq 0x70(%rsp), %rbp
leaq 0x50(%rbp), %r14
movq %r14, %rdi
movl $0x1, %esi
movq 0x8(%rsp), %rdx
callq 0x89e8
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %rbp, %rdi
callq 0xd7a2
movq 0x30(%rsp), %r15
movq 0x38(%rsp), %rbx
cmpq %rbx, %r15
je 0xa556
leaq 0x148(%rsp), %r12
leaq 0x130(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
callq 0xf7e0
movq %rbp, %rdi
movq %r13, %rsi
callq 0xe5ca
movq %r12, %rdi
callq 0xe816
addq $0x18, %r15
cmpq %rbx, %r15
jne 0xa522
movq 0x30(%rsp), %r15
testq %r15, %r15
je 0xa56b
movq 0x40(%rsp), %rsi
subq %r15, %rsi
movq %r15, %rdi
callq 0x6200
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x50(%rsp), %rsi
leaq 0x1653e(%rip), %rcx     # 0x20ac7
movq 0x8(%rsp), %rdi
movl $0xf, %edx
callq 0x6bd4
jmp 0xa4c4
leaq 0x16007(%rip), %rdi     # 0x205ab
leaq 0x16010(%rip), %rsi     # 0x205bb
leaq 0x1601f(%rip), %rcx     # 0x205d1
movl $0x7b, %edx
callq 0x6120
leaq 0x16479(%rip), %rdi     # 0x20a3c
leaq 0x15a9a(%rip), %rsi     # 0x20064
leaq 0x16494(%rip), %rcx     # 0x20a65
movl $0x358, %edx            # imm = 0x358
callq 0x6120
leaq 0x161dc(%rip), %rdi     # 0x207be
leaq 0x15fd2(%rip), %rsi     # 0x205bb
leaq 0x1620d(%rip), %rcx     # 0x207fd
movl $0x85, %edx
callq 0x6120
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
movq %rax, %rbx
movq %r12, %rdi
callq 0xe816
jmp 0xa628
jmp 0xa625
jmp 0xa625
jmp 0xa625
jmp 0xa625
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa63f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
movq %rbx, %rdi
callq 0x6360
nop