// File: /workspace/github_cpp_makefile_star2_O1/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
xorl %ebx, %ebx
movq %rbx, -0x48(%rbp)
movl $0x28, %edi
callq 0x2120
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x395b(%rip), %rcx      # 0x5cf0
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rbx, 0x20(%rax)
movq %rax, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c43(%rip), %rsi      # 0x4004
leaq 0x1c3d(%rip), %rdx      # 0x4005
leaq -0xc8(%rbp), %r15
movq %r15, %rdi
callq 0x31cc
leaq -0xa8(%rbp), %r14
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c16(%rip), %rsi      # 0x4006
leaq 0x1c11(%rip), %rdx      # 0x4008
movq %r14, %rdi
callq 0x31cc
leaq -0x88(%rbp), %r14
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x1bf4(%rip), %rsi      # 0x4009
leaq 0x1bf0(%rip), %rdx      # 0x400c
movq %r14, %rdi
callq 0x31cc
leaq -0xc8(%rbp), %rax
leaq -0x60(%rbp), %rcx
movq %rax, (%rcx)
movq $0x3, 0x8(%rcx)
leaq -0x30(%rbp), %r12
movq $0x0, -0x8(%r12)
leaq -0x38(%rbp), %rsi
leaq -0x68(%rbp), %rdx
movq %r12, %rdi
callq 0x2b10
leaq -0x40(%rbp), %r14
movq $-0x60, %rbx
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x2477
movq (%r13), %rsi
incq %rsi
callq 0x2130
addq $-0x20, %r13
addq $0x20, %rbx
jne 0x2462
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2d8c
leaq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rbx
movq %rbx, (%rdi)
leaq 0x1b61(%rip), %rsi      # 0x400d
leaq 0x1b5f(%rip), %rdx      # 0x4012
callq 0x31cc
movq -0x38(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x2e3e
movq -0xc8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x24e3
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x3ac7(%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 0x2536
callq 0x2dd2
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x5, %rsi
movq 0x3a74(%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 0x25a5
movq 0x3a21(%rip), %rcx      # 0x5fb8
cmpb $0x0, (%rcx)
je 0x25a1
incl 0xc(%rax)
jmp 0x25a5
lock
incl 0xc(%rax)
leaq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
leaq -0xc8(%rbp), %r14
leaq -0x38(%rbp), %r12
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %r15
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
testq %r15, %r15
je 0x25e7
movq 0x39e1(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x25e2
incl 0xc(%r15)
jmp 0x25e7
lock
incl 0xc(%r15)
movq -0x58(%rbp), %r13
testq %r13, %r13
je 0x2608
movl 0x8(%r13), %eax
testl %eax, %eax
je 0x2605
leal 0x1(%rax), %edi
lock
cmpxchgl %edi, 0x8(%r13)
jne 0x25f4
jmp 0x2608
xorl %r13d, %r13d
testq %r13, %r13
je 0x2618
movl 0x8(%r13), %eax
testl %eax, %eax
sete %al
jmp 0x261a
movb $0x1, %al
testb %al, %al
jne 0x2624
movq -0x60(%rbp), %r8
jmp 0x2627
xorl %r8d, %r8d
movq %r15, %rdi
testq %r15, %r15
je 0x2649
movl 0x8(%r15), %eax
testl %eax, %eax
je 0x2647
leal 0x1(%rax), %edi
lock
cmpxchgl %edi, 0x8(%r15)
jne 0x2633
movq %r15, %rdi
jmp 0x2649
xorl %edi, %edi
testq %rdi, %rdi
je 0x265e
movl 0x8(%rdi), %eax
testl %eax, %eax
movl $0x0, %eax
cmoveq %rax, %rdx
jmp 0x2660
xorl %edx, %edx
movb $0x1, %bl
cmpq %rdx, %r8
jne 0x267d
subq %rsi, %rcx
sarq $0x5, %rcx
testq %rdx, %rdx
setne %al
cmpq %rcx, -0x50(%rbp)
setne %bl
andb %al, %bl
testq %rdi, %rdi
je 0x2687
callq 0x2dd2
testq %r13, %r13
je 0x2694
movq %r13, %rdi
callq 0x2dd2
testq %r15, %r15
leaq -0xb8(%rbp), %r13
je 0x26d2
movq 0x3911(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x26b9
movl 0xc(%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%r15)
jmp 0x26c4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%r15)
cmpl $0x1, %eax
jne 0x26d2
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
testb %bl, %bl
je 0x2856
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 0x1974(%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 0x310c
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x275d
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 0x2776
callq 0x2dd2
shlq $0x5, %rbx
movq (%r15,%rbx), %rsi
movq 0x8(%r15,%rbx), %rdx
movq 0x3836(%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 0x18ce(%rip), %xmm0     # 0x40c0
movups %xmm0, 0x10(%rax)
movups 0x18b3(%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 0x310c
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2832
callq 0x2dd2
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x284d
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
incq -0x50(%rbp)
jmp 0x25bc
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x288b
movq 0x3752(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
je 0x2876
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x2880
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x288b
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2899
callq 0x2dd2
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 %rbx, %rdi
je 0x2942
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2942
jmp 0x293f
movq %rax, %r12
leaq -0x68(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x21e6
movb $0x1, %al
jmp 0x28fb
jmp 0x28ec
movq %rax, %r12
xorl %eax, %eax
jmp 0x28fb
movq %rax, %r12
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x29ac
addq $-0x10, %r14
leaq -0xc8(%rbp), %rbx
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x2928
movq (%r14), %rsi
incq %rsi
callq 0x2130
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x2914
jmp 0x29ac
movq %rax, %r12
jmp 0x29ac
movq %rax, %r12
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x29ac
callq 0x2dd2
jmp 0x29ac
jmp 0x2954
movq %rax, %r12
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2977
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2130
jmp 0x2977
movq %rax, %r12
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x29ac
movq 0x3631(%rip), %rax      # 0x5fb8
cmpb $0x0, (%rax)
jne 0x2998
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
jmp 0x29a1
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x29ac
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x29ba
callq 0x2dd2
movq %r12, %rdi
callq 0x21b0