// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movq %rsi, %r15
movq %rdi, %rbp
movq %rsi, %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x5470
cmpq $-0x1, %rax
je 0x9cae
movq %rax, %r13
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x50b0
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x9bc1
leaq 0x60(%rsp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x9c3a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
incq %r13
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rcx
movq %r15, %rsi
movq %r13, %rdx
callq 0x5380
leaq 0x1d0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x9bc1
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9c80
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x8(%rbp), %rsi
movq 0x1d0(%rsp), %rdx
movq 0x1d8(%rsp), %rcx
movq %rbp, %rdi
callq 0x11250
leaq 0x1d0(%rsp), %rdi
callq 0xba98
jmp 0x9d32
testq %r14, %r14
cmoveq %r12, %r14
leaq 0x50(%rsp), %rdi
movq %r15, %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 0x9d47
movq 0x1228e(%rip), %rsi     # 0x1bf88
leaq 0x1d0(%rsp), %rdi
callq 0x51d0
leaq 0x240(%rsp), %rdi
callq 0x5120
movq 0x1225d(%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 %rbp, 0x8(%rsp)
leaq 0x20(%rsp), %r15
xorl %r13d, %r13d
leaq 0x30(%rsp), %rbp
movq %r15, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5450
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x9dac
movq 0x10(%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 0x9d8e
jmp 0x9dae
xorl %ebx, %ebx
leaq (%rbx,%r13), %rax
incq %rax
cmpq %r14, %rax
seta %al
testq %r13, %r13
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9e3f
movq %rbp, %rdi
leaq 0x1d8(%rsp), %r14
movq %r14, %rsi
callq 0x5580
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
leaq 0x40(%rsp), %r13
callq 0xd484
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x9e04
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5370
movq %r13, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5530
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x9e39
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5370
movq %r12, %r14
xorl %r13d, %r13d
testq %rbx, %rbx
je 0x9e84
testq %r13, %r13
je 0x9e67
movl $0x1, %edx
leaq 0x1d0(%rsp), %rdi
leaq 0xadf3(%rip), %rsi      # 0x14c50
callq 0x53f0
incq %r13
jmp 0x9e6a
xorl %r13d, %r13d
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x53f0
addq %rbx, %r13
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e9b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0x9d59
testq %r13, %r13
movq 0x8(%rsp), %rbp
je 0x9cf3
leaq 0x1d8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x5580
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0xd484
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x9cf3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9cf3
jmp 0x9f9d
movq %rax, %r14
jmp 0x9fb7
movq %rbp, 0x8(%rsp)
movq %rax, %r14
jmp 0x9fd8
movq %rax, %r14
leaq 0x1d0(%rsp), %rdi
callq 0xba98
jmp 0x9f47
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9f47
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9f47
movq %rax, %r14
movq %rbp, %rdi
callq 0xba98
jmp 0xa000
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa000
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0xa000
jmp 0x9f7f
jmp 0x9f9d
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x9fa0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5370
jmp 0x9fa0
jmp 0x9f9d
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x9fb7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5370
movq 0x11fca(%rip), %rsi     # 0x1bf88
leaq 0x1d0(%rsp), %rdi
callq 0x51d0
leaq 0x240(%rsp), %rdi
callq 0x5120
movq 0x8(%rsp), %rdi
callq 0xba98
movq 0x11f8f(%rip), %rsi     # 0x1bf78
leaq 0x50(%rsp), %rdi
callq 0x54e0
leaq 0xc8(%rsp), %rdi
callq 0x5120
movq %r14, %rdi
callq 0x5650