// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/arena.c
// Function: je_arena_ralloc_no_move
bool
arena_ralloc_no_move(void *ptr, size_t oldsize, size_t size, size_t extra,
    bool zero)
{
	size_t usize_min, usize_max;

	usize_min = s2u(size);
	usize_max = s2u(size + extra);
	if (likely(oldsize <= large_maxclass && usize_min <= large_maxclass)) {
		/*
		 * Avoid moving the allocation if the size class can be left the
		 * same.
		 */
		if (oldsize <= SMALL_MAXCLASS) {
			assert(arena_bin_info[size2index(oldsize)].reg_size ==
			    oldsize);
			if ((usize_max <= SMALL_MAXCLASS &&
			    size2index(usize_max) == size2index(oldsize)) ||
			    (size <= oldsize && usize_max >= oldsize))
				return (false);
		} else {
			if (usize_max > SMALL_MAXCLASS) {
				if (!arena_ralloc_large(ptr, oldsize, usize_min,
				    usize_max, zero))
					return (false);
			}
		}

		/* Reallocation would require a move. */
		return (true);
	} else {
		return (huge_ralloc_no_move(ptr, oldsize, usize_min, usize_max,
		    zero));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movb %r8b, %al
movq %rdi, -0x130(%rbp)
movq %rsi, -0x138(%rbp)
movq %rdx, -0x140(%rbp)
movq %rcx, -0x148(%rbp)
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0xf0(%rbp)
cmpq $0x1000, -0xf0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x40327
jmp 0x403ac
movq -0xf0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x4e927(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
movl %eax, %ecx
leaq 0x4e180(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x4047a
movq -0xf0(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
setl %al
testb $0x1, %al
jne 0x403c5
jmp 0x403e7
movq -0x38(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x168(%rbp)
jmp 0x403fe
movq -0x38(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x4cb20
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x6, -0x40(%rbp)
jae 0x4041e
movl $0x3, %eax
movq %rax, -0x170(%rbp)
jmp 0x40431
movq -0x40(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
addq -0x58(%rbp), %rax
movq -0x58(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x140(%rbp), %rax
addq -0x148(%rbp), %rax
movq %rax, -0x100(%rbp)
cmpq $0x1000, -0x100(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x404b1
jmp 0x4051e
movq -0x100(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x4e7a3(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, %ecx
leaq 0x4e008(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xf8(%rbp)
jmp 0x405ec
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
setl %al
testb $0x1, %al
jne 0x40537
jmp 0x40559
movq -0x8(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x178(%rbp)
jmp 0x40570
movq -0x8(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x4cb20
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x6, -0x10(%rbp)
jae 0x40590
movl $0x3, %eax
movq %rax, -0x180(%rbp)
jmp 0x405a3
movq -0x10(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
addq -0x28(%rbp), %rax
movq -0x28(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x138(%rbp), %rcx
xorl %eax, %eax
cmpq 0x61fb6(%rip), %rcx     # 0xa25c0
movb %al, -0x181(%rbp)
ja 0x40629
movq -0x158(%rbp), %rax
cmpq 0x61fa0(%rip), %rax     # 0xa25c0
setbe %al
movb %al, -0x181(%rbp)
movb -0x181(%rbp), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x407ea
cmpq $0x3800, -0x138(%rbp) # imm = 0x3800
ja 0x40796
jmp 0x40657
jmp 0x40659
cmpq $0x3800, -0x160(%rbp) # imm = 0x3800
ja 0x40768
movq -0x160(%rbp), %rax
movq %rax, -0x110(%rbp)
cmpq $0x1000, -0x110(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x4068c
jmp 0x406ca
movq -0x110(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x4e5d0(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movl %eax, -0x104(%rbp)
jmp 0x406dc
movq -0x110(%rbp), %rdi
callq 0x4ca20
movl %eax, -0x104(%rbp)
movl -0x104(%rbp), %eax
movl %eax, -0x188(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x120(%rbp)
cmpq $0x1000, -0x120(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x4070a
jmp 0x40748
movq -0x120(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x4e552(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movl %eax, -0x114(%rbp)
jmp 0x4075a
movq -0x120(%rbp), %rdi
callq 0x4ca20
movl %eax, -0x114(%rbp)
movl -0x188(%rbp), %eax
cmpl -0x114(%rbp), %eax
je 0x40788
movq -0x140(%rbp), %rax
cmpq -0x138(%rbp), %rax
ja 0x40794
movq -0x160(%rbp), %rax
cmpq -0x138(%rbp), %rax
jb 0x40794
movb $0x0, -0x121(%rbp)
jmp 0x4081f
jmp 0x407e1
cmpq $0x3800, -0x160(%rbp) # imm = 0x3800
jbe 0x407df
movq -0x130(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x158(%rbp), %rdx
movq -0x160(%rbp), %rcx
movb -0x149(%rbp), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x40830
testb $0x1, %al
jne 0x407dd
movb $0x0, -0x121(%rbp)
jmp 0x4081f
jmp 0x407df
jmp 0x407e1
movb $0x1, -0x121(%rbp)
jmp 0x4081f
movq -0x130(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x158(%rbp), %rdx
movq -0x160(%rbp), %rcx
movb -0x149(%rbp), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x61de0
andb $0x1, %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq