// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH18_ToolsForLargePrograms/examples/book.cc
// Function: main
int main()
{
    // use the hypothetical bookstore exceptions 
    Sales_data item1, item2, sum;
    while (cin >> item1 >> item2) {  // read two transactions
        try {
            sum = item1 + item2;     // calculate their sum
            // use sum
        } catch (const isbn_mismatch &e) {
          cerr << e.what() << ": left isbn(" << e.left
               << ") right isbn(" << e.right << ")" << endl;
        }
    }
     return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
leaq -0xb8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl %eax, 0x10(%rcx)
movq %rax, 0x18(%rcx)
leaq -0x88(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl %eax, 0x10(%rcx)
movq %rax, 0x18(%rcx)
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl %eax, 0x10(%rcx)
movq %rax, 0x18(%rcx)
movq 0x2c3a(%rip), %rbx      # 0x4fd8
leaq -0xc8(%rbp), %r14
leaq -0x98(%rbp), %r15
leaq -0xf8(%rbp), %r12
leaq -0x68(%rbp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28d5
movq %rax, %rdi
movq %r15, %rsi
callq 0x28d5
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x24e8
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x27d5
movq %r13, %rdi
movq %r12, %rsi
callq 0x2120
leaq -0xd8(%rbp), %rax
movups (%rax), %xmm0
leaq -0x58(%rbp), %rax
movups %xmm0, 0x10(%rax)
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x23b7
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x20f0
jmp 0x23b7
movq %rax, -0x30(%rbp)
cmpl $0x1, %edx
jne 0x2572
movq -0x30(%rbp), %rdi
callq 0x2050
movq %rax, %rdi
movq (%rax), %rax
movq %rdi, -0x38(%rbp)
callq *0x10(%rax)
movq 0x2b98(%rip), %rdi      # 0x4ff0
movq %rax, %rsi
callq 0x20e0
movq %rax, -0x30(%rbp)
movl $0xc, %edx
movq -0x30(%rbp), %rdi
leaq 0xba0(%rip), %rsi       # 0x3014
callq 0x2110
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq -0x30(%rbp), %rdi
callq 0x2110
movq %rax, -0x30(%rbp)
movl $0xd, %edx
movq -0x30(%rbp), %rdi
leaq 0xb7f(%rip), %rsi       # 0x3021
callq 0x2110
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rsi
movq 0x38(%rax), %rdx
movq -0x30(%rbp), %rdi
callq 0x2110
movq %rax, -0x30(%rbp)
movl $0x1, %edx
movq -0x30(%rbp), %rdi
leaq 0xb5f(%rip), %rsi       # 0x302f
callq 0x2110
movq -0x30(%rbp), %rdi
callq 0x2060
callq 0x2160
jmp 0x23b7
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2501
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x20f0
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x2523
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x20f0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2545
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x20f0
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x256e
movq %rax, -0x30(%rbp)
callq 0x2160
jmp 0x2572
movq %rax, %rdi
callq 0x25d8
movq %rax, -0x30(%rbp)
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x258b
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x20f0
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x25ad
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x20f0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x25cf
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x20f0
movq -0x30(%rbp), %rdi
callq 0x2190