// File: /workspace/github_c_makefile_star2_O3/nilyang[P]redis-tdd-annotation/deps/jemalloc/src/arena.c
// Function: arena_ralloc_no_move
void *
arena_ralloc_no_move(void *ptr, size_t oldsize, size_t size, size_t extra,
    bool zero)
{

	/*
	 * Avoid moving the allocation if the size class can be left the same.
	 */
	if (oldsize <= arena_maxclass) {
		if (oldsize <= SMALL_MAXCLASS) {
			assert(arena_bin_info[SMALL_SIZE2BIN(oldsize)].reg_size
			    == oldsize);
			if ((size + extra <= SMALL_MAXCLASS &&
			    SMALL_SIZE2BIN(size + extra) ==
			    SMALL_SIZE2BIN(oldsize)) || (size <= oldsize &&
			    size + extra >= oldsize)) {
				if (config_fill && opt_junk && size < oldsize) {
					memset((void *)((uintptr_t)ptr + size),
					    0x5a, oldsize - size);
				}
				return (ptr);
			}
		} else {
			assert(size <= arena_maxclass);
			if (size + extra > SMALL_MAXCLASS) {
				if (arena_ralloc_large(ptr, oldsize, size,
				    extra, zero) == false)
					return (ptr);
			}
		}
	}

	/* Reallocation would require a move. */
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x5dc95(%rip), %rax     # 0xdf930
cmpq %rsi, (%rax)
jae 0x81cb4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq (%rcx,%rdx), %rax
cmpq $0xe00, %rsi            # imm = 0xE00
ja 0x81d03
cmpq $0xe00, %rax            # imm = 0xE00
ja 0x81cf1
leaq -0x1(%rax), %rcx
shrq $0x3, %rcx
leaq 0x214df(%rip), %rdx     # 0xa31c0
movb (%rcx,%rdx), %cl
leaq -0x1(%r14), %rsi
shrq $0x3, %rsi
cmpb (%rsi,%rdx), %cl
je 0x81d25
cmpq %r15, %r14
setb %cl
cmpq %r14, %rax
setb %al
orb %cl, %al
jne 0x81ca0
jmp 0x81d25
cmpq $0xe01, %rax            # imm = 0xE01
jb 0x81ca0
leaq (%r15,%rcx), %r12
addq $0xfff, %r12            # imm = 0xFFF
movq %r12, %r13
andq $-0x1000, %r13          # imm = 0xF000
cmpq %r14, %r13
jne 0x81d56
subq %r15, %r14
jbe 0x81ca2
leaq 0x5ce26(%rip), %rax     # 0xdeb5b
cmpb $0x0, (%rax)
je 0x81ca2
addq %rbx, %r15
movq %r15, %rdi
movl $0x5a, %esi
movq %r14, %rdx
callq 0x1f110
jmp 0x81ca2
leaq 0x5db23(%rip), %rax     # 0xdf880
movq (%rax), %rdx
notq %rdx
andq %rbx, %rdx
movq (%rdx), %rcx
movq %r13, %rax
subq %r14, %rax
movq %rax, 0x20(%rsp)
movq %rdx, 0x8(%rsp)
jae 0x81e41
leaq 0x5cdd5(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x81da5
leaq (%rbx,%r15), %rdi
movq %r14, %rdx
subq %r15, %rdx
movl $0x5a, %esi
movq %rcx, %r15
callq 0x1f110
movq %r15, %rcx
leaq 0x8(%rcx), %r15
movq %r15, %rdi
movq %rcx, %rbp
callq 0x1faa0
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq %r13, %r8
movl $0x1, %r9d
callq 0x8124f
movq 0x70(%rbp), %rax
shrq $0x7, %r14
andq $-0x20, %r14
incq -0x18(%r14,%rax)
decq -0x8(%r14,%rax)
movdqu 0x50(%rbp), %xmm0
movdqu 0x60(%rbp), %xmm1
pcmpeqd %xmm2, %xmm2
psubq %xmm2, %xmm1
movsd 0x20(%rsp), %xmm3
shufpd $0x2, 0x12219(%rip), %xmm3 # xmm3 = xmm3[0],mem[1]
movdqu %xmm1, 0x60(%rbp)
paddq %xmm0, %xmm3
movdqu %xmm3, 0x50(%rbp)
shrq $0x7, %r12
andq $-0x20, %r12
incq -0x20(%r12,%rax)
movdqu -0x10(%r12,%rax), %xmm0
psubq %xmm2, %xmm0
movdqu %xmm0, -0x10(%r12,%rax)
movq %r15, %rdi
callq 0x1fbb0
jmp 0x81ca2
movl %r8d, %ebp
movq %rbx, %r12
subq %rdx, %r12
shrq $0xc, %r12
movq %r14, %rax
shrq $0xc, %rax
movq %rax, 0x18(%rsp)
movq %rcx, 0x40(%rsp)
leaq 0x8(%rcx), %rdi
movq %rdi, 0x10(%rsp)
callq 0x1faa0
movq 0x8(%rsp), %rdx
movq %r12, 0x38(%rsp)
movq 0x18(%rsp), %rax
leaq (%r12,%rax), %rsi
leaq 0x5da01(%rip), %rax     # 0xdf888
cmpq (%rax), %rsi
jae 0x81ec2
leaq 0x5da95(%rip), %rcx     # 0xdf928
movq %rsi, %rax
subq (%rcx), %rax
leaq (%rax,%rax,2), %rax
movq 0x40(%rdx,%rax,8), %rax
testb $0x1, %al
jne 0x81ec2
leaq 0xfff(%r15), %rcx
andq $-0x1000, %rcx          # imm = 0xF000
andq $-0x1000, %rax          # imm = 0xF000
subq %r14, %rcx
cmpq %rcx, %rax
jae 0x81ed1
movq 0x10(%rsp), %rdi
callq 0x1fbb0
jmp 0x81ca0
leaq (%rax,%r14), %rcx
cmpq %r13, %rcx
movq 0x20(%rsp), %r13
cmovbeq %rax, %r13
leaq 0x30(%rdx), %r12
movq %r13, %xmm0
movdqa %xmm0, 0x20(%rsp)
shlq $0xc, %rsi
addq %rdx, %rsi
movzbl %bpl, %r9d
movl %r9d, 0x8(%rsp)
movl $0xff, %r8d
movq 0x40(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x83614
addq %r14, %r13
movq %r13, %rax
shrq $0xc, %rax
leaq 0x5d9fc(%rip), %r9      # 0xdf928
movq (%r9), %rcx
movq 0x38(%rsp), %rsi
leaq (%rsi,%rax), %rdx
decq %rdx
subq %rcx, %rsi
leaq (%rsi,%rsi,2), %rsi
movq 0x10(%r12,%rsi,8), %rdi
movq %rdx, %r8
subq %rcx, %r8
leaq (%r8,%r8,2), %rcx
movl 0x10(%r12,%rcx,8), %ecx
orl %edi, %ecx
andl $0x8, %ecx
andl $0x4, %edi
orq %r13, %rdi
movl $0xff3, %r8d            # imm = 0xFF3
orq %r8, %rdi
orq %rcx, %rdi
movq %rdi, 0x10(%r12,%rsi,8)
subq (%r9), %rdx
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%r12,%rdx,8), %rsi
andl $0x4, %esi
orq %rcx, %rsi
orq %r8, %rsi
movq %rsi, 0x10(%r12,%rdx,8)
movq 0x70(%rbp), %rcx
movq 0x18(%rsp), %rdx
shlq $0x5, %rdx
incq -0x18(%rdx,%rcx)
decq -0x8(%rdx,%rcx)
movdqu 0x50(%rbp), %xmm0
movdqu 0x60(%rbp), %xmm1
pcmpeqd %xmm2, %xmm2
psubq %xmm2, %xmm1
movdqu %xmm1, 0x60(%rbp)
movapd 0x20(%rsp), %xmm1
shufpd $0x2, 0x12057(%rip), %xmm1 # xmm1 = xmm1[0],mem[1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x50(%rbp)
shlq $0x5, %rax
incq -0x20(%rax,%rcx)
movdqu -0x10(%rax,%rcx), %xmm0
psubq %xmm2, %xmm0
movdqu %xmm0, -0x10(%rax,%rcx)
movq 0x10(%rsp), %rdi
callq 0x1fbb0
cmpb $0x0, 0x8(%rsp)
jne 0x81ca2
leaq 0x5cb65(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
jne 0x81ca2
leaq (%rbx,%r14), %rdi
subq %r14, %r15
xorl %esi, %esi
movq %r15, %rdx
jmp 0x81d4c