// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/ctl.c
// Function: arena_i_dss_ctl
static int
arena_i_dss_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
    void *newp, size_t newlen)
{
	int ret;
	const char *dss = NULL;
	unsigned arena_ind = mib[1];
	dss_prec_t dss_prec_old = dss_prec_limit;
	dss_prec_t dss_prec = dss_prec_limit;

	malloc_mutex_lock(&ctl_mtx);
	WRITE(dss, const char *);
	if (dss != NULL) {
		int i;
		bool match = false;

		for (i = 0; i < dss_prec_limit; i++) {
			if (strcmp(dss_prec_names[i], dss) == 0) {
				dss_prec = i;
				match = true;
				break;
			}
		}

		if (!match) {
			ret = EINVAL;
			goto label_return;
		}
	}

	if (arena_ind < ctl_stats.narenas) {
		arena_t *arena = arena_get(tsd_fetch(), arena_ind, false, true);
		if (arena == NULL || (dss_prec != dss_prec_limit &&
		    arena_dss_prec_set(arena, dss_prec))) {
			ret = EFAULT;
			goto label_return;
		}
		dss_prec_old = arena_dss_prec_get(arena);
	} else {
		if (dss_prec != dss_prec_limit &&
		    chunk_dss_prec_set(dss_prec)) {
			ret = EFAULT;
			goto label_return;
		}
		dss_prec_old = chunk_dss_prec_get();
	}

	dss = dss_prec_names[dss_prec_old];
	READ(dss, const char *);

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %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 $0x0, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x5c(%rbp)
movl $0x3, -0x60(%rbp)
movl $0x3, -0x64(%rbp)
leaq 0x4b58d(%rip), %rdi     # 0xa2788
callq 0x53170
cmpq $0x0, -0x40(%rbp)
je 0x57225
cmpq $0x8, -0x48(%rbp)
je 0x5721a
movl $0x16, -0x4c(%rbp)
jmp 0x574d8
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x57227
cmpq $0x0, -0x58(%rbp)
je 0x57289
movb $0x0, -0x69(%rbp)
movl $0x0, -0x68(%rbp)
cmpl $0x3, -0x68(%rbp)
jge 0x57275
movslq -0x68(%rbp), %rcx
leaq 0x4a1d6(%rip), %rax     # 0xa1420
movq (%rax,%rcx,8), %rdi
movq -0x58(%rbp), %rsi
callq 0x10330
cmpl $0x0, %eax
jne 0x57268
movl -0x68(%rbp), %eax
movl %eax, -0x64(%rbp)
movb $0x1, -0x69(%rbp)
jmp 0x57275
jmp 0x5726a
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x57239
testb $0x1, -0x69(%rbp)
jne 0x57287
movl $0x16, -0x4c(%rbp)
jmp 0x574d8
jmp 0x57289
movl -0x5c(%rbp), %eax
cmpl 0x4b546(%rip), %eax     # 0xa27d8
jae 0x57421
movq 0x47d49(%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 0x572c2
jmp 0x573d1
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x57348
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq 0x47d04(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4bc0f(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x47cda(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x57343
leaq 0x37d0e(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4a369(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x57341
callq 0x10070
jmp 0x57343
jmp 0x573cf
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x573cb
movq -0x18(%rbp), %rax
movl $0x3, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq 0x47c7e(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x8(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4bb89(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x47c54(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x573c9
leaq 0x37c88(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4a2e3(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x573c7
callq 0x10070
jmp 0x573c9
jmp 0x573cd
jmp 0x573cd
jmp 0x573cf
jmp 0x573d1
movq -0x18(%rbp), %rdi
movl -0x5c(%rbp), %esi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x537c0
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x57407
cmpl $0x3, -0x64(%rbp)
je 0x57413
movq -0x78(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x42c60
testb $0x1, %al
jne 0x57407
jmp 0x57413
movl $0xe, -0x4c(%rbp)
jmp 0x574d8
movq -0x78(%rbp), %rdi
callq 0x42c20
movl %eax, -0x60(%rbp)
jmp 0x57449
cmpl $0x3, -0x64(%rbp)
je 0x57441
movl -0x64(%rbp), %edi
callq 0x52320
testb $0x1, %al
jne 0x57435
jmp 0x57441
movl $0xe, -0x4c(%rbp)
jmp 0x574d8
callq 0x522a0
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, %ecx
leaq 0x49fcb(%rip), %rax     # 0xa1420
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x574cf
cmpq $0x0, -0x38(%rbp)
je 0x574cf
movq -0x38(%rbp), %rax
cmpq $0x8, (%rax)
je 0x574c4
movq -0x38(%rbp), %rcx
movl $0x8, %eax
cmpq (%rcx), %rax
ja 0x57491
movl $0x8, %eax
movq %rax, -0x88(%rbp)
jmp 0x5749f
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x30(%rbp), %rdi
movq -0x80(%rbp), %rdx
leaq -0x58(%rbp), %rsi
callq 0x103b0
movl $0x16, -0x4c(%rbp)
jmp 0x574d8
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0x574d1
movl $0x0, -0x4c(%rbp)
leaq 0x4b2a9(%rip), %rdi     # 0xa2788
callq 0x536b0
movl -0x4c(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq