// File: /workspace/github_cpp_makefile_star2_O1/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, 0x50(%rsp)
xorl %eax, %eax
movq %rax, 0x60(%rsp)
leaq 0xe0(%rsp), %rsi
movq $0x0, 0x70(%rsp)
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rdi, 0x68(%rsp)
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x988b
testb %al, %al
je 0xb469
movq 0x68(%rsp), %rax
leaq 0x80(%rax), %r14
addq $0x50, %rax
movq %rax, 0x188(%rsp)
leaq 0x30(%rsp), %r12
leaq 0xe0(%rsp), %r13
movq %r14, 0x78(%rsp)
movq %r12, %rdi
movq %r13, %rbp
movq %r13, %rsi
callq 0xe606
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq 0x38(%rsp), %rbx
testq %rbx, %rbx
je 0xae1d
movq 0x30(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rax, 0x198(%rsp)
movq %rcx, 0x190(%rsp)
leaq (%rax,%rcx,4), %r14
xorl %r13d, %r13d
movl (%r14,%r13,4), %edi
cmpl $0x20, %edi
je 0xaddf
cmpl $0x3a, %edi
je 0xade9
callq 0x7210
incq %r13
cmpq %rbx, %r13
jae 0xae1d
testl %eax, %eax
jne 0xadbe
jmp 0xae1d
incq %r13
cmpq %rbx, %r13
jb 0xadbe
jmp 0xae1d
incq %r13
cmpq %rbx, %r13
ja 0xb57d
movq 0x190(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, 0x88(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x88(%rsp)
movq %rbp, %r13
je 0xaec4
xorl %ebx, %ebx
leaq 0x18034(%rip), %rax     # 0x22e6c
movslq (%rbx,%rax), %rsi
addq %rax, %rsi
leaq 0x80(%rsp), %rdi
callq 0xe6da
cmpq $-0x1, %rax
jne 0xae68
addq $0x4, %rbx
cmpq $0x10, %rbx
jne 0xae31
movl $0x1, %eax
movq %rax, 0x70(%rsp)
jmp 0xae71
movq $0x0, 0x70(%rsp)
movq 0x88(%rsp), %rdx
cmpq 0x38(%rsp), %rdx
leaq 0x100(%rsp), %rbx
ja 0xb53f
leaq 0x1a0(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x9eb4
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe606
movq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
movups 0x100(%rsp), %xmm0
movaps %xmm0, 0x30(%rsp)
cmpl $0x1, 0x70(%rsp)
je 0xb456
cmpq $0x0, 0x38(%rsp)
je 0xb456
movq %r13, %rdi
movq %r12, %rsi
callq 0x99ae
movq %rax, %rbx
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movaps 0x30(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movaps 0xe0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq %rax, 0x230(%rsp)
movaps %xmm0, 0x220(%rsp)
leaq 0x220(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x988b
testb %al, %al
je 0xaff4
leaq 0x100(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xe606
movq %r12, %rdi
movq %r14, %rsi
callq 0x99ae
cmpq $0x0, 0x108(%rsp)
setne %cl
cmpq %rbx, %rax
seta %r14b
andb %cl, %r14b
je 0xaff4
leaq 0x1a0(%rsp), %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0x9c12
movq 0x1b0(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x1a0(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %rdi
leaq 0xb0(%rsp), %rsi
movq %r12, %rdx
callq 0x9c12
movq 0x1b0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movups 0x1a0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
testb %r14b, %r14b
leaq 0x220(%rsp), %r12
jne 0xaf35
movq 0x18(%rsp), %rbx
testq %rbx, %rbx
je 0xb55e
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movl (%rcx,%rax,4), %r12d
cmpl $0x3c, %r12d
je 0xb174
cmpl $0x2d, %r12d
jne 0xb205
cmpl $0x2d, (%rcx,%rax,4)
leaq 0x30(%rsp), %r12
jne 0xb59c
xorps %xmm0, %xmm0
movups %xmm0, 0x20c(%rsp)
movaps %xmm0, 0x200(%rsp)
movaps %xmm0, 0x1f0(%rsp)
movaps %xmm0, 0x1e0(%rsp)
movaps %xmm0, 0x1d0(%rsp)
movaps %xmm0, 0x1c0(%rsp)
movaps %xmm0, 0x1b0(%rsp)
movaps %xmm0, 0x1a0(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x17cb8(%rip), %rsi     # 0x22d3a
callq 0xecc2
movq 0x78(%rsp), %r14
cmpq %rbx, %rax
cmovbq %rax, %rbx
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x9eb4
leaq 0xc8(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xe606
cmpq $0x0, 0xd0(%rsp)
je 0xb27f
leaq 0xc8(%rsp), %rdi
leaq 0x17c62(%rip), %rsi     # 0x22d3d
callq 0xe6da
cmpq $-0x1, %rax
je 0xb27f
addq $0x9, %rax
leaq 0x240(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
movq %rax, %rdx
callq 0x9eb4
leaq 0x100(%rsp), %rdi
leaq 0x240(%rsp), %rsi
callq 0xe606
leaq 0x100(%rsp), %rdi
leaq 0x190f2(%rip), %rsi     # 0x2421c
callq 0xecc2
cmpq $-0x1, %rax
je 0xb261
cmpq 0x108(%rsp), %rax
ja 0xb57d
movq 0x100(%rsp), %rcx
movq 0x110(%rsp), %rdx
movq %rcx, 0x200(%rsp)
movq %rax, 0x208(%rsp)
movq %rdx, 0x210(%rsp)
jmp 0xb27f
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x7cb5
cmpq $0x0, 0x108(%rsp)
movq 0x78(%rsp), %r14
leaq 0x30(%rsp), %r12
je 0xb436
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe752
movq %rax, %rbx
cmpq $0x0, 0x8(%rax)
je 0xb1d7
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0xc, %edx
leaq 0x178a6(%rip), %rcx     # 0x22a78
callq 0x7c61
leaq 0x1a0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe606
movq 0x1b0(%rsp), %rax
movq %rax, 0x10(%rbx)
movups 0x1a0(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0xb436
movl %r12d, %edi
callq 0x7210
cmpl $0x5f, %r12d
je 0xb21b
testl %eax, %eax
je 0xb51f
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0xb248
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsi)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x18, 0x58(%rsp)
leaq 0x30(%rsp), %r12
jmp 0xb436
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xf40c
leaq 0x30(%rsp), %r12
jmp 0xb436
movq 0x8(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movl $0xa, %edx
leaq 0x17acd(%rip), %rcx     # 0x22d47
callq 0x7c61
cmpq 0x18(%rsp), %rbx
ja 0xb57d
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x100(%rsp)
movq %rbx, 0x108(%rsp)
movq %rcx, 0x110(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xe606
cmpq $0x0, 0xa0(%rsp)
je 0xb3ab
movq 0x98(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpl $0x2d, (%rcx,%rax,4)
jne 0xb38d
xorps %xmm0, %xmm0
movups %xmm0, 0x16c(%rsp)
movaps %xmm0, 0x160(%rsp)
movaps %xmm0, 0x150(%rsp)
movaps %xmm0, 0x140(%rsp)
movaps %xmm0, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x787e
movl %eax, %ebx
testb %al, %al
je 0xb377
leaq 0x1a0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xed3a
leaq 0x240(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xef62
cmpq $0x0, 0xa0(%rsp)
setne %al
testb %al, %bl
jne 0xb2d0
jmp 0xb3ab
movq 0x8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movl $0x5, %edx
leaq 0x179c2(%rip), %rcx     # 0x22d68
callq 0x7c61
cmpq $0x0, 0xd0(%rsp)
je 0xb3f8
xorl %ebx, %ebx
cmpq $0x0, 0x1a8(%rsp,%rbx)
je 0xb3ee
leaq (%rsp,%rbx), %rsi
addq $0x1a0, %rsi            # imm = 0x1A0
movq %r14, %rdi
callq 0xe752
movq 0xd8(%rsp), %rcx
movq %rcx, 0x40(%rax)
movups 0xc8(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
addq $0x18, %rbx
cmpq $0x48, %rbx
jne 0xb3b8
movq 0x68(%rsp), %rax
movq 0x58(%rax), %rsi
cmpq 0x60(%rax), %rsi
je 0xb421
movl $0x10, %ecx
movq %rsi, %rdi
leaq 0x1a0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
subq $-0x80, 0x58(%rax)
jmp 0xb436
movq 0x188(%rsp), %rdi
leaq 0x1a0(%rsp), %rdx
callq 0xeb6a
movq 0xc0(%rsp), %rax
movq %rax, 0xf0(%rsp)
movaps 0xb0(%rsp), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x988b
testb %al, %al
jne 0xad6a
movq 0x68(%rsp), %rbp
leaq 0x50(%rbp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
movq 0x8(%rsp), %rdx
callq 0x9a6d
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %rbp, %rdi
callq 0xe7e4
movq 0x50(%rsp), %r14
movq 0x58(%rsp), %r13
cmpq %r13, %r14
je 0xb4f6
leaq 0x118(%rsp), %r15
leaq 0x100(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
callq 0x107f8
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf62e
movq %r15, %rdi
callq 0xf894
addq $0x18, %r14
cmpq %r13, %r14
jne 0xb4c7
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xb50d
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17571(%rip), %rcx     # 0x22a97
leaq 0x30(%rsp), %rsi
movq 0x8(%rsp), %rdi
movl $0xf, %edx
callq 0x7c61
jmp 0xb469
leaq 0x174c6(%rip), %rdi     # 0x22a0c
leaq 0x16ae7(%rip), %rsi     # 0x22034
leaq 0x174e1(%rip), %rcx     # 0x22a35
movl $0x358, %edx            # imm = 0x358
callq 0x7120
leaq 0x17016(%rip), %rdi     # 0x2257b
leaq 0x1701f(%rip), %rsi     # 0x2258b
leaq 0x1702e(%rip), %rcx     # 0x225a1
movl $0x7b, %edx
callq 0x7120
leaq 0x1720a(%rip), %rdi     # 0x2278e
leaq 0x17000(%rip), %rsi     # 0x2258b
leaq 0x1723b(%rip), %rcx     # 0x227cd
movl $0x85, %edx
callq 0x7120
leaq 0x17716(%rip), %rdi     # 0x22cb9
leaq 0x16a8a(%rip), %rsi     # 0x22034
leaq 0x17728(%rip), %rcx     # 0x22cd9
movl $0x108, %edx            # imm = 0x108
callq 0x7120
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0xf894
jmp 0xb5ee
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
jmp 0xb5eb
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xb605
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
movq %rbx, %rdi
callq 0x7360
nop