// File: /workspace/github_cpp_makefile_star2_O1/dadocolussi[P]gdc-circular_queue/src/gdc_circular_queue_factory.hpp
// Function: gdc::circular_queue_factory<unsigned long, gdc::circular_queue<unsigned long>>::create_private(unsigned long, bool, std::function<int (gdc::circular_queue<unsigned long>&)>)
static Q* create_private(
			size_type capacity,
			bool sync,
			mdinit_type metadata_initializer)
		{
			static std::atomic<int> seq(0);
			int unique = seq.fetch_add(1, std::memory_order_relaxed);
			pid_t pid = ::getpid();
			char tmp_name[32];
			std::sprintf(tmp_name, "/.gdcq.%d.%d", pid, unique);
			create_shared(tmp_name, capacity, sync, metadata_initializer);
			Q* q = nullptr;

			try
			{
				q = map_shared(tmp_name);
			}
			catch (const circular_queue_error& ex)
			{
				delete_shared(tmp_name);
				throw;
			}

			try
			{
				delete_shared(tmp_name);
			}
			catch (const circular_queue_error& ex)
			{
				unmap_shared(q);
				delete_shared(tmp_name);
				throw;
			}

			return q;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movl $0x1, %r15d
lock
xaddl %r15d, 0x36db(%rip)     # 0x71d0
callq 0x2220
leaq 0x969(%rip), %rsi       # 0x446a
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movl %eax, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x2050
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r12, %rdi
callq 0x20c0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rsp, %rdi
movq %r12, %rsi
callq 0x2bc8
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x2e3a
movzbl %bpl, %edx
movq %rsp, %rdi
leaq 0x48(%rsp), %rcx
movq %rbx, %rsi
callq 0x3008
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x3b73
leaq 0x48(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3b89
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rsp, %rbx
movq %r13, (%rbx)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x20c0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2bc8
movq %rsp, %rdi
callq 0x3434
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3bd0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rsp, %rbx
movq %r13, (%rbx)
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x20c0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2bc8
movq %rsp, %rdi
callq 0x2cea
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3c14
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3da7
movq %rdx, %r15
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3c4f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
jmp 0x3c4f
movq %rdx, %r15
movq %rax, %rbx
cmpl $0x2, %r15d
jne 0x3dcd
movq %rbx, %rdi
callq 0x20b0
movq %r14, %rdi
callq 0x39e8
movq %rsp, %rbx
movq %r13, (%rbx)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x20c0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2bc8
movq %rsp, %rdi
callq 0x2cea
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3cad
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
callq 0x2210
jmp 0x3d60
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3cd7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
jmp 0x3cd7
jmp 0x3cd4
movq %rax, %rbx
callq 0x2250
jmp 0x3dcd
movq %rdx, %r14
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3d05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
jmp 0x3d05
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x2, %r14d
jne 0x3dcd
movq %rbx, %rdi
callq 0x20b0
movq %rsp, %rbx
movq %r13, (%rbx)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x20c0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2bc8
movq %rsp, %rdi
callq 0x2cea
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3d5b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
callq 0x2210
jmp 0x3d7d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3d80
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
jmp 0x3d80
movq %rax, %rbx
callq 0x2250
jmp 0x3dcd
jmp 0x3da7
movq %rax, %rbx
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x3db2
leaq 0x48(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x3db2
movq %rax, %rdi
callq 0x2bbd
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3dcd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21b0
jmp 0x3dcd
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2280
nop