// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/arena.c
// Function: je_arena_ralloc_no_move
bool
arena_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size,
    size_t extra, bool zero)
{
	size_t usize_min, usize_max;

	/* Calls with non-zero extra had to clamp extra. */
	assert(extra == 0 || size + extra <= HUGE_MAXCLASS);

	if (unlikely(size > HUGE_MAXCLASS))
		return (true);

	usize_min = s2u(size);
	usize_max = s2u(size + extra);
	if (likely(oldsize <= large_maxclass && usize_min <= large_maxclass)) {
		arena_chunk_t *chunk;

		/*
		 * 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 (true);
		} else {
			if (usize_max <= SMALL_MAXCLASS)
				return (true);
			if (arena_ralloc_large(tsdn, ptr, oldsize, usize_min,
			    usize_max, zero))
				return (true);
		}

		chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
		arena_decay_tick(tsdn, extent_node_arena_get(&chunk->node));
		return (false);
	} else {
		return (huge_ralloc_no_move(tsdn, ptr, oldsize, usize_min,
		    usize_max, zero));
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movabsq $0x7000000000000000, %rdx # imm = 0x7000000000000000
movb $0x1, %r13b
cmpq %rdx, %rcx
ja 0xe339
movq %rcx, %r14
movq %rsi, %r10
pushq $-0x1
popq %r12
pushq $0x7
popq %rax
cmpq $0x1000, %rcx           # imm = 0x1000
ja 0xe5c8
leaq -0x1(%r14), %rcx
shrq $0x3, %rcx
leaq 0x2dd03(%rip), %rsi     # 0x3bdc0
movzbl (%rsi,%rcx), %ecx
leaq 0x2d578(%rip), %rsi     # 0x3b640
movq (%rsi,%rcx,8), %rbx
addq %r14, %r8
cmpq $0x1000, %r8            # imm = 0x1000
ja 0xe5f8
decq %r8
shrq $0x3, %r8
leaq 0x2dcd6(%rip), %rax     # 0x3bdc0
movzbl (%rax,%r8), %eax
leaq 0x2d54a(%rip), %rcx     # 0x3b640
movq (%rcx,%rax,8), %r12
movq 0x3ee9f(%rip), %rax     # 0x4cfa0
movzbl %r9b, %esi
cmpq %r15, %rax
jb 0xe62d
cmpq %rax, %rbx
ja 0xe62d
cmpq $0x3800, %r15           # imm = 0x3800
ja 0xe189
cmpq $0x3800, %r12           # imm = 0x3800
ja 0xe172
cmpq $0x1000, %r12           # imm = 0x1000
ja 0xe669
leaq -0x1(%r12), %rax
shrq $0x3, %rax
leaq 0x2dc7a(%rip), %rcx     # 0x3bdc0
movzbl (%rcx,%rax), %ebx
cmpq $0x1000, %r15           # imm = 0x1000
ja 0xe684
leaq -0x1(%r15), %rax
shrq $0x3, %rax
leaq 0x2dc5a(%rip), %rcx     # 0x3bdc0
movzbl (%rcx,%rax), %eax
cmpl %eax, %ebx
je 0xe2e6
cmpq %r15, %r14
ja 0xe339
cmpq %r12, %r15
jbe 0xe2e6
jmp 0xe339
cmpq $0x3801, %r12           # imm = 0x3801
jb 0xe339
cmpq %r12, %r15
je 0xe2e6
leaq 0x3ef2a(%rip), %rax     # 0x4d0d0
movq (%rax), %rcx
notq %rcx
andq %r10, %rcx
movq (%rcx), %r14
movq %r15, %rdx
subq %r12, %rdx
movq %r10, 0x8(%rsp)
jae 0xe4b7
movl %esi, 0x34(%rsp)
movl %r9d, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq %r10, %rbp
subq %rcx, %rbp
shrq $0xc, %rbp
leaq 0x1000(%r15), %r13
shrq $0xc, %r13
leaq 0x10(%r14), %rdi
movq %rdi, 0x18(%rsp)
movq %rcx, 0x38(%rsp)
callq 0xb5a0
movq %rbp, 0x40(%rsp)
addq %rbp, %r13
leaq 0x3eed0(%rip), %rax     # 0x4d0d8
cmpq (%rax), %r13
jae 0xe29b
movq %r14, 0x28(%rsp)
movq 0x3eda3(%rip), %rbp     # 0x4cfc0
movq %r13, %rax
subq %rbp, %rax
movq 0x38(%rsp), %rcx
movq 0x78(%rcx,%rax,8), %r14
testb $0x1, %r14b
jne 0xe29b
shrq %r14
andq $-0x1000, %r14          # imm = 0xF000
addq %r15, %r14
cmpq %rbx, %r14
jb 0xe29b
cmpq %r12, %r14
jae 0xe28f
leaq 0x2db6f(%rip), %rdx     # 0x3bdc0
leaq 0x2d3e8(%rip), %rbx     # 0x3b640
cmpq $0x1000, %r12           # imm = 0x1000
ja 0xe27a
decq %r12
shrq $0x3, %r12
movzbl (%rdx,%r12), %eax
decl %eax
movq (%rbx,%rax,8), %r12
cmpq %r12, %r14
jb 0xe258
jmp 0xe28f
movq %r12, %rdi
movq %rdx, %r12
callq 0xfdc2
movq %r12, %rdx
movq 0x38(%rsp), %rcx
jmp 0xe26d
movq %r12, %rdx
subq %r15, %rdx
jne 0xe34b
movb $0x1, %bpl
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0xb380
movl 0x20(%rsp), %eax
orb %bpl, %al
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r10
jne 0xe2de
leaq 0x3e25c(%rip), %rax     # 0x4c521
cmpb $0x1, (%rax)
je 0xe6a1
leaq 0x3e25e(%rip), %rax     # 0x4c533
cmpb $0x1, (%rax)
je 0xe704
movb $0x1, %r13b
testb %bpl, %bpl
jne 0xe339
testq %rdi, %rdi
je 0xe336
leaq 0x3edde(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %r10, %rax
movq (%rax), %rbx
movl (%rbx), %esi
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0xe5b8
cmpl %esi, 0x40(%rdi)
jbe 0xe5b8
leaq (%rax,%rsi,8), %rax
testq %rax, %rax
je 0xe336
movl (%rax), %ecx
testl %ecx, %ecx
jle 0xe64f
leal -0x1(%rcx), %edx
movl %edx, (%rax)
testl %ecx, %ecx
jle 0xe657
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3ec76(%rip), %rax     # 0x4cfc8
addq %rcx, %rax
movq %rcx, %rbx
imulq $0x60, %r13, %rcx
addq %rax, %rcx
negq %rbp
imulq $0x60, %rbp, %rax
leaq (%rax,%rcx), %rsi
addq $0x18, %rsi
pushq $0x1
popq %rcx
movq 0x28(%rsp), %rdi
movl 0x34(%rsp), %r8d
callq 0x25003
testb %al, %al
movb $0x1, %bpl
movq 0x18(%rsp), %r13
jne 0xe2a3
cmpb $0x0, 0x20(%rsp)
je 0xe3b6
movq 0x8(%rsp), %rax
leaq (%rax,%r15), %rdi
movl %edi, %eax
andl $0xfff, %eax            # imm = 0xFFF
movl $0x1000, %edx           # imm = 0x1000
subq %rax, %rdx
xorl %esi, %esi
callq 0xb230
movl $0x1000, %r14d          # imm = 0x1000
leaq (%r12,%r14), %rax
shrq $0xc, %rax
movq 0x3ebf5(%rip), %rcx     # 0x4cfc0
movq 0x40(%rsp), %r10
addq %r10, %rax
decq %rax
subq %rcx, %r10
movl 0x78(%rbx,%r10,8), %edx
movq %rax, %rsi
subq %rcx, %rsi
movl 0x78(%rbx,%rsi,8), %ecx
orl %edx, %ecx
andl $0x10, %ecx
movl %ecx, %esi
shrl %esi
xorl $0x8, %esi
andl %esi, %edx
leaq 0x2000(,%r12,2), %rdi
orq %rcx, %rdi
movl $0x1fe3, %r8d           # imm = 0x1FE3
orq %r8, %rdi
orq %rdx, %rdi
movq %rdi, 0x78(%rbx,%r10,8)
subq 0x3eba7(%rip), %rax     # 0x4cfc0
andl 0x78(%rbx,%rax,8), %esi
orl %ecx, %esi
orq %r8, %rsi
movq %rsi, 0x78(%rbx,%rax,8)
movq %r15, %rdi
callq 0xfdc2
movl %eax, %ebx
addl $-0x27, %ebx
cmpq %r14, %r12
ja 0xe79b
leaq -0x1(%r12), %rax
shrq $0x3, %rax
leaq 0x2d973(%rip), %rcx     # 0x3bdc0
movzbl (%rcx,%rax), %eax
movq 0x28(%rsp), %rsi
incq 0xa8(%rsi)
movq 0x98(%rsi), %rcx
movq 0xd0(%rsi), %rdx
subq %r15, %rcx
movq %rcx, 0x98(%rsi)
shlq $0x5, %rbx
incq 0x8(%rdx,%rbx)
decq 0x18(%rdx,%rbx)
incq 0xa0(%rsi)
incq 0xb0(%rsi)
addl $-0x27, %eax
addq %r12, %rcx
movq %rcx, 0x98(%rsi)
shlq $0x5, %rax
incq (%rdx,%rax)
incq 0x10(%rdx,%rax)
incq 0x18(%rdx,%rax)
xorl %ebp, %ebp
jmp 0xe2a3
movq %r14, %rbp
movq %rdi, %r13
leaq 0x3e05e(%rip), %rax     # 0x4c522
cmpb $0x1, (%rax)
je 0xe776
subq %rcx, %r10
shrq $0xc, %r10
movq %rcx, %rbx
movq 0x3eaea(%rip), %rcx     # 0x4cfc8
addq %rbx, %rcx
imulq $0x60, %r10, %rax
xorl %edx, %edx
subq 0x3ead2(%rip), %rdx     # 0x4cfc0
addq %rcx, %rax
imulq $0x60, %rdx, %rcx
leaq (%rcx,%rax), %r14
addq $0x18, %r14
leaq 0x10(%rbp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xb5a0
movl $0x1000, %r9d           # imm = 0x1000
leaq (%r15,%r9), %r8
addq %r12, %r9
movl $0x1, (%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xfe5b
movq %r15, %rdi
callq 0xfdc2
movl %eax, %r14d
addl $-0x27, %r14d
movq %r12, %rdi
callq 0xfdc2
incq 0xa8(%rbp)
movq 0x98(%rbp), %rcx
movq 0xd0(%rbp), %rdx
subq %r15, %rcx
movq %rcx, 0x98(%rbp)
shlq $0x5, %r14
incq 0x8(%rdx,%r14)
decq 0x18(%rdx,%r14)
incq 0xa0(%rbp)
incq 0xb0(%rbp)
addl $-0x27, %eax
addq %r12, %rcx
movq %rcx, 0x98(%rbp)
shlq $0x5, %rax
incq (%rdx,%rax)
incq 0x10(%rdx,%rax)
incq 0x18(%rdx,%rax)
movq 0x20(%rsp), %rdi
callq 0xb380
movq 0x8(%rsp), %r10
movq %r13, %rdi
jmp 0xe2e6
movq %rdi, %r14
callq 0x1afa2
movq %r14, %rdi
jmp 0xe31a
leaq -0x1(,%r14,2), %rcx
bsrq %rcx, %rsi
movl %esi, %ecx
addb $-0x3, %cl
movq %r12, %rbx
shlq %cl, %rbx
cmpl $0x6, %esi
notq %rbx
cmovbq %rax, %rbx
leaq (%rbx,%r14), %rcx
notq %rbx
andq %rcx, %rbx
jmp 0xe0cc
cmpq %rdx, %r8
ja 0xe793
leaq -0x1(,%r8,2), %rcx
bsrq %rcx, %rdx
movl %edx, %ecx
addb $-0x3, %cl
shlq %cl, %r12
cmpl $0x6, %edx
notq %r12
cmovbq %rax, %r12
addq %r12, %r8
notq %r12
andq %r8, %r12
jmp 0xe0fa
movl %esi, %r9d
movq %r10, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq %r12, %r8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10980
movl 0x4(%rax), %edx
jmp 0xe32c
xorl %r13d, %r13d
movq %rbx, %rsi
xorl %edx, %edx
callq 0x226c8
jmp 0xe339
movq %rdi, %rbx
movq %r12, %rdi
movq %r10, %rbp
callq 0xfdc2
movq %rbp, %r10
movq %rbx, %rdi
movl %eax, %ebx
jmp 0xe14a
movq %rdi, 0x10(%rsp)
movq %r15, %rdi
movq %r10, %rbp
callq 0xfdc2
movq %rbp, %r10
movq 0x10(%rsp), %rdi
jmp 0xe16a
leaq (%r10,%r15), %rbx
leaq 0x3ea24(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %r10, %rax
cmpq %r10, %rax
je 0xe7a8
movq 0x8(%rsp), %rcx
subq %rax, %rcx
shrq $0xc, %rcx
subq 0x3e8ef(%rip), %rcx     # 0x4cfc0
movq 0x78(%rax,%rcx,8), %rdx
movl %edx, %eax
shrl $0x5, %eax
movl $0xff, %ecx
andl %ecx, %eax
cmpl %ecx, %eax
je 0xe7bf
movl %eax, %eax
leaq 0x2cf4d(%rip), %rcx     # 0x3b640
movq (%rcx,%rax,8), %rdx
subq %r15, %rdx
movq %rbx, %rdi
movl $0xa5, %esi
jmp 0xe762
leaq (%r10,%r15), %rbx
leaq 0x3e9c1(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %r10, %rax
cmpq %r10, %rax
je 0xe7d5
movq 0x8(%rsp), %rcx
subq %rax, %rcx
shrq $0xc, %rcx
subq 0x3e88c(%rip), %rcx     # 0x4cfc0
movq 0x78(%rax,%rcx,8), %rdx
movl %edx, %eax
shrl $0x5, %eax
movl $0xff, %ecx
andl %ecx, %eax
cmpl %ecx, %eax
je 0xe7ec
movl %eax, %eax
leaq 0x2ceea(%rip), %rcx     # 0x3b640
movq (%rcx,%rax,8), %rdx
subq %r15, %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb230
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r10
jmp 0xe2de
leaq (%r12,%r10), %rdi
pushq $0x5a
popq %rsi
movq %r10, %rbx
movq %rcx, %r14
callq 0xb230
movq %r14, %rcx
movq %rbx, %r10
jmp 0xe4cd
xorl %r12d, %r12d
jmp 0xe0fa
movq %r12, %rdi
callq 0xfdc2
jmp 0xe451
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x2e4e2
movq %rax, %rdx
jmp 0xe6f7
shrq %rdx
andq $-0x1000, %rdx          # imm = 0xF000
addq $-0x1000, %rdx          # imm = 0xF000
jmp 0xe6f7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x2e4e2
movq %rax, %rdx
jmp 0xe75a
shrq %rdx
andq $-0x1000, %rdx          # imm = 0xF000
addq $-0x1000, %rdx          # imm = 0xF000
jmp 0xe75a