// File: /workspace/github_c_makefile_star2_O3/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, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x1000, %rdx           # imm = 0x1000
ja 0x29ef9
leaq -0x1(%r12), %rax
shrq $0x3, %rax
leaq 0x1e56e(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %eax
leaq 0x1dde3(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rbp
addq %r12, %r15
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x29f18
decq %r15
shrq $0x3, %r15
leaq 0x1e541(%rip), %rax     # 0x47fc0
movzbl (%rax,%r15), %eax
leaq 0x1ddb5(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %r15
movq 0x31aaa(%rip), %rax     # 0x5b540
cmpq %rbx, %rax
jb 0x29f37
cmpq %rax, %rbp
ja 0x29f37
cmpq $0x3800, %rbx           # imm = 0x3800
ja 0x29b11
cmpq $0x3800, %r15           # imm = 0x3800
ja 0x29afe
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x29f5a
leaq -0x1(%r15), %rax
shrq $0x3, %rax
leaq 0x1e4ea(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %ebp
cmpq $0x1000, %rbx           # imm = 0x1000
ja 0x29f69
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x1e4ca(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %eax
cmpl %eax, %ebp
je 0x29b23
cmpq %rbx, %r12
ja 0x29d75
cmpq %rbx, %r15
jae 0x29b23
jmp 0x29d75
cmpq $0x3801, %r15           # imm = 0x3801
jb 0x29d75
cmpq %rbx, %r15
jne 0x29b2b
xorl %r14d, %r14d
jmp 0x29d78
leaq 0x31b7e(%rip), %rax     # 0x5b6b0
movq (%rax), %r13
notq %r13
andq %r14, %r13
movq (%r13), %rsi
movq %r15, %r12
subq %rbx, %r12
jbe 0x29c20
movl %r8d, (%rsp)
movq %r14, 0x20(%rsp)
movq %r14, %r12
subq %r13, %r12
shrq $0xc, %r12
leaq 0x1000(%rbx), %r14
shrq $0xc, %r14
movq %rsi, 0x10(%rsp)
leaq 0x8(%rsi), %rdi
movq %rdi, 0x8(%rsp)
callq 0x106d0
movq %r14, %rcx
movq %r12, 0x28(%rsp)
addq %r12, %rcx
leaq 0x31b2a(%rip), %rax     # 0x5b6b8
cmpq (%rax), %rcx
jae 0x29d6b
movq 0x319ba(%rip), %r14     # 0x5b558
movq %rcx, %rax
subq %r14, %rax
movq 0x68(%r13,%rax,8), %r12
testb $0x1, %r12b
jne 0x29d6b
shrq %r12
andq $-0x1000, %r12          # imm = 0xF000
addq %rbx, %r12
cmpq %rbp, %r12
jb 0x29d6b
cmpq %r15, %r12
jae 0x29d20
leaq 0x1e3e7(%rip), %rdx     # 0x47fc0
leaq 0x1dc60(%rip), %rbp     # 0x47840
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x29c06
decq %r15
shrq $0x3, %r15
movzbl (%rdx,%r15), %eax
decl %eax
movq (%rbp,%rax,8), %r15
cmpq %r15, %r12
jb 0x29be0
jmp 0x29d20
movq %r15, %rdi
movq %rcx, 0x18(%rsp)
movq %rdx, %r15
callq 0x2da8d
movq %r15, %rdx
movq 0x18(%rsp), %rcx
jmp 0x29bf5
leaq 0x309fb(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x29f76
subq %r13, %r14
shrq $0xc, %r14
movq 0x31922(%rip), %rax     # 0x5b560
addq %r13, %rax
leaq (%r14,%r14,2), %rcx
shlq $0x5, %rcx
addq %rax, %rcx
xorl %r14d, %r14d
movq 0x31902(%rip), %rax     # 0x5b558
xorl %edx, %edx
subq %rax, %rdx
leaq (%rdx,%rdx,2), %rax
shlq $0x5, %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
movq %rbp, %rdi
movq %r13, %rsi
movq (%rsp), %rdx
movl $0x1, %r9d
callq 0x2db70
movq %rbx, %rdi
callq 0x2da8d
movl %eax, %ebx
movq %r15, %rdi
callq 0x2da8d
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, 0x1c31d(%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 0x29d78
movq %r15, %rbp
subq %rbx, %rbp
je 0x29d6b
movq 0x31831(%rip), %rax     # 0x5b560
addq %r13, %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x5, %rcx
addq %rax, %rcx
negq %r14
leaq (%r14,%r14,2), %rax
shlq $0x5, %rax
leaq (%rax,%rcx), %rsi
addq $0x10, %rsi
movzbl (%rsp), %r8d
movq 0x10(%rsp), %rdi
movq %rbp, %rdx
movl $0x1, %ecx
callq 0x2bf9c
testb %al, %al
je 0x29d8a
movq 0x8(%rsp), %rdi
callq 0x10440
movb $0x1, %r14b
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, (%rsp)
movq 0x20(%rsp), %r14
je 0x29db1
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 0x31792(%rip), %rcx     # 0x5b558
movq 0x28(%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 0x31743(%rip), %rax     # 0x5b558
andl 0x68(%r13,%rax,8), %esi
orl %ecx, %esi
orq %r8, %rsi
movq %rsi, 0x68(%r13,%rax,8)
movq %rbx, %rdi
callq 0x2da8d
movl %eax, %r13d
addl $-0x27, %r13d
cmpq %r12, %r15
ja 0x29f95
decq %r15
shrq $0x3, %r15
leaq 0x1e176(%rip), %rax     # 0x47fc0
movzbl (%rax,%r15), %eax
movq 0x10(%rsp), %rdx
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 %rbp, %xmm1
shufpd $0x2, 0x1c17f(%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)
movq 0x8(%rsp), %rdi
callq 0x10440
cmpb $0x0, (%rsp)
jne 0x29b23
leaq 0x30754(%rip), %rax     # 0x5a621
cmpb $0x1, (%rax)
je 0x29fa2
leaq 0x30756(%rip), %rax     # 0x5a633
cmpb $0x1, (%rax)
jne 0x29b23
movq %r14, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x12045
jmp 0x29b23
leaq 0x30(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl %r8d, %ebp
callq 0x11fb1
movl %ebp, %r8d
movq (%r13), %rbp
jmp 0x29a61
leaq 0x30(%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
movl %r8d, %r15d
callq 0x11ffb
movl %r15d, %r8d
movq (%r13), %r15
jmp 0x29a8f
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 0x36133
movq %r15, %rdi
callq 0x2da8d
movl %eax, %ebp
jmp 0x29ada
movq %rbx, %rdi
callq 0x2da8d
jmp 0x29afa
movq %rsi, %rbp
leaq (%r15,%r14), %rdi
movq %rbx, %rdx
subq %r15, %rdx
movl $0x5a, %esi
callq 0x10270
movq %rbp, %rsi
jmp 0x29c30
movq %r15, %rdi
callq 0x2da8d
jmp 0x29e4f
movq %r14, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x120c9
jmp 0x29b23