// File: /workspace/github_cpp_makefile_star2_O2/wichtounet[P]articles/plf_colony_alpha/plf_colony.h
// Function: plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::reduced_stack::push(Trivial<8>*)
void push(const stack_element_type the_element)
		{
			switch ((top_element == NULL) + (top_element == end_element))
			{
				case 0:
				{
					PLF_COLONY_CONSTRUCT(element_pointer_allocator_type, (*this), ++top_element, the_element); // According to the C++ standard, construction of a pointer (of any type) may not trigger an exception (17.6.3.3) - hence, no try-catch blocks are necessary for storing the erased location pointers.
					++total_number_of_elements;
					return;
				}
				case 1:
				{
					if (current_group->next_group == NULL)
					{
						current_group->next_group = PLF_COLONY_ALLOCATE(stack_group_allocator_type, group_allocator_pair, 1, current_group);

						try
						{
							#ifdef PLF_COLONY_VARIADICS_SUPPORT
								PLF_COLONY_CONSTRUCT(stack_group_allocator_type, group_allocator_pair, current_group->next_group, (total_number_of_elements < std::numeric_limits<size_type>::max() / 2) ? total_number_of_elements : std::numeric_limits<size_type>::max() / 2, current_group);
							#else
								PLF_COLONY_CONSTRUCT(stack_group_allocator_type, group_allocator_pair, current_group->next_group, group((total_number_of_elements < std::numeric_limits<size_type>::max() / 2) ? total_number_of_elements : std::numeric_limits<size_type>::max() / 2, current_group));
							#endif
						}
						catch (...)
						{
							PLF_COLONY_DEALLOCATE(stack_group_allocator_type, group_allocator_pair, current_group->next_group, 1);
							current_group->next_group = NULL;
							throw;
						}
					}

					current_group = current_group->next_group;
					start_element = top_element = current_group->elements;
					end_element = current_group->end;

					PLF_COLONY_CONSTRUCT(element_pointer_allocator_type, (*this), top_element, the_element);
					++total_number_of_elements;
					return;
				}
				case 2: // ie. empty stack, must initialize
				{
					initialize(group_allocator_pair.min_elements_per_group);
					PLF_COLONY_CONSTRUCT(element_pointer_allocator_type, (*this), top_element, the_element);
					total_number_of_elements = 1;
					return;
				}
			}
		}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
xorl %ecx, %ecx
movq %rsi, %r14
movq %rdi, %rbx
cmpq 0x20(%rdi), %rax
sete %cl
cmpq $0x1, %rax
adcl $0x0, %ecx
cmpl $0x2, %ecx
je 0x3d917
cmpl $0x1, %ecx
jne 0x3d934
movq (%rbx), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x3d8fc
pushq $0x20
popq %rdi
callq 0x41a0
movq (%rbx), %rcx
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x8(%rcx)
movq 0x28(%rbx), %rcx
movq (%rbx), %rdx
cmpq %rsi, %rcx
cmovbq %rcx, %rsi
movq %rax, %rdi
callq 0x3dd8a
movq (%rbx), %rax
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
movq %rcx, 0x18(%rbx)
movq 0x18(%rax), %rax
movq %rax, 0x20(%rbx)
movq %r14, (%rcx)
jmp 0x3d940
movq 0x30(%rbx), %rsi
movq %rbx, %rdi
callq 0x3dd0e
movq 0x10(%rbx), %rax
movq %r14, (%rax)
movq $0x1, 0x28(%rbx)
jmp 0x3d944
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%rbx)
movq %r14, 0x8(%rax)
incq 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0x4090
movq (%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x4180
movq (%rbx), %rax
andq $0x0, 0x8(%rax)
callq 0x4240
movq %rax, %rbx
callq 0x42b0
movq %rbx, %rdi
callq 0x42c0
movq %rax, %rdi
callq 0x7b4a
nop