// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movb %r9b, %al
movq %rdi, -0x188(%rbp)
movq %rsi, -0x190(%rbp)
movq %rdx, -0x198(%rbp)
movq %rcx, -0x1a0(%rbp)
movq %r8, -0x1a8(%rbp)
andb $0x1, %al
movb %al, -0x1a9(%rbp)
jmp 0x3ff0b
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
cmpq %rax, -0x1a0(%rbp)
seta %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3ff3c
movb $0x1, -0x179(%rbp)
jmp 0x40567
movq -0x1a0(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpq $0x1000, -0x138(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x3ff61
jmp 0x3ffe4
movq -0x138(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x50aed(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, %ecx
leaq 0x50348(%rip), %rax     # 0x90300
movq (%rax,%rcx,8), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x400a2
movq -0x138(%rbp), %rax
movq %rax, -0x48(%rbp)
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
cmpq %rax, -0x48(%rbp)
seta %al
testb $0x1, %al
jne 0x40006
jmp 0x40013
movq $0x0, -0x40(%rbp)
jmp 0x40097
movq -0x48(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x46fc0
movl %eax, %eax
movq %rax, -0x50(%rbp)
cmpq $0x6, -0x50(%rbp)
jae 0x4003e
movl $0x3, %eax
movq %rax, -0x1d0(%rbp)
jmp 0x40051
movq -0x50(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
addq -0x68(%rbp), %rax
movq -0x68(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1a0(%rbp), %rax
addq -0x1a8(%rbp), %rax
movq %rax, -0x148(%rbp)
cmpq $0x1000, -0x148(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x400d9
jmp 0x40150
movq -0x148(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x50975(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, %ecx
leaq 0x501d6(%rip), %rax     # 0x90300
movq (%rax,%rcx,8), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x4020e
movq -0x148(%rbp), %rax
movq %rax, -0x10(%rbp)
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
cmpq %rax, -0x10(%rbp)
seta %al
testb $0x1, %al
jne 0x40172
jmp 0x4017f
movq $0x0, -0x8(%rbp)
jmp 0x40203
movq -0x10(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x46fc0
movl %eax, %eax
movq %rax, -0x18(%rbp)
cmpq $0x6, -0x18(%rbp)
jae 0x401aa
movl $0x3, %eax
movq %rax, -0x1d8(%rbp)
jmp 0x401bd
movq -0x18(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x30(%rbp), %rax
movq -0x30(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x198(%rbp), %rcx
xorl %eax, %eax
cmpq 0x63d54(%rip), %rcx     # 0xa3f80
movb %al, -0x1d9(%rbp)
ja 0x4024b
movq -0x1b8(%rbp), %rax
cmpq 0x63d3e(%rip), %rax     # 0xa3f80
setbe %al
movb %al, -0x1d9(%rbp)
movb -0x1d9(%rbp), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x4052b
cmpq $0x3800, -0x198(%rbp) # imm = 0x3800
ja 0x403b4
jmp 0x40279
jmp 0x4027b
cmpq $0x3800, -0x1c0(%rbp) # imm = 0x3800
ja 0x40386
movq -0x1c0(%rbp), %rax
movq %rax, -0x158(%rbp)
cmpq $0x1000, -0x158(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x402ae
jmp 0x402ea
movq -0x158(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x507ae(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movl %eax, -0x14c(%rbp)
jmp 0x402fc
movq -0x158(%rbp), %rdi
callq 0x4d7d0
movl %eax, -0x14c(%rbp)
movl -0x14c(%rbp), %eax
movl %eax, -0x1e0(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x168(%rbp)
cmpq $0x1000, -0x168(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x4032a
jmp 0x40366
movq -0x168(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x50732(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movl %eax, -0x15c(%rbp)
jmp 0x40378
movq -0x168(%rbp), %rdi
callq 0x4d7d0
movl %eax, -0x15c(%rbp)
movl -0x1e0(%rbp), %eax
cmpl -0x15c(%rbp), %eax
je 0x403b2
movq -0x1a0(%rbp), %rax
cmpq -0x198(%rbp), %rax
ja 0x403a6
movq -0x1c0(%rbp), %rax
cmpq -0x198(%rbp), %rax
jae 0x403b2
movb $0x1, -0x179(%rbp)
jmp 0x40567
jmp 0x40415
cmpq $0x3800, -0x1c0(%rbp) # imm = 0x3800
ja 0x403cd
movb $0x1, -0x179(%rbp)
jmp 0x40567
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1b8(%rbp), %rcx
movq -0x1c0(%rbp), %r8
movb -0x1a9(%rbp), %al
andb $0x1, %al
movzbl %al, %r9d
callq 0x40580
testb $0x1, %al
jne 0x40407
jmp 0x40413
movb $0x1, -0x179(%rbp)
jmp 0x40567
jmp 0x40415
movq -0x190(%rbp), %rax
leaq 0x63c8d(%rip), %rcx     # 0xa40b0
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x1c8(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1c8(%rbp), %rdi
callq 0x40d80
movq -0x1e8(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rcx
movq -0x178(%rbp), %rax
movq %rcx, -0x108(%rbp)
movq %rax, -0x110(%rbp)
movl $0x1, -0x114(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x100(%rbp)
cmpq $0x0, -0x100(%rbp)
sete %al
testb $0x1, %al
jne 0x404a8
jmp 0x404aa
jmp 0x40522
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rdi
movq -0x110(%rbp), %rax
movl (%rax), %esi
callq 0x4d580
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
sete %al
testb $0x1, %al
jne 0x404f3
jmp 0x404f5
jmp 0x40522
movq -0x128(%rbp), %rdi
movl -0x114(%rbp), %esi
callq 0x4d5e0
testb $0x1, %al
jne 0x4050d
jmp 0x40522
movq -0x108(%rbp), %rdi
movq -0x110(%rbp), %rsi
xorl %edx, %edx
callq 0x3b8a0
movb $0x0, -0x179(%rbp)
jmp 0x40567
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1b8(%rbp), %rcx
movq -0x1c0(%rbp), %r8
movb -0x1a9(%rbp), %al
andb $0x1, %al
movzbl %al, %r9d
callq 0x63630
andb $0x1, %al
movb %al, -0x179(%rbp)
movb -0x179(%rbp), %al
andb $0x1, %al
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
nopl (%rax,%rax)