// File: redpony[P]cpyp/./cpyp/crp_table_manager.h
// Function: std::ostream& cpyp::operator<<<1u>(std::ostream&, cpyp::crp_table_manager<1u> const&)
std::ostream& operator<<(std::ostream& os, const crp_table_manager<N>& tm) {
  os << '[' << tm.num_customers() << " customer" << (tm.num_customers() == 1 ? "" : "s")
     << " at " << tm.num_tables() << " table" << (tm.num_tables() == 1 ? "" : "s") << " |||";
  bool first = true;
  for (unsigned floor = 0; floor < N; ++floor) {
    os << " floor:" << (floor+1) << '/' << N << ' ';
    if (tm.h[floor].begin() == tm.h[floor].end()) { os << "EMPTY"; }
    for (auto& table : tm.h[floor]) {
      if (first) first = false; else os << "  --  ";
      os << '(' << table.first << ") x " << table.second;
    }
  }
  return os << ']';
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq 0xa0(%rsp), %rdi
movl $0x5b, %esi
callq 0x21c0
movq %rax, (%rsp)
movq 0x98(%rsp), %rdi
callq 0xc9f0
movq (%rsp), %rdi
movl %eax, %esi
callq 0x2200
movq %rax, %rdi
leaq 0x1648(%rip), %rsi      # 0x15c37
callq 0x2180
movq %rax, 0x8(%rsp)
movq 0x98(%rsp), %rdi
callq 0xc9f0
movq 0x8(%rsp), %rdi
movl %eax, %ecx
leaq 0x13ba(%rip), %rsi      # 0x159ce
leaq 0xddc(%rip), %rax       # 0x153f7
cmpl $0x1, %ecx
cmoveq %rax, %rsi
callq 0x2180
movq %rax, %rdi
leaq 0x1610(%rip), %rsi      # 0x15c41
callq 0x2180
movq %rax, 0x10(%rsp)
movq 0x98(%rsp), %rdi
callq 0xb2e0
movq 0x10(%rsp), %rdi
movl %eax, %esi
callq 0x2200
movq %rax, %rdi
leaq 0x15e8(%rip), %rsi      # 0x15c46
callq 0x2180
movq %rax, 0x18(%rsp)
movq 0x98(%rsp), %rdi
callq 0xb2e0
movq 0x18(%rsp), %rdi
movl %eax, %ecx
leaq 0x134b(%rip), %rsi      # 0x159ce
leaq 0xd6d(%rip), %rax       # 0x153f7
cmpl $0x1, %ecx
cmoveq %rax, %rsi
callq 0x2180
movq %rax, %rdi
leaq 0x15ad(%rip), %rsi      # 0x15c4d
callq 0x2180
movb $0x1, 0x97(%rsp)
movl $0x0, 0x90(%rsp)
cmpl $0x1, 0x90(%rsp)
jae 0x14877
movq 0xa0(%rsp), %rdi
leaq 0x157d(%rip), %rsi      # 0x15c52
callq 0x2180
movq %rax, %rdi
movl 0x90(%rsp), %esi
addl $0x1, %esi
callq 0x2200
movq %rax, %rdi
movl $0x2f, %esi
callq 0x21c0
movq %rax, %rdi
movl $0x1, %esi
callq 0x2200
movq %rax, %rdi
movl $0x20, %esi
callq 0x21c0
movq 0x98(%rsp), %rsi
addq $0x8, %rsi
movl 0x90(%rsp), %eax
shlq $0x7, %rax
addq %rax, %rsi
leaq 0x78(%rsp), %rdi
callq 0xaba0
movq 0x98(%rsp), %rsi
addq $0x8, %rsi
movl 0x90(%rsp), %eax
shlq $0x7, %rax
addq %rax, %rsi
leaq 0x60(%rsp), %rdi
callq 0xabd0
leaq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xb110
testb $0x1, %al
jne 0x14770
jmp 0x14784
movq 0xa0(%rsp), %rdi
leaq 0x14db(%rip), %rsi      # 0x15c5a
callq 0x2180
movq 0x98(%rsp), %rax
addq $0x8, %rax
movl 0x90(%rsp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0xaba0
movq 0x58(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0xabd0
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xac00
testb $0x1, %al
jne 0x147d9
jmp 0x1485f
leaq 0x40(%rsp), %rdi
callq 0xac30
movq %rax, 0x20(%rsp)
testb $0x1, 0x97(%rsp)
je 0x147fc
movb $0x0, 0x97(%rsp)
jmp 0x14810
movq 0xa0(%rsp), %rdi
leaq 0x1455(%rip), %rsi      # 0x15c60
callq 0x2180
movq 0xa0(%rsp), %rdi
movl $0x28, %esi
callq 0x21c0
movq %rax, %rdi
movq 0x20(%rsp), %rax
movl (%rax), %esi
callq 0x2200
movq %rax, %rdi
leaq 0x142c(%rip), %rsi      # 0x15c67
callq 0x2180
movq %rax, %rdi
movq 0x20(%rsp), %rax
movl 0x4(%rax), %esi
callq 0x2200
leaq 0x40(%rsp), %rdi
callq 0xac80
jmp 0x147c1
jmp 0x14861
movl 0x90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x90(%rsp)
jmp 0x146b8
movq 0xa0(%rsp), %rdi
movl $0x5d, %esi
callq 0x21c0
addq $0xa8, %rsp
retq