// File: /workspace/github_cpp_makefile_star2_O1/HQarroum[P]thread-pool/examples/one-producer-many-consumers/./../../includes/concurrent_queue.hpp
// Function: bool moodycamel::ConcurrentQueue<std::function<void ()>, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::enqueue<(moodycamel::ConcurrentQueue<std::function<void ()>, moodycamel::ConcurrentQueueDefaultTraits>::AllocationMode)0, std::function<void ()>>(std::function<void ()>&&)
inline bool enqueue(U&& element)
		{
			index_t currentTailIndex = this->tailIndex.load(std::memory_order_relaxed);
			index_t newTailIndex = 1 + currentTailIndex;
			if ((currentTailIndex & static_cast<index_t>(BLOCK_SIZE - 1)) == 0) {
				// We reached the end of a block, start a new one
				auto head = this->headIndex.load(std::memory_order_relaxed);
				assert(!details::circular_less_than<index_t>(currentTailIndex, head));
				if (!details::circular_less_than<index_t>(head, currentTailIndex + BLOCK_SIZE) || (MAX_SUBQUEUE_SIZE != details::const_numeric_max<size_t>::value && (MAX_SUBQUEUE_SIZE == 0 || MAX_SUBQUEUE_SIZE - BLOCK_SIZE < currentTailIndex - head))) {
					return false;
				}
#ifdef MCDBGQ_NOLOCKFREE_IMPLICITPRODBLOCKINDEX
				debug::DebugLock lock(mutex);
#endif
				// Find out where we'll be inserting this block in the block index
				BlockIndexEntry* idxEntry;
				if (!insert_block_index_entry<allocMode>(idxEntry, currentTailIndex)) {
					return false;
				}
				
				// Get ahold of a new block
				auto newBlock = this->parent->ConcurrentQueue::template requisition_block<allocMode>();
				if (newBlock == nullptr) {
					rewind_block_index_tail();
					idxEntry->value.store(nullptr, std::memory_order_relaxed);
					return false;
				}
#ifdef MCDBGQ_TRACKMEM
				newBlock->owner = this;
#endif
				newBlock->ConcurrentQueue::Block::template reset_empty<implicit_context>();

				MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
					// May throw, try to insert now before we publish the fact that we have this new block
					MOODYCAMEL_TRY {
						new ((*newBlock)[currentTailIndex]) T(std::forward<U>(element));
					}
					MOODYCAMEL_CATCH (...) {
						rewind_block_index_tail();
						idxEntry->value.store(nullptr, std::memory_order_relaxed);
						this->parent->add_block_to_free_list(newBlock);
						MOODYCAMEL_RETHROW;
					}
				}
				
				// Insert the new block into the index
				idxEntry->value.store(newBlock, std::memory_order_relaxed);
				
				this->tailBlock = newBlock;
				
				MOODYCAMEL_CONSTEXPR_IF (!MOODYCAMEL_NOEXCEPT_CTOR(T, U, new (static_cast<T*>(nullptr)) T(std::forward<U>(element)))) {
					this->tailIndex.store(newTailIndex, std::memory_order_release);
					return true;
				}
			}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq %r15, %r12
andq $0x1f, %r12
je 0x5ec0
incq %r15
movq 0x40(%rbx), %rax
shll $0x5, %r12d
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%r12)
movq $0x0, 0x10(%rax,%r12)
movq 0x18(%r14), %rcx
movq %rcx, 0x18(%rax,%r12)
cmpq $0x0, 0x10(%r14)
je 0x5eb5
addq %r12, %rax
leaq 0x10(%r14), %rcx
movups (%r14), %xmm1
movups %xmm1, (%rax)
movq 0x10(%r14), %rdx
movq %rdx, 0x10(%rax)
movups %xmm0, (%rcx)
movq %r15, 0x20(%rbx)
movb $0x1, %al
jmp 0x5fc2
movabsq $0x7fffffffffffffdf, %rax # imm = 0x7FFFFFFFFFFFFFDF
movq 0x28(%rbx), %rcx
movq %r15, %rdx
subq %rcx, %rdx
leaq 0x21(%rax), %rsi
cmpq %rsi, %rdx
ja 0x5fcc
subq %r15, %rcx
addq %rax, %rcx
addq $0x20, %rax
cmpq %rax, %rcx
jae 0x5fc0
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x5f6a
movq 0x8(%rax), %rdx
incq %rdx
movq (%rax), %rcx
movq 0x18(%rax), %rsi
decq %rcx
andq %rdx, %rcx
movq (%rsi,%rcx,8), %r13
movq (%r13), %rdx
cmpq $0x1, %rdx
je 0x5f5e
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x5f5e
movq %rbx, %rdi
callq 0x64a6
testb %al, %al
je 0x5f6e
movq 0x60(%rbx), %rax
movq 0x8(%rax), %rdx
incq %rdx
movq (%rax), %rcx
movq 0x18(%rax), %rsi
decq %rcx
andq %rdx, %rcx
movq (%rsi,%rcx,8), %r13
movq (%r13), %rdx
cmpq $0x1, %rdx
jne 0x5feb
movq %r15, (%r13)
movq %rcx, 0x8(%rax)
movb $0x1, %al
jmp 0x5f70
xorl %eax, %eax
jmp 0x5f70
xorl %eax, %eax
testb %al, %al
je 0x5fc0
movq 0x50(%rbx), %rdi
callq 0x67ee
testq %rax, %rax
je 0x5f97
movq $0x0, 0x408(%rax)
movq %rax, 0x8(%r13)
movq %rax, 0x40(%rbx)
jmp 0x5fb7
movq 0x60(%rbx), %rcx
movq 0x8(%rcx), %rdx
decq %rdx
movq (%rcx), %rsi
decq %rsi
andq %rdx, %rsi
movq %rsi, 0x8(%rcx)
movq $0x0, 0x8(%r13)
testq %rax, %rax
jne 0x5e70
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1b23(%rip), %rdi      # 0x7af6
leaq 0x1064(%rip), %rsi      # 0x703e
leaq 0x1b53(%rip), %rcx      # 0x7b34
movl $0x9af, %edx            # imm = 0x9AF
callq 0x3150
leaq 0x1c53(%rip), %rdi      # 0x7c45
leaq 0x1045(%rip), %rsi      # 0x703e
leaq 0x1c89(%rip), %rcx      # 0x7c89
movl $0xb60, %edx            # imm = 0xB60
callq 0x3150