// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/ctl.c
// Function: tcache_create_ctl
static int
tcache_create_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
    void *newp, size_t newlen)
{
	int ret;
	tsd_t *tsd;
	unsigned tcache_ind;

	if (!config_tcache)
		return (ENOENT);

	tsd = tsd_fetch();

	malloc_mutex_lock(&ctl_mtx);
	READONLY();
	if (tcaches_create(tsd, &tcache_ind)) {
		ret = EFAULT;
		goto label_return;
	}
	READ(tcache_ind, unsigned);

	ret = 0;
label_return:
	malloc_mutex_unlock(&ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %r9, -0x48(%rbp)
movq 0x484d1(%rip), %rcx     # 0x9efe8
movq %fs:0x0, %rax
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x1, (%rax)
setne %al
testb $0x1, %al
jne 0x56b3a
jmp 0x56c49
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x56bc0
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq 0x4848c(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4c397(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x48462(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x56bbb
leaq 0x38496(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4aaf1(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x56bb9
callq 0x10070
jmp 0x56bbb
jmp 0x56c47
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x56c43
movq -0x18(%rbp), %rax
movl $0x3, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq 0x48406(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x8(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4c311(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x483dc(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x56c41
leaq 0x38410(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4aa6b(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x56c3f
callq 0x10070
jmp 0x56c41
jmp 0x56c45
jmp 0x56c45
jmp 0x56c47
jmp 0x56c49
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x4bb30(%rip), %rdi     # 0xa2788
callq 0x53170
cmpq $0x0, -0x40(%rbp)
jne 0x56c6b
cmpq $0x0, -0x48(%rbp)
je 0x56c77
movl $0x1, -0x4c(%rbp)
jmp 0x56d07
jmp 0x56c79
movq -0x58(%rbp), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x7baa0
testb $0x1, %al
jne 0x56c8c
jmp 0x56c95
movl $0xe, -0x4c(%rbp)
jmp 0x56d07
jmp 0x56c97
cmpq $0x0, -0x30(%rbp)
je 0x56cfe
cmpq $0x0, -0x38(%rbp)
je 0x56cfe
movq -0x38(%rbp), %rax
cmpq $0x4, (%rax)
je 0x56cf5
movq -0x38(%rbp), %rcx
movl $0x4, %eax
cmpq (%rcx), %rax
ja 0x56cc8
movl $0x4, %eax
movq %rax, -0x70(%rbp)
jmp 0x56cd3
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rdx
leaq -0x5c(%rbp), %rsi
callq 0x103b0
movl $0x16, -0x4c(%rbp)
jmp 0x56d07
movl -0x5c(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
jmp 0x56d00
movl $0x0, -0x4c(%rbp)
leaq 0x4ba7a(%rip), %rdi     # 0xa2788
callq 0x536b0
movl -0x4c(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)