// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/ctl.c
// Function: arena_i_lg_dirty_mult_ctl
static int
arena_i_lg_dirty_mult_ctl(const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned arena_ind = mib[1];
	arena_t *arena;

	arena = arena_get(tsd_fetch(), arena_ind, false, true);
	if (arena == NULL) {
		ret = EFAULT;
		goto label_return;
	}

	if (oldp != NULL && oldlenp != NULL) {
		size_t oldval = arena_lg_dirty_mult_get(arena);
		READ(oldval, ssize_t);
	}
	if (newp != NULL) {
		if (newlen != sizeof(ssize_t)) {
			ret = EINVAL;
			goto label_return;
		}
		if (arena_lg_dirty_mult_set(arena, *(ssize_t *)newp)) {
			ret = EFAULT;
			goto label_return;
		}
	}

	ret = 0;
label_return:
	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 -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x50(%rbp)
movq 0x47ac6(%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 0x57545
jmp 0x57654
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x575cb
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq 0x47a81(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4b98c(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x47a57(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x575c6
leaq 0x37a8b(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4a0e6(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x575c4
callq 0x10070
jmp 0x575c6
jmp 0x57652
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x5764e
movq -0x18(%rbp), %rax
movl $0x3, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq 0x479fb(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x8(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x4b906(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x479d1(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x5764c
leaq 0x37a05(%rip), %rdi     # 0x8f039
callq 0x7c0e0
leaq 0x4a060(%rip), %rax     # 0xa16a0
testb $0x1, (%rax)
je 0x5764a
callq 0x10070
jmp 0x5764c
jmp 0x57650
jmp 0x57650
jmp 0x57652
jmp 0x57654
movq -0x18(%rbp), %rdi
movl -0x50(%rbp), %esi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x537c0
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x5767e
movl $0xe, -0x4c(%rbp)
jmp 0x57749
cmpq $0x0, -0x30(%rbp)
je 0x5770a
cmpq $0x0, -0x38(%rbp)
je 0x5770a
movq -0x58(%rbp), %rdi
callq 0x3cf30
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x57706
cmpq $0x0, -0x38(%rbp)
je 0x57706
movq -0x38(%rbp), %rax
cmpq $0x8, (%rax)
je 0x576fb
movq -0x38(%rbp), %rcx
movl $0x8, %eax
cmpq (%rcx), %rax
ja 0x576ce
movl $0x8, %eax
movq %rax, -0x70(%rbp)
jmp 0x576d9
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 -0x60(%rbp), %rsi
callq 0x103b0
movl $0x16, -0x4c(%rbp)
jmp 0x57749
movq -0x60(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0x57708
jmp 0x5770a
cmpq $0x0, -0x40(%rbp)
je 0x57742
cmpq $0x8, -0x48(%rbp)
je 0x57721
movl $0x16, -0x4c(%rbp)
jmp 0x57749
movq -0x58(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
callq 0x3cf70
testb $0x1, %al
jne 0x57737
jmp 0x57740
movl $0xe, -0x4c(%rbp)
jmp 0x57749
jmp 0x57742
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)