// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
pushq $-0x1
popq %r15
pushq $0x7
popq %rdx
movabsq $0x7ffffffffffff000, %rdi # imm = 0x7FFFFFFFFFFFF000
pushq $0x40
popq %rsi
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x24bb6
leaq -0x1(%r12), %rcx
shrq $0x3, %rcx
leaq 0x1e46d(%rip), %r9      # 0x42b00
movzbl (%r9,%rcx), %ecx
leaq 0x1dce1(%rip), %r9      # 0x42380
movq (%r9,%rcx,8), %rbp
addq %r12, %rax
cmpq $0x1000, %rax           # imm = 0x1000
ja 0x24bef
decq %rax
shrq $0x3, %rax
leaq 0x1e440(%rip), %rcx     # 0x42b00
movzbl (%rcx,%rax), %eax
leaq 0x1dcb5(%rip), %rcx     # 0x42380
movq (%rcx,%rax,8), %r15
movq 0x32e6a(%rip), %rax     # 0x57540
cmpq %rbx, %rax
jb 0x24c23
cmpq %rax, %rbp
ja 0x24c23
cmpq $0x3800, %rbx           # imm = 0x3800
ja 0x24751
cmpq $0x3800, %r15           # imm = 0x3800
ja 0x2473e
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x24c46
leaq -0x1(%r15), %rax
shrq $0x3, %rax
leaq 0x1e3ea(%rip), %rcx     # 0x42b00
movzbl (%rcx,%rax), %ebp
cmpq $0x1000, %rbx           # imm = 0x1000
ja 0x24c55
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x1e3ca(%rip), %rcx     # 0x42b00
movzbl (%rcx,%rax), %eax
cmpl %eax, %ebp
je 0x24763
cmpq %rbx, %r12
ja 0x24992
cmpq %rbx, %r15
jae 0x24763
jmp 0x24992
cmpq $0x3801, %r15           # imm = 0x3801
jb 0x24992
cmpq %rbx, %r15
jne 0x2476b
xorl %r14d, %r14d
jmp 0x24995
leaq 0x32f3e(%rip), %rax     # 0x576b0
movq (%rax), %r13
notq %r13
andq %r14, %r13
movq (%r13), %rsi
movq %r15, %r12
subq %rbx, %r12
jbe 0x24863
movl %r8d, 0x8(%rsp)
movq %r14, 0x18(%rsp)
subq %r13, %r14
shrq $0xc, %r14
leaq 0x1000(%rbx), %r12
shrq $0xc, %r12
movq %rsi, 0x20(%rsp)
leaq 0x8(%rsi), %rdi
movq %rdi, 0x10(%rsp)
callq 0x106d0
movq %r12, %rcx
movq %r14, 0x30(%rsp)
addq %r14, %rcx
leaq 0x32eec(%rip), %rax     # 0x576b8
cmpq (%rax), %rcx
jae 0x24959
movq 0x32d7c(%rip), %rsi     # 0x57558
movq %rcx, %rax
subq %rsi, %rax
movq 0x68(%r13,%rax,8), %r14
movb $0x1, %al
testb $0x1, %r14b
jne 0x2496a
movl %eax, (%rsp)
shrq %r14
andq $-0x1000, %r14          # imm = 0xF000
addq %rbx, %r14
cmpq %rbp, %r14
jb 0x2496d
leaq 0x1e2ed(%rip), %r12     # 0x42b00
leaq 0x1db66(%rip), %rbp     # 0x42380
movl 0x8(%rsp), %edx
cmpq %r15, %r14
jae 0x24a30
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x24845
decq %r15
shrq $0x3, %r15
movzbl (%r12,%r15), %eax
decl %eax
movq (%rbp,%rax,8), %r15
jmp 0x2481e
movq %r15, %rdi
movq %rcx, %r15
movq %rsi, 0x28(%rsp)
callq 0x284a4
movq 0x28(%rsp), %rsi
movq %r15, %rcx
movl 0x8(%rsp), %edx
jmp 0x2483c
leaq 0x31db8(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x24c62
subq %r13, %r14
shrq $0xc, %r14
movq 0x32cdf(%rip), %rax     # 0x57560
addq %r13, %rax
imulq $0x60, %r14, %rcx
addq %rax, %rcx
xorl %r14d, %r14d
movq 0x32cc3(%rip), %rax     # 0x57558
xorl %edx, %edx
subq %rax, %rdx
imulq $0x60, %rdx, %rax
addq %rcx, %rax
addq $0x10, %rax
movq %rax, (%rsp)
leaq 0x8(%rsi), %rdi
movq %rdi, 0x8(%rsp)
movq %rsi, %rbp
callq 0x106d0
movl $0x1000, %r8d           # imm = 0x1000
leaq (%rbx,%r8), %rcx
addq %r15, %r8
pushq $0x1
popq %r9
movq %rbp, %rdi
movq %r13, %rsi
movq (%rsp), %rdx
callq 0x285ca
movq %rbx, %rdi
callq 0x284a4
movl %eax, %ebx
movq %r15, %rdi
callq 0x284a4
addl $-0x27, %ebx
movq 0x98(%rbp), %rcx
shlq $0x5, %rbx
incq 0x8(%rcx,%rbx)
decq 0x18(%rcx,%rbx)
addl $-0x27, %eax
movdqu 0x60(%rbp), %xmm0
movdqu 0x70(%rbp), %xmm1
pcmpeqd %xmm2, %xmm2
psubq %xmm2, %xmm1
movdqu %xmm1, 0x70(%rbp)
movq %r12, %xmm1
shufpd $0x2, 0x1e5b4(%rip), %xmm1 # xmm1 = xmm1[0],mem[1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x60(%rbp)
shlq $0x5, %rax
incq (%rcx,%rax)
movdqu 0x10(%rcx,%rax), %xmm0
psubq %xmm2, %xmm0
movdqu %xmm0, 0x10(%rcx,%rax)
movq 0x8(%rsp), %rdi
callq 0x10440
jmp 0x24995
movb $0x1, %al
movl %eax, (%rsp)
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %r14
jmp 0x24977
movl %eax, (%rsp)
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x10440
movl 0x8(%rsp), %eax
movl (%rsp), %ecx
orb %cl, %al
je 0x249a7
testb %cl, %cl
je 0x24763
movb $0x1, %r14b
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x31c73(%rip), %rax     # 0x56621
cmpb $0x1, (%rax)
je 0x24c7f
leaq 0x31c75(%rip), %rax     # 0x56633
cmpb $0x1, (%rax)
jne 0x24763
leaq (%r14,%rbx), %r15
leaq 0x32cde(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r14, %rax
movq %r14, %rdi
cmpq %r14, %rax
je 0x24d2c
subq %rax, %rdi
shrq $0xc, %rdi
subq 0x32b63(%rip), %rdi     # 0x57558
movq 0x68(%rax,%rdi,8), %rdx
movl %edx, %eax
shrl $0x5, %eax
movl $0xff, %ecx
andl %ecx, %eax
cmpl %ecx, %eax
je 0x24d4c
movl %eax, %eax
leaq 0x1d969(%rip), %rcx     # 0x42380
movq (%rcx,%rax,8), %rdx
subq %rbx, %rdx
xorl %r14d, %r14d
movq %r15, %rdi
xorl %esi, %esi
callq 0x10270
jmp 0x24995
movq %r15, %r12
subq %rbx, %r12
je 0x2496d
movq 0x32b1d(%rip), %rax     # 0x57560
addq %r13, %rax
imulq $0x60, %rcx, %rcx
addq %rax, %rcx
negq %rsi
imulq $0x60, %rsi, %rax
leaq (%rax,%rcx), %rsi
addq $0x10, %rsi
movzbl %dl, %ecx
movq 0x20(%rsp), %rdi
movq %r12, %rdx
callq 0x26a10
testb %al, %al
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %rbp
jne 0x24977
movq %r12, (%rsp)
cmpb $0x0, 0x8(%rsp)
je 0x24aa5
leaq (%r14,%rbx), %rdi
leaq 0xfff(%r14), %rdx
andq $-0x1000, %rdx          # imm = 0xF000
subq %r14, %rdx
xorl %esi, %esi
callq 0x10270
movl $0x1000, %r12d          # imm = 0x1000
leaq (%r15,%r12), %rax
shrq $0xc, %rax
movq 0x32a9e(%rip), %rcx     # 0x57558
movq 0x30(%rsp), %r9
addq %r9, %rax
decq %rax
subq %rcx, %r9
movl 0x68(%r13,%r9,8), %edx
movq %rax, %rsi
subq %rcx, %rsi
movl 0x68(%r13,%rsi,8), %ecx
orl %edx, %ecx
andl $0x10, %ecx
movl %ecx, %esi
shrl %esi
xorl $0x8, %esi
andl %esi, %edx
leaq 0x2000(,%r15,2), %rdi
orq %rcx, %rdi
movl $0x1fe3, %r8d           # imm = 0x1FE3
orq %r8, %rdi
orq %rdx, %rdi
movq %rdi, 0x68(%r13,%r9,8)
subq 0x32a4f(%rip), %rax     # 0x57558
andl 0x68(%r13,%rax,8), %esi
orl %ecx, %esi
orq %r8, %rsi
movq %rsi, 0x68(%r13,%rax,8)
movq %rbx, %rdi
callq 0x284a4
movl %eax, %r13d
addl $-0x27, %r13d
cmpq %r12, %r15
ja 0x24ce4
decq %r15
shrq $0x3, %r15
leaq 0x1dfc2(%rip), %rax     # 0x42b00
movzbl (%rax,%r15), %eax
movq 0x20(%rsp), %rdx
movq (%rsp), %rsi
movq 0x98(%rdx), %rcx
shlq $0x5, %r13
incq 0x8(%rcx,%r13)
decq 0x18(%rcx,%r13)
addl $-0x27, %eax
movdqu 0x60(%rdx), %xmm0
movdqu 0x70(%rdx), %xmm1
pcmpeqd %xmm2, %xmm2
psubq %xmm2, %xmm1
movdqu %xmm1, 0x70(%rdx)
movq %rsi, %xmm1
shufpd $0x2, 0x1e357(%rip), %xmm1 # xmm1 = xmm1[0],mem[1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x60(%rdx)
shlq $0x5, %rax
incq (%rcx,%rax)
movdqu 0x10(%rcx,%rax), %xmm0
psubq %xmm2, %xmm0
movdqu %xmm0, 0x10(%rcx,%rax)
movl $0x0, (%rsp)
jmp 0x24977
testq %r12, %r12
js 0x24cf1
leaq -0x1(,%r12,2), %rcx
bsrq %rcx, %r9
leal -0x3(%r9), %ecx
movq %r15, %rbp
shlq %cl, %rbp
cmpq $0x6, %r9
notq %rbp
cmovbq %rdx, %rbp
leaq (%r12,%rbp), %rcx
notq %rbp
andq %rcx, %rbp
jmp 0x246a3
testq %rax, %rax
js 0x24d0b
leaq -0x1(,%rax,2), %rcx
bsrq %rcx, %rsi
leal -0x3(%rsi), %ecx
shlq %cl, %r15
cmpq $0x6, %rsi
notq %r15
cmovbq %rdx, %r15
addq %r15, %rax
notq %r15
andq %rax, %r15
jmp 0x246cf
movzbl %r8b, %r8d
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x305d2
movq %r15, %rdi
callq 0x284a4
movl %eax, %ebp
jmp 0x2471a
movq %rbx, %rdi
callq 0x284a4
jmp 0x2473a
leaq (%r15,%r14), %rdi
movq %rbx, %rdx
subq %r15, %rdx
movq %rsi, %rbp
pushq $0x5a
popq %rsi
callq 0x10270
movq %rbp, %rsi
jmp 0x24873
leaq (%r14,%rbx), %r15
leaq 0x32a26(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r14, %rax
movq %r14, %rdi
cmpq %r14, %rax
je 0x24d22
subq %rax, %rdi
shrq $0xc, %rdi
subq 0x328ab(%rip), %rdi     # 0x57558
movq 0x68(%rax,%rdi,8), %rdx
movl %edx, %eax
shrl $0x5, %eax
movl $0xff, %ecx
andl %ecx, %eax
cmpl %ecx, %eax
je 0x24d39
movl %eax, %eax
leaq 0x1d6b5(%rip), %rcx     # 0x42380
movq (%rcx,%rax,8), %rdx
subq %rbx, %rdx
movq %r15, %rdi
movl $0xa5, %esi
callq 0x10270
jmp 0x24763
movq %r15, %rdi
callq 0x284a4
jmp 0x24b43
leaq 0xfff(%rdi), %rcx
andq %r12, %rcx
cmpq $0x1, %rcx
movq %rsi, %r9
sbbq $0x0, %r9
jmp 0x24bcb
orq $0xfff, %rdi            # imm = 0xFFF
andq %rax, %rdi
cmpq $0x1, %rdi
sbbq $0x0, %rsi
jmp 0x24c04
callq 0x311c1
movq %rax, %rdx
jmp 0x24ccf
callq 0x311c1
movq %rax, %rdx
jmp 0x24a1b
shrq %rdx
andq $-0x1000, %rdx          # imm = 0xF000
addq $-0x1000, %rdx          # imm = 0xF000
jmp 0x24ccf
shrq %rdx
andq $-0x1000, %rdx          # imm = 0xF000
addq $-0x1000, %rdx          # imm = 0xF000
jmp 0x24a1b