// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
movq %rsi, %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x5470
cmpq $-0x1, %rax
je 0x9c86
movq %rax, %r13
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x50b0
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x9b99
leaq 0x60(%rsp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x9c12
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
incq %r13
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r12, %rsi
movq %r13, %rdx
callq 0x5380
leaq 0x1d0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x9b99
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9c58
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x8(%rbp), %rsi
movq 0x1d0(%rsp), %rdx
movq 0x1d8(%rsp), %rcx
movq %rbp, %rdi
callq 0x110c0
leaq 0x1d0(%rsp), %rdi
callq 0xbaa0
jmp 0x9d0a
testq %r14, %r14
cmoveq %r15, %r14
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x55d0
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
leaq 0x1d0(%rsp), %rdi
callq 0x5490
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0x9d1f
movq 0x122b6(%rip), %rsi     # 0x1bf88
leaq 0x1d0(%rsp), %rdi
callq 0x51d0
leaq 0x240(%rsp), %rdi
callq 0x5120
movq 0x12285(%rip), %rsi     # 0x1bf78
leaq 0x50(%rsp), %rdi
callq 0x54e0
leaq 0xc8(%rsp), %rdi
callq 0x5120
movq %rbp, %rax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x48(%rsp)
movq %rbp, (%rsp)
leaq 0x18(%rsp), %r15
xorl %r13d, %r13d
leaq 0x28(%rsp), %rbp
movq %r15, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5450
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9dd3
movq 0x8(%rsp), %rcx
xorl %edx, %edx
xorl %ebx, %ebx
movb (%rcx,%rdx), %sil
andb $-0x40, %sil
xorl %edi, %edi
negb %sil
setno %dil
addq %rdi, %rbx
incq %rdx
cmpq %rdx, %rax
jne 0x9d6a
leaq (%rbx,%r13), %rax
incq %rax
cmpq %r14, %rax
seta %al
testq %r13, %r13
setne %cl
testb %cl, %al
jne 0x9ded
testq %rbx, %rbx
je 0x9e90
testq %r13, %r13
je 0x9ebd
movl $0x1, %edx
leaq 0x1d0(%rsp), %rdi
leaq 0xae8d(%rip), %rsi      # 0x14c50
callq 0x53f0
incq %r13
movq %r13, %r12
jmp 0x9e73
leaq 0x1(%r13), %rax
cmpq %r14, %rax
setbe %al
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x9e90
xorl %ebx, %ebx
movq %rbp, %rdi
leaq 0x1d8(%rsp), %r14
movq %r14, %rsi
callq 0x5580
leaq 0x38(%rsp), %r12
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0xd480
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e28
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
movq %r12, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5530
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e5d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x48(%rsp), %r14
movl $0x0, %r12d
movl $0x0, %r13d
testq %rbx, %rbx
je 0x9e90
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x53f0
addq %rbx, %r12
movq %r12, %r13
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9ea7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0x9d35
jmp 0x9ec2
xorl %r12d, %r12d
jmp 0x9e73
testq %r13, %r13
movq (%rsp), %rbp
je 0x9ccb
leaq 0x1d8(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5580
leaq 0x8(%rsp), %rsi
movq %rbp, %rdi
callq 0xd480
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9ccb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9ccb
jmp 0x9fae
movq %rax, %r14
jmp 0x9fc8
movq %rbp, (%rsp)
movq %rax, %r14
jmp 0x9fe9
movq %rax, %r14
leaq 0x1d0(%rsp), %rdi
callq 0xbaa0
jmp 0x9f58
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9f58
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9f58
movq %rax, %r14
movq %rbp, %rdi
callq 0xbaa0
jmp 0xa010
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa010
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0xa010
jmp 0x9f90
jmp 0x9fae
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x9fb1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9fb1
jmp 0x9fae
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9fc8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x11fb9(%rip), %rsi     # 0x1bf88
leaq 0x1d0(%rsp), %rdi
callq 0x51d0
leaq 0x240(%rsp), %rdi
callq 0x5120
movq (%rsp), %rdi
callq 0xbaa0
movq 0x11f7f(%rip), %rsi     # 0x1bf78
leaq 0x50(%rsp), %rdi
callq 0x54e0
leaq 0xc8(%rsp), %rdi
callq 0x5120
movq %r14, %rdi
callq 0x5650