// File: /workspace/github_cpp_makefile_star2_O2/BU-DiSC[P]BF-Shared-Hashing/./args.hxx
// Function: std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> args::Wrap<std::istream_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char, std::char_traits<char>, long>>(std::istream_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char, std::char_traits<char>, long>, std::istream_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char, std::char_traits<char>, long>, unsigned long, unsigned long, unsigned long)
inline std::vector<std::string> Wrap(It begin,
                                         It end,
                                         const std::string::size_type width,
                                         std::string::size_type firstlinewidth = 0,
                                         std::string::size_type firstlineindent = 0)
    {
        std::vector<std::string> output;
        std::string line(firstlineindent, ' ');
        bool empty = true;

        if (firstlinewidth == 0)
        {
            firstlinewidth = width;
        }

        auto currentwidth = firstlinewidth;

        for (auto it = begin; it != end; ++it)
        {
            if (it->empty())
            {
                continue;
            }

            if (*it == "\n")
            {
                if (!empty)
                {
                    output.push_back(line);
                    line.clear();
                    empty = true;
                    currentwidth = width;
                }

                continue;
            }

            auto itemsize = Glyphs(*it);
            if ((line.length() + 1 + itemsize) > currentwidth)
            {
                if (!empty)
                {
                    output.push_back(line);
                    line.clear();
                    empty = true;
                    currentwidth = width;
                }
            }

            if (itemsize > 0)
            {
                if (!empty)
                {
                    line += ' ';
                }

                line += *it;
                empty = false;
            }
        }

        if (!empty)
        {
            output.push_back(line);
        }

        return output;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r13
movq %rcx, 0x10(%rsp)
movq %rdx, %r15
movq %rsi, %rbx
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, 0x8(%rsp)
movups %xmm0, (%rdi)
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x18(%rsp), %rdi
pushq $0x20
popq %rdx
movq %r9, %rsi
callq 0x6470
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x1c74c
testq %r13, %r13
cmoveq 0x10(%rsp), %r13
movb $0x1, %bl
leaq 0x40(%rsp), %r12
leaq 0x38(%rsp), %rbp
movb 0x60(%rsp), %al
cmpb 0x28(%r15), %al
jne 0x1c5d8
testb %al, %al
je 0x1c69d
movq 0x38(%rsp), %rax
cmpq (%r15), %rax
je 0x1c69d
cmpq $0x0, 0x48(%rsp)
je 0x1c690
movq %r12, %rdi
leaq 0x6a6f(%rip), %rsi      # 0x2305d
callq 0x192de
testb %al, %al
je 0x1c626
testb $0x1, %bl
jne 0x1c690
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x74c4
andq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
movb $0x1, %bl
movq 0x10(%rsp), %r13
jmp 0x1c690
movq %r12, %rdi
callq 0x1c526
movq %rax, %r14
movq 0x20(%rsp), %rax
addq %r14, %rax
incq %rax
cmpq %r13, %rax
jbe 0x1c66a
testb $0x1, %bl
jne 0x1c66a
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x74c4
andq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
movb $0x1, %bl
movq 0x10(%rsp), %r13
testq %r14, %r14
je 0x1c690
testb $0x1, %bl
jne 0x1c681
leaq 0x18(%rsp), %rdi
pushq $0x20
popq %rsi
callq 0x6380
leaq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x6740
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x1c778
jmp 0x1c5b8
movq %r12, %rdi
callq 0x61f0
testb $0x1, %bl
jne 0x1c6b9
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x74c4
leaq 0x18(%rsp), %rdi
callq 0x61f0
movq 0x8(%rsp), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1c6d9
movq %rax, %rbx
jmp 0x1c6f0
movq %rax, %rbx
jmp 0x1c6fa
jmp 0x1c6e5
movq %rax, %rbx
movq %r12, %rdi
callq 0x61f0
leaq 0x18(%rsp), %rdi
callq 0x61f0
movq 0x8(%rsp), %rdi
callq 0x739e
movq %rbx, %rdi
callq 0x66b0