// File: /workspace/github_cpp_makefile_star2_O2/nvanbenschoten[P]total-order-multicast/include/args.h
// Function: args::Wrap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, unsigned long)
std::vector<std::string> Wrap(const std::string &in,
                              const std::string::size_type width,
                              std::string::size_type firstlinewidth = 0) {
  // Preserve existing line breaks
  const auto newlineloc = in.find('\n');
  if (newlineloc != in.npos) {
    auto first = Wrap(std::string(in, 0, newlineloc), width);
    auto second = Wrap(std::string(in, newlineloc + 1), width);
    first.insert(std::end(first), std::make_move_iterator(std::begin(second)),
                 std::make_move_iterator(std::end(second)));
    return first;
  }
  if (firstlinewidth == 0) {
    firstlinewidth = width;
  }
  auto currentwidth = firstlinewidth;

  std::istringstream stream(in);
  std::vector<std::string> output;
  std::ostringstream line;
  std::string::size_type linesize = 0;
  while (stream) {
    std::string item;
    stream >> item;
    auto itemsize = Glyphs(item);
    if ((linesize + 1 + itemsize) > currentwidth) {
      if (linesize > 0) {
        output.push_back(line.str());
        line.str(std::string());
        linesize = 0;
        currentwidth = width;
      }
    }
    if (itemsize > 0) {
      if (linesize) {
        ++linesize;
        line << " ";
      }
      line << item;
      linesize += itemsize;
    }
  }
  if (linesize > 0) {
    output.push_back(line.str());
  }
  return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r13
pushq $0xa
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5450
cmpq $-0x1, %rax
je 0x9793
movq %rax, %r14
leaq 0x1c8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x50a0
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x96c3
leaq 0x1c8(%rsp), %rdi
callq 0x56f8
incq %r14
leaq 0x1c8(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x5370
leaq 0x50(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x96c3
leaq 0x1c8(%rsp), %rdi
callq 0x56f8
movq 0x8(%r13), %rsi
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq %r13, %rdi
callq 0xace4
leaq 0x50(%rsp), %rdi
callq 0xad04
jmp 0x992c
leaq 0x1c8(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x55b0
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movq %r13, (%rsp)
andq $0x0, 0x10(%r13)
leaq 0x50(%rsp), %rdi
callq 0x5470
testq %r12, %r12
movq %rbp, 0x28(%rsp)
cmoveq %rbp, %r12
xorl %r13d, %r13d
leaq 0x8(%rsp), %rbp
leaq 0x30(%rsp), %rbx
movq 0x1c8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x1e8(%rsp,%rax)
jne 0x98e6
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x1c8(%rsp), %rdi
movq %rbp, %rsi
callq 0x5420
movq %rbp, %rdi
callq 0x9698
movq %rax, %r14
addq %r13, %rax
incq %rax
cmpq %r12, %rax
seta %al
testq %r13, %r13
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x98a0
movq %rbx, %rdi
leaq 0x58(%rsp), %rsi
callq 0x5540
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0xc058
movq %rbx, %rdi
callq 0x56f8
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
andq $0x0, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x5500
movq %rbx, %rdi
callq 0x56f8
movq 0x28(%rsp), %r12
movl $0x0, %r15d
movl $0x0, %r13d
testq %r14, %r14
jne 0x98c6
jmp 0x98d9
testq %r14, %r14
je 0x98d9
testq %r13, %r13
je 0x98c3
leaq 0x50(%rsp), %rdi
leaq 0x93af(%rip), %rsi      # 0x12c65
callq 0x5340
incq %r13
movq %r13, %r15
jmp 0x98c6
xorl %r15d, %r15d
leaq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x5310
addq %r14, %r15
movq %r15, %r13
movq %rbp, %rdi
callq 0x56f8
jmp 0x97da
testq %r13, %r13
movq (%rsp), %r13
je 0x9915
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5540
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0xc058
leaq 0x8(%rsp), %rdi
callq 0x56f8
leaq 0x50(%rsp), %rdi
callq 0x50b0
leaq 0x1c8(%rsp), %rdi
callq 0x5190
movq %r13, %rax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x99a2
movq %rax, %rbx
jmp 0x99af
movq %rax, %rbx
jmp 0x99b9
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xad04
jmp 0x9971
movq %rax, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x56f8
jmp 0x9971
movq %rax, %rbx
movq %r13, %rdi
callq 0xad04
jmp 0x99cf
movq %rax, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x56f8
jmp 0x99cf
jmp 0x9991
jmp 0x99a2
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x56f8
jmp 0x99a5
jmp 0x99a2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x56f8
leaq 0x50(%rsp), %rdi
callq 0x50b0
movq (%rsp), %rdi
callq 0xad04
leaq 0x1c8(%rsp), %rdi
callq 0x5190
movq %rbx, %rdi
callq 0x5620