// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/variadic.cc
// Function: main
int main()
{
	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 0x1989(%rip), %rsi      # 0x401d
leaq 0x1990(%rip), %rdx      # 0x402b
leaq -0x40(%rbp), %rdi
callq 0x3004
leaq -0xa0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0x2f6a
movl $0x19, -0x90(%rbp)
movabsq $0x4078fc0000000000, %rax # imm = 0x4078FC0000000000
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x26f6
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x40(%rbp), %rdi
movq %r15, (%rdi)
leaq 0x1928(%rip), %rsi      # 0x402c
leaq 0x192c(%rip), %rdx      # 0x4037
callq 0x3004
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1918(%rip), %rsi      # 0x4038
leaq 0x191d(%rip), %rdx      # 0x4044
leaq -0x60(%rbp), %rdi
callq 0x3004
leaq -0x80(%rbp), %rdx
movq $0x2a, (%rdx)
movq 0x38ae(%rip), %rbx      # 0x5ff0
leaq 0x18fc(%rip), %r8       # 0x4045
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rcx
leaq -0xb0(%rbp), %r9
movq %rbx, %rdi
callq 0x2b64
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq 0x3872(%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 0x2d99
leaq -0x110(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x24cc
leaq 0x1882(%rip), %rsi      # 0x404b
leaq -0xf0(%rbp), %rdi
callq 0x2601
leaq -0xd0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2e32
movq 0x3801(%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 0x2d37
leaq -0xc0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2836
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2855
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2874
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2893
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2150
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ac
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 0x3726(%rip), %rdi      # 0x5ff0
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x28ec
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2901
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x291c
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 0x2955
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x2955
movq %rax, %rbx
leaq -0xe0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2979
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x2979
movq %rax, %rbx
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x299d
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x299d
movq %rax, %rbx
leaq -0x120(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29c1
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x29c1
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a04
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2150
jmp 0x2a04
jmp 0x2a01
jmp 0x2a01
movq %rax, %rbx
jmp 0x2a19
movq %rax, %rbx
jmp 0x2a2e
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2a49
movq -0x30(%rbp), %rsi
jmp 0x2a41
movq %rax, %rbx
jmp 0x2a49
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x2a19
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x2a2e
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2150
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x2a49
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2220