// File: nvanbenschoten[P]total-order-multicast/include/args.h
// Function: args::Group::GetChildDescriptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int) const
std::vector<std::tuple<std::string, std::string, unsigned int>>
  GetChildDescriptions(const std::string &shortPrefix,
                       const std::string &longPrefix,
                       const std::string &shortSeparator,
                       const std::string &longSeparator,
                       const unsigned int indent = 0) const {
    std::vector<std::tuple<std::string, std::string, unsigned int>>
        descriptions;
    for (const auto &child : children) {
      if (const auto group = dynamic_cast<Group *>(child)) {
        // Push that group description on the back if not empty
        unsigned char addindent = 0;
        if (!group->help.empty()) {
          descriptions.emplace_back(group->help, "", indent);
          addindent = 1;
        }
        auto groupDescriptions =
            group->GetChildDescriptions(shortPrefix, longPrefix, shortSeparator,
                                        longSeparator, indent + addindent);
        descriptions.insert(
            std::end(descriptions),
            std::make_move_iterator(std::begin(groupDescriptions)),
            std::make_move_iterator(std::end(groupDescriptions)));
      } else if (const auto named = dynamic_cast<NamedBase *>(child)) {
        const auto description = named->GetDescription(
            shortPrefix, longPrefix, shortSeparator, longSeparator);
        descriptions.emplace_back(std::get<0>(description),
                                  std::get<1>(description), indent);
      }
    }
    return descriptions;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x128(%rbp)
movq %rdi, %rax
movq %rax, -0x120(%rbp)
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movb $0x0, -0x31(%rbp)
callq 0x1c560
movq -0x118(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1bb90
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1bbc0
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1bbf0
testb $0x1, %al
jne 0x1b5ba
jmp 0x1b8cf
leaq -0x48(%rbp), %rdi
callq 0x1bc30
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x130(%rbp)
cmpq $0x0, %rax
je 0x1b602
movq -0x130(%rbp), %rdi
leaq 0x2a097(%rip), %rsi     # 0x45680
leaq 0x2a0d0(%rip), %rdx     # 0x456c0
xorl %eax, %eax
movl %eax, %ecx
callq 0x64d0
movq %rax, -0x138(%rbp)
jmp 0x1b60d
xorl %eax, %eax
movq %rax, -0x138(%rbp)
jmp 0x1b60d
movq -0x138(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x1b7c8
movb $0x0, -0x61(%rbp)
movq -0x60(%rbp), %rdi
addq $0x10, %rdi
callq 0x6700
testb $0x1, %al
jne 0x1b670
movq -0x128(%rbp), %rdi
movq -0x60(%rbp), %rsi
addq $0x10, %rsi
leaq 0x1463d(%rip), %rdx     # 0x2fc8b
leaq 0x10(%rbp), %rcx
callq 0x1c580
jmp 0x1b659
movb $0x1, -0x61(%rbp)
jmp 0x1b670
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1b8f5
movq -0x60(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
movl 0x10(%rbp), %edi
movzbl -0x61(%rbp), %eax
addl %eax, %edi
movq %rsp, %rax
movl %edi, (%rax)
leaq -0x90(%rbp), %rdi
callq 0x1b530
jmp 0x1b6a0
movq -0x128(%rbp), %rdi
callq 0x1c6c0
movq %rax, -0x140(%rbp)
jmp 0x1b6b5
movq -0x140(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1c6f0
leaq -0x90(%rbp), %rdi
callq 0x1c760
movq %rax, -0x148(%rbp)
jmp 0x1b6eb
movq -0x148(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x1c730
movq %rax, -0x150(%rbp)
jmp 0x1b70e
movq -0x150(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x1c6c0
movq %rax, -0x158(%rbp)
jmp 0x1b731
movq -0x158(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x1c730
movq %rax, -0x160(%rbp)
jmp 0x1b754
movq -0x128(%rbp), %rdi
movq -0x160(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x98(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq -0xb8(%rbp), %rcx
callq 0x1c610
movq %rax, -0x168(%rbp)
jmp 0x1b78c
movq -0x168(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x1ba90
jmp 0x1b8bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x1ba90
jmp 0x1b8f5
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x170(%rbp)
cmpq $0x0, %rax
je 0x1b803
movq -0x170(%rbp), %rdi
leaq 0x29e96(%rip), %rsi     # 0x45680
leaq 0x29e9f(%rip), %rdx     # 0x45690
xorl %eax, %eax
movl %eax, %ecx
callq 0x64d0
movq %rax, -0x178(%rbp)
jmp 0x1b80e
xorl %eax, %eax
movq %rax, -0x178(%rbp)
jmp 0x1b80e
movq -0x178(%rbp), %rax
movq %rax, -0xd0(%rbp)
cmpq $0x0, -0xd0(%rbp)
je 0x1b8bd
movq -0xd0(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
movq (%rsi), %rax
movq 0x18(%rax), %rax
leaq -0x110(%rbp), %rdi
callq *%rax
jmp 0x1b853
leaq -0x110(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x1c820
movq -0x188(%rbp), %rdi
movq %rax, -0x180(%rbp)
callq 0x1c840
movq -0x128(%rbp), %rdi
movq -0x180(%rbp), %rsi
movq %rax, %rdx
leaq 0x10(%rbp), %rcx
callq 0x1c790
jmp 0x1b895
leaq -0x110(%rbp), %rdi
callq 0x1c860
jmp 0x1b8bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x1c860
jmp 0x1b8f5
jmp 0x1b8bf
jmp 0x1b8c1
leaq -0x48(%rbp), %rdi
callq 0x1bc50
jmp 0x1b5a4
movb $0x1, -0x31(%rbp)
testb $0x1, -0x31(%rbp)
jne 0x1b8e5
movq -0x128(%rbp), %rdi
callq 0x1ba90
movq -0x120(%rbp), %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq -0x128(%rbp), %rdi
callq 0x1ba90
movq -0x70(%rbp), %rdi
callq 0x67a0
nopw (%rax,%rax)