// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/exercises/ex16_56.cc
// Function: main
int main(int argc, char const *argv[])
{
	Sales_data item("978-0590353403", 25, 15.99);
	string fcnName("itemProcess");
	ErrorCode code(42);
	string otherData("invalid ISBN");

	errorMsg(cerr, fcnName, code.num(), otherData, "other", item);
	cerr << endl;

	print(cerr, debug_rep(fcnName), debug_rep(code.num()),
				debug_rep(otherData), debug_rep("otherData"),
				debug_rep(item));
	cerr << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1964(%rip), %rsi      # 0x402e
leaq 0x196b(%rip), %rdx      # 0x403c
leaq -0x40(%rbp), %rdi
callq 0x3098
leaq -0xa0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0x2ffe
movl $0x19, -0x90(%rbp)
movabsq $0x4078fc0000000000, %rax # imm = 0x4078FC0000000000
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x272c
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x40(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x1903(%rip), %rsi      # 0x403d
leaq 0x1907(%rip), %rdx      # 0x4048
callq 0x3098
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x18f3(%rip), %rsi      # 0x4049
leaq 0x18f8(%rip), %rdx      # 0x4055
leaq -0x60(%rbp), %rdi
callq 0x3098
leaq -0x80(%rbp), %rdx
movq $0x2a, (%rdx)
movq 0x3878(%rip), %rbx      # 0x5ff0
leaq 0x18d7(%rip), %r8       # 0x4056
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rcx
leaq -0xb0(%rbp), %r9
movq %rbx, %rdi
callq 0x2b9a
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0x383c(%rip), %rdi      # 0x5ff0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
leaq -0x80(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x24cc
leaq -0x138(%rbp), %rsi
movq $0x2a, (%rsi)
leaq -0x130(%rbp), %rdi
callq 0x2dcf
leaq -0x110(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24cc
leaq 0x185d(%rip), %rsi      # 0x405c
leaq -0xf0(%rbp), %rdi
callq 0x2637
leaq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2e97
movq 0x37cb(%rip), %rbx      # 0x5ff0
leaq -0x80(%rbp), %rsi
leaq -0x130(%rbp), %rdx
leaq -0x110(%rbp), %rcx
leaq -0xf0(%rbp), %r8
leaq -0xd0(%rbp), %r9
movq %rbx, %rdi
callq 0x2d6d
leaq -0xc0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x286c
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x288b
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28aa
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28c9
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e2
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2150
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0x36f0(%rip), %rdi      # 0x5ff0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x2922
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2937
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2952
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2150
xorl %eax, %eax
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xc0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x298b
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x298b
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29af
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x29af
movq %rax, %rbx
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29d3
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x29d3
movq %rax, %rbx
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29f7
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x29f7
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a3a
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x2a3a
jmp 0x2a37
jmp 0x2a37
movq %rax, %rbx
jmp 0x2a4f
movq %rax, %rbx
jmp 0x2a64
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2a7f
movq -0x30(%rbp), %rsi
jmp 0x2a77
movq %rax, %rbx
jmp 0x2a7f
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x2a4f
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2a64
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2a7f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2220