// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/ash_query.cpp
// Function: display(std::ostream&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<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&)
void display(ostream & out, const RowsType & rows, const string & name) {
  RowsType::const_iterator i, e;
  const size_t XX = 4;  // The number of spaces between columns.
  size_t widths[2] = {name.size() + XX, string("Description").size() + XX};

  // Calculate the required widths for each column.
  for (i = rows.begin(), e = rows.end(); i != e; ++i) {
    widths[0] = max(widths[0], XX + (i -> first).size());
    widths[1] = max(widths[1], XX + (i -> second).size());
  }

  // Output the headings and the rows.
  cout << left
       << setw(widths[0]) << name
       << setw(widths[1]) << "Description" << endl;
  for (i = rows.begin(), e = rows.end(); i != e; ++i) {
    cout << left
         << setw(widths[0]) << i -> first
         << setw(widths[1]) << i -> second << endl;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq 0x8(%rdx), %r13
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15907(%rip), %rsi     # 0x7d5fc
leaq 0x1590b(%rip), %rdx     # 0x7d607
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x68de4
movq (%r14), %rdi
movq 0x8(%r14), %rbp
cmpq %r12, %rdi
je 0x67d1a
callq 0x8390
addq $0x4, %r13
addq $0x4, %rbp
movq 0x18(%rbx), %rax
leaq 0x8(%rbx), %r12
cmpq %r12, %rax
je 0x67d57
movq 0x28(%rax), %rcx
movq 0x48(%rax), %rdx
addq $0x4, %rcx
cmpq %rcx, %r13
cmovbeq %rcx, %r13
addq $0x4, %rdx
cmpq %rdx, %rbp
cmovbeq %rdx, %rbp
movq %rax, %rdi
callq 0x8480
jmp 0x67d2a
movq 0x2c252(%rip), %r14     # 0x93fb0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
movl 0x18(%r14,%rcx), %edx
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movslq %r13d, %r13
movq %r13, 0x10(%r14,%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x8470
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movslq %ebp, %rbp
movq %rbp, 0x10(%r15,%rax)
leaq 0x1584f(%rip), %rsi     # 0x7d5fc
movl $0xb, %edx
movq %r15, %rdi
callq 0x8470
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x83c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8250
movq 0x18(%rbx), %rbx
cmpq %r12, %rbx
je 0x67e7c
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r14, %rdi
callq 0x8470
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %rbp, 0x10(%rax,%rcx)
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
movq %rax, %rdi
callq 0x8470
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x83c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8250
movq %rbx, %rdi
callq 0x8480
movq %rax, %rbx
cmpq %r12, %rax
jne 0x67dee
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq