// File: /workspace/github_cpp_makefile_star2_O2/planaria[P]cb_tree/./include/cb_tree/detail/cb_tree_base.hpp
// Function: std::pair<cb_tree::detail::cb_iterator<cb_tree::detail::cb_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*>, bool> cb_tree::detail::cb_tree_base<cb_tree::cb_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, cb_tree::cb_raw_string_traits<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, cb_tree::cb_raw_string_traits<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>::insert_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
std::pair<iterator, bool> insert_impl(Value_&& value)
			{
				size_type size = traits_type::size(derived().key(value));

				if (root_node())
				{
					node_pointer branch = find_branch(derived().key(value), size);
					node_pointer leaf = branch->any_leaf();
					size_type mismatch = traits_type::mismatch(derived().key(value), derived().key(leaf->value()));

					while (branch != root_node() && mismatch <= branch->parent()->index())
						branch = branch->parent();

					if (mismatch == branch->index())
					{
						if (size == mismatch)
						{
							if (branch->leaf())
								return std::make_pair(iterator(branch), false);

							branch->construct_value(node_allocator(), std::forward<Value_>(value));
							++size_;

							return std::make_pair(make_new_iterator_to(branch), true);
						}
						else
						{
							assert(size > mismatch);

							node_pointer new_node = construct_node(std::forward<Value_>(value));
							++size_;

							new_node->parent() = branch;
							new_node->index() = size;

							if (traits_type::test(derived().key(new_node->value()), branch->index()))
								branch->right() = new_node;
							else
								branch->left() = new_node;

							return std::make_pair(make_new_iterator_to(new_node), true);
						}
					}
					else if (size == mismatch)
					{
						node_pointer new_node = construct_node(std::forward<Value_>(value));
						++size_;

						new_node->parent() = branch->parent();
						new_node->index() = size;

						if (branch->is_left_child())
							branch->parent()->left() = new_node;
						else
							branch->parent()->right() = new_node;

						branch->parent() = new_node;

						if (traits_type::test(derived().key(leaf->value()), mismatch))
							new_node->right() = branch;
						else
							new_node->left() = branch;

						return std::make_pair(make_new_iterator_to(new_node), true);
					}
					else
					{
						assert(size > mismatch);

						node_pointer branch_node = construct_node();
						node_pointer new_node;

						try
						{
							new_node = construct_node(std::forward<Value_>(value));
						}
						catch (...)
						{
							destroy_node(branch_node);
							throw;
						}

						++size_;

						branch_node->parent() = branch->parent();
						branch_node->index() = mismatch;

						if (branch->is_left_child())
							branch->parent()->left() = branch_node;
						else
							branch->parent()->right() = branch_node;

						branch->parent() = branch_node;

						new_node->parent() = branch_node;
						new_node->index() = size;

						if (traits_type::test(derived().key(leaf->value()), mismatch))
						{
							branch_node->left() = new_node;
							branch_node->right() = branch;
						}
						else
						{
							branch_node->left() = branch;
							branch_node->right() = new_node;
						}

						return std::make_pair(make_new_iterator_to(new_node), true);
					}
				}
				else
				{
					node_pointer new_node = construct_node(std::forward<Value_>(value));
					new_node->parent() = end_node();
					new_node->index() = size;
					begin_node() = new_node;
					root_node() = new_node;
					++size_;
					return std::make_pair(begin(), true);
				}
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movq 0x8(%rsi), %r15
shlq $0x3, %r15
cmpq $0x0, 0x8(%rdi)
je 0x145be
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x147b2
movq %rax, %r12
movq %rax, %rdi
callq 0xbb8c
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0xbc2e
movq %r13, %rdi
movq %rax, %rsi
callq 0x14838
movq %rax, %rbp
movq 0x8(%rbx), %rax
movq %r12, %r14
cmpq %rax, %r12
je 0x1458a
movq 0x18(%r14), %r12
cmpq 0x20(%r12), %rbp
jbe 0x14577
cmpq 0x20(%r14), %rbp
jne 0x145ed
cmpq %rbp, %r15
jne 0x1464a
cmpb $0x1, 0x8(%r14)
jne 0x14715
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbc5a
movq (%rbx), %rax
xorl %edx, %edx
jmp 0x14734
leaq 0x8(%rbx), %r14
movq %rbx, %rdi
movq %r13, %rsi
callq 0x140ac
movq %r14, 0x18(%rax)
movq %r15, 0x20(%rax)
movq %rax, (%rbx)
movq %rax, 0x8(%rbx)
incq 0x18(%rbx)
movq %rbx, %rdi
callq 0x1493e
jmp 0x14732
cmpq %rbp, %r15
jne 0x14693
movq %rbx, %rdi
movq %r13, %rsi
callq 0x140ac
incq 0x18(%rbx)
movq %rax, %r12
movq 0x18(%r14), %rax
movq %rax, 0x18(%r12)
movq %r15, 0x20(%r12)
xorl %ecx, %ecx
cmpq %r14, (%rax)
setne %cl
shll $0x4, %ecx
movq %r12, (%rax,%rcx)
movq %r12, 0x18(%r14)
movq 0x8(%rsp), %rdi
callq 0xbc2e
movq %rax, %rdi
movq %r15, %rsi
callq 0x148f2
movzbl %al, %eax
shll $0x4, %eax
movq %r14, (%r12,%rax)
jmp 0x14688
jbe 0x14743
movq %rbx, %rdi
movq %r13, %rsi
callq 0x140ac
incq 0x18(%rbx)
movq %rax, %r12
movq %r14, 0x18(%rax)
movq %r15, 0x20(%rax)
movq %rax, %rdi
callq 0xbc2e
movq 0x20(%r14), %rsi
movq %rax, %rdi
callq 0x148f2
movzbl %al, %eax
shll $0x4, %eax
movq %r12, (%r14,%rax)
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x1472d
jbe 0x14762
movq %rbx, %rdi
callq 0xc032
movq %rax, %r12
movq %rbx, %rdi
movq %r13, %rsi
callq 0x140ac
movq %rax, %r13
incq 0x18(%rbx)
movq 0x18(%r14), %rax
movq %rax, 0x18(%r12)
movq %rbp, 0x20(%r12)
xorl %ecx, %ecx
cmpq %r14, (%rax)
setne %cl
shll $0x4, %ecx
movq %r12, (%rax,%rcx)
movq %r12, 0x18(%r14)
movq %r12, 0x18(%r13)
movq %r15, 0x20(%r13)
movq 0x8(%rsp), %rdi
callq 0xbc2e
movq %rax, %rdi
movq %rbp, %rsi
callq 0x148f2
testb %al, %al
movq %r14, %rax
cmovneq %r13, %rax
movq %r13, %rcx
cmovneq %r14, %rcx
movq %rax, (%r12)
movq %rcx, 0x10(%r12)
movq %rbx, %rdi
movq %r13, %rsi
jmp 0x1472d
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x14070
incq 0x18(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1489c
movb $0x1, %dl
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b933(%rip), %rdi     # 0x4007d
leaq 0x2b93c(%rip), %rsi     # 0x4008d
leaq 0x3068e(%rip), %rcx     # 0x44de6
movl $0x246, %edx            # imm = 0x246
callq 0xa280
leaq 0x2b914(%rip), %rdi     # 0x4007d
leaq 0x2b91d(%rip), %rsi     # 0x4008d
leaq 0x3066f(%rip), %rcx     # 0x44de6
movl $0x26e, %edx            # imm = 0x26E
callq 0xa280
movq %rax, %rdi
callq 0xa180
movq %rbx, %rdi
movq %r12, %rsi
callq 0xc052
callq 0xa550
movq %rax, %rbx
callq 0xa630
movq %rbx, %rdi
callq 0xa6b0
movq %rax, %rdi
callq 0xb6ee
nop