// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH12_DynamicMemory/examples/useBlob.cc
// Function: main
int main()
{
	StrBlob b1;
	{
		// StrBlob(initializer_list<string> il)
		StrBlob b2 = { "a", "an", "the" };
		b1 = b2; // assign
		b2.push_back("about");
		cout << b2.size() << endl;
	}
	cout << b1.size() << endl;

	// auto == StrBlobPtr
	for (auto it = b1.begin(); neq(it, b1.end()); it.incr())
		cout << it.deref() << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl $0x28, %edi
callq 0x2120
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x39a9(%rip), %rcx      # 0x5d28
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x1c55(%rip), %rsi      # 0x4004
leaq 0x1c4f(%rip), %rdx      # 0x4005
leaq -0xc8(%rbp), %r14
movq %r14, %rdi
callq 0x3136
leaq -0xa8(%rbp), %r15
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c28(%rip), %rsi      # 0x4006
leaq 0x1c23(%rip), %rdx      # 0x4008
movq %r15, %rdi
callq 0x3136
leaq -0x88(%rbp), %r15
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1c05(%rip), %rsi      # 0x4009
leaq 0x1c01(%rip), %rdx      # 0x400c
movq %r15, %rdi
callq 0x3136
leaq -0x60(%rbp), %rcx
movq %r14, (%rcx)
movq $0x3, 0x8(%rcx)
leaq -0x30(%rbp), %r15
movq $0x0, -0x8(%r15)
leaq -0x38(%rbp), %rsi
leaq -0x68(%rbp), %rdx
movq %r15, %rdi
callq 0x2aa6
leaq -0x40(%rbp), %r14
movq $-0x60, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x245f
movq (%r12), %rsi
incq %rsi
callq 0x2130
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x2449
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2d26
leaq -0xc8(%rbp), %rdi
movq %r13, (%rdi)
leaq 0x1b80(%rip), %rsi      # 0x400d
leaq 0x1b7e(%rip), %rdx      # 0x4012
callq 0x3136
movq -0x38(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x2ddc
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x24c4
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x3ae6(%rip), %rdi      # 0x5fc0
callq 0x20a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2517
callq 0x2d70
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x3a93(%rip), %rdi      # 0x5fc0
callq 0x20a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
testq %rax, %rax
je 0x2586
movq 0x3a40(%rip), %rcx      # 0x5fb8
cmpb $0x0, (%rcx)
je 0x2582
incl 0xc(%rax)
jmp 0x2586
lock
incl 0xc(%rax)
leaq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
leaq -0x38(%rbp), %r12
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %r15
movq (%rsi), %rdx
movq 0x8(%rsi), %rcx
testq %r15, %r15
je 0x25c1
movq 0x3a07(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x25bc
incl 0xc(%r15)
jmp 0x25c1
lock
incl 0xc(%r15)
movq %r12, %r14
movq %r13, %r12
movq -0x58(%rbp), %r13
testq %r13, %r13
je 0x25f1
movl 0x8(%r13), %eax
testl %eax, %eax
je 0x25f1
leal 0x1(%rax), %edi
lock
cmpxchgl %edi, 0x8(%r13)
jne 0x25d4
movl 0x8(%r13), %eax
testl %eax, %eax
je 0x25f4
movq -0x60(%rbp), %r8
jmp 0x25f7
xorl %r13d, %r13d
xorl %r8d, %r8d
testq %r15, %r15
je 0x2623
movl 0x8(%r15), %eax
testl %eax, %eax
je 0x2623
leal 0x1(%rax), %edi
lock
cmpxchgl %edi, 0x8(%r15)
jne 0x2600
movl 0x8(%r15), %eax
testl %eax, %eax
movl $0x0, %eax
cmoveq %rax, %rsi
movq %r15, %rdi
jmp 0x2627
xorl %edi, %edi
xorl %esi, %esi
movb $0x1, %bl
cmpq %rsi, %r8
jne 0x2644
subq %rdx, %rcx
sarq $0x5, %rcx
testq %r8, %r8
setne %al
cmpq %rcx, -0x50(%rbp)
setne %bl
andb %al, %bl
testq %rdi, %rdi
je 0x264e
callq 0x2d70
testq %r13, %r13
je 0x265b
movq %r13, %rdi
callq 0x2d70
testq %r15, %r15
movq %r12, %r13
movq %r14, %r12
leaq -0xc8(%rbp), %r14
je 0x269f
movq 0x3944(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x2686
movl 0xc(%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%r15)
jmp 0x2691
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%r15)
cmpl $0x1, %eax
jne 0x269f
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
testb %bl, %bl
je 0x2823
movq -0x50(%rbp), %r15
movq %r13, -0xc8(%rbp)
movq $0x14, -0x68(%rbp)
movq %r14, %rdi
leaq -0x68(%rbp), %rsi
xorl %edx, %edx
callq 0x21c0
movq %rax, -0xc8(%rbp)
movq -0x68(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movups 0x19a7(%rip), %xmm0     # 0x4088
movups %xmm0, (%rax)
movl $0x646e6520, 0x10(%rax) # imm = 0x646E6520
movq %rcx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movb $0x0, (%rax,%rcx)
movq %r12, %rdi
leaq -0x60(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3076
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x272a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x50(%rbp), %rbx
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rdi
movq (%rax), %r15
testq %rdi, %rdi
je 0x2743
callq 0x2d70
shlq $0x5, %rbx
movq (%r15,%rbx), %rsi
movq 0x8(%r15,%rbx), %rdx
movq 0x3869(%rip), %rdi      # 0x5fc0
callq 0x2140
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq -0x50(%rbp), %r15
movq %r13, -0xc8(%rbp)
movq $0x20, -0x38(%rbp)
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x21c0
movq %rax, -0xc8(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movups 0x1901(%rip), %xmm0     # 0x40c0
movups %xmm0, 0x10(%rax)
movups 0x18e6(%rip), %xmm0     # 0x40b0
movups %xmm0, (%rax)
movq %rcx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movb $0x0, (%rax,%rcx)
movq %r12, %rdi
leaq -0x60(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3076
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x27ff
callq 0x2d70
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x281a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
incq -0x50(%rbp)
jmp 0x2596
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2858
movq 0x3785(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x2843
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x284d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x2858
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2866
callq 0x2d70
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x28ed
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x28ed
jmp 0x28ea
movq %rax, %r12
leaq -0x68(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x21e0
jmp 0x2957
jmp 0x28b6
movq %rax, %r12
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x28d1
movq (%r15), %rsi
incq %rsi
callq 0x2130
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x28bd
jmp 0x2957
jmp 0x28e5
movq %rax, %r12
jmp 0x2957
movq %rax, %r12
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2957
callq 0x2d70
jmp 0x2957
jmp 0x28ff
movq %rax, %r12
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2922
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2922
movq %rax, %r12
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2957
movq 0x3686(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
jne 0x2943
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
jmp 0x294c
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x2957
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2965
callq 0x2d70
movq %r12, %rdi
callq 0x21b0
nop