// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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, %r14
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
cmpq $0x1000, %rdx           # imm = 0x1000
ja 0x3c037
leaq -0x1(%r12), %rax
shrq $0x3, %rax
leaq 0x1dc75(%rip), %rcx     # 0x59800
movzbl (%rcx,%rax), %eax
leaq 0x1d4ea(%rip), %rcx     # 0x59080
movq (%rcx,%rax,8), %rbp
addq %r12, %r14
cmpq $0x1000, %r14           # imm = 0x1000
ja 0x3c055
decq %r14
shrq $0x3, %r14
leaq 0x1dc48(%rip), %rax     # 0x59800
movzbl (%rax,%r14), %eax
leaq 0x1d4bc(%rip), %rcx     # 0x59080
movq (%rcx,%rax,8), %r14
movq 0x48961(%rip), %rax     # 0x84530
cmpq %rbx, %rax
jb 0x3c073
cmpq %rax, %rbp
ja 0x3c073
cmpq $0x3800, %rbx           # imm = 0x3800
ja 0x3bc4a
cmpq $0x3800, %r14           # imm = 0x3800
ja 0x3bc37
cmpq $0x1000, %r14           # imm = 0x1000
ja 0x3c096
leaq -0x1(%r14), %rax
shrq $0x3, %rax
leaq 0x1dbf1(%rip), %rcx     # 0x59800
movzbl (%rcx,%rax), %ebp
cmpq $0x1000, %rbx           # imm = 0x1000
ja 0x3c0a5
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x1dbd1(%rip), %rcx     # 0x59800
movzbl (%rcx,%rax), %eax
cmpl %eax, %ebp
je 0x3bc5c
cmpq %rbx, %r12
ja 0x3beb0
cmpq %r14, %rbx
jbe 0x3bc5c
jmp 0x3beb0
cmpq $0x3801, %r14           # imm = 0x3801
jb 0x3beb0
cmpq %r14, %rbx
jne 0x3bc64
xorl %r15d, %r15d
jmp 0x3beb3
leaq 0x48a35(%rip), %rax     # 0x846a0
movq (%rax), %rcx
notq %rcx
andq %r13, %rcx
movq (%rcx), %rsi
movq %rbx, %rdx
subq %r14, %rdx
movq %rcx, 0x20(%rsp)
jae 0x3bd65
movl %r8d, (%rsp)
movq %r13, %r15
subq %rcx, %r15
shrq $0xc, %r15
leaq 0x1000(%rbx), %r12
shrq $0xc, %r12
movq %rsi, 0x18(%rsp)
leaq 0x8(%rsi), %rdi
movq %rdi, 0x10(%rsp)
callq 0x12960
movq %r15, 0x28(%rsp)
addq %r15, %r12
leaq 0x489e5(%rip), %rax     # 0x846a8
movb $0x1, %r15b
cmpq (%rax), %r12
jae 0x3be5b
movq %r13, 0x8(%rsp)
movq 0x4886d(%rip), %r13     # 0x84548
movq %r12, %rax
subq %r13, %rax
movq 0x20(%rsp), %rcx
movq 0x68(%rcx,%rax,8), %r15
testb $0x1, %r15b
jne 0x3be6a
shrq %r15
andq $-0x1000, %r15          # imm = 0xF000
addq %rbx, %r15
cmpq %rbp, %r15
jb 0x3be6a
cmpq %r14, %r15
movl (%rsp), %edi
jae 0x3be62
leaq 0x1dae2(%rip), %rdx     # 0x59800
leaq 0x1d35b(%rip), %rbp     # 0x59080
cmpq $0x1000, %r14           # imm = 0x1000
ja 0x3bd4b
decq %r14
shrq $0x3, %r14
movzbl (%rdx,%r14), %eax
decl %eax
movq (%rbp,%rax,8), %r14
cmpq %r14, %r15
jb 0x3bd25
jmp 0x3be62
movq %r14, %rdi
movq %rcx, %r14
callq 0x3fb29
leaq 0x1daa3(%rip), %rdx     # 0x59800
movq %r14, %rcx
movl (%rsp), %edi
jmp 0x3bd3a
leaq 0x479c6(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
je 0x3c0b2
subq %rcx, %r13
shrq $0xc, %r13
movq 0x487cd(%rip), %rax     # 0x84550
addq %rcx, %rax
leaq (,%r13,2), %rcx
addq %r13, %rcx
shlq $0x5, %rcx
addq %rax, %rcx
xorl %r15d, %r15d
movq 0x487a6(%rip), %rax     # 0x84548
xorl %edx, %edx
subq %rax, %rdx
leaq (%rdx,%rdx,2), %rax
shlq $0x5, %rax
leaq (%rax,%rcx), %rbp
addq $0x10, %rbp
leaq 0x8(%rsi), %rdi
movq %rdi, (%rsp)
movq %rsi, %r12
callq 0x12960
movl $0x1000, %r8d           # imm = 0x1000
leaq (%rbx,%r8), %rcx
addq %r14, %r8
movq %r12, %rdi
movq 0x20(%rsp), %rsi
movq %rbp, %rdx
movl $0x1, %r9d
callq 0x3fc0e
movq %rbx, %rdi
callq 0x3fb29
movl %eax, %r13d
addl $-0x24, %r13d
movq %r14, %rdi
callq 0x3fb29
incq 0x70(%r12)
movq 0x60(%r12), %rcx
movq 0x98(%r12), %rdx
subq %rbx, %rcx
movq %rcx, 0x60(%r12)
shlq $0x5, %r13
incq 0x8(%rdx,%r13)
decq 0x18(%rdx,%r13)
incq 0x68(%r12)
incq 0x78(%r12)
addl $-0x24, %eax
addq %r14, %rcx
movq %rcx, 0x60(%r12)
shlq $0x5, %rax
incq (%rdx,%rax)
incq 0x10(%rdx,%rax)
incq 0x18(%rdx,%rax)
movq (%rsp), %rdi
callq 0x125c0
jmp 0x3beb3
movq 0x10(%rsp), %r12
jmp 0x3be77
movq %r14, %rdx
subq %rbx, %rdx
jne 0x3bec5
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r12
movb $0x1, %r15b
movq %r12, %rdi
callq 0x125c0
movl (%rsp), %eax
orb %r15b, %al
jne 0x3bea7
leaq 0x478a3(%rip), %rax     # 0x83731
cmpb $0x1, (%rax)
je 0x3c0d1
leaq 0x478a5(%rip), %rax     # 0x83743
cmpb $0x1, (%rax)
je 0x3c0e4
testb %r15b, %r15b
je 0x3bc5c
movb $0x1, %r15b
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48684(%rip), %rax     # 0x84550
movq %rcx, %rbp
addq %rcx, %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
addq %rax, %rcx
negq %r13
leaq (,%r13,2), %rax
addq %r13, %rax
shlq $0x5, %rax
leaq (%rax,%rcx), %rsi
addq $0x10, %rsi
movzbl %dil, %r8d
movq 0x18(%rsp), %rdi
movl $0x1, %ecx
callq 0x3e02e
testb %al, %al
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r12
movb $0x1, %r15b
jne 0x3be77
cmpb $0x0, (%rsp)
je 0x3bf41
leaq (%rbx,%r13), %rdi
leaq 0xfff(%r13), %rdx
andq $-0x1000, %rdx          # imm = 0xF000
subq %r13, %rdx
xorl %esi, %esi
callq 0x12380
movl $0x1000, %r15d          # imm = 0x1000
leaq (%r14,%r15), %rax
shrq $0xc, %rax
movq 0x485f2(%rip), %rcx     # 0x84548
movq 0x28(%rsp), %r9
addq %r9, %rax
decq %rax
subq %rcx, %r9
movl 0x68(%rbp,%r9,8), %edx
movq %rax, %rsi
subq %rcx, %rsi
movl 0x68(%rbp,%rsi,8), %ecx
orl %edx, %ecx
andl $0x10, %ecx
movl %ecx, %esi
shrl %esi
xorl $0x8, %esi
andl %esi, %edx
leaq 0x2000(,%r14,2), %rdi
orq %rcx, %rdi
movl $0x1fe3, %r8d           # imm = 0x1FE3
orq %r8, %rdi
orq %rdx, %rdi
movq %rdi, 0x68(%rbp,%r9,8)
subq 0x485a4(%rip), %rax     # 0x84548
andl 0x68(%rbp,%rax,8), %esi
orl %ecx, %esi
orq %r8, %rsi
movq %rsi, 0x68(%rbp,%rax,8)
movq %rbx, %rdi
callq 0x3fb29
movl %eax, %r13d
addl $-0x24, %r13d
cmpq %r15, %r14
ja 0x3c0f7
leaq -0x1(%r14), %rax
shrq $0x3, %rax
leaq 0x1d827(%rip), %rcx     # 0x59800
movzbl (%rcx,%rax), %eax
movq 0x18(%rsp), %rsi
incq 0x70(%rsi)
movq 0x60(%rsi), %rcx
movq 0x98(%rsi), %rdx
subq %rbx, %rcx
movq %rcx, 0x60(%rsi)
shlq $0x5, %r13
incq 0x8(%rdx,%r13)
decq 0x18(%rdx,%r13)
incq 0x68(%rsi)
incq 0x78(%rsi)
addl $-0x24, %eax
addq %r14, %rcx
movq %rcx, 0x60(%rsi)
shlq $0x5, %rax
incq (%rdx,%rax)
incq 0x10(%rdx,%rax)
incq 0x18(%rdx,%rax)
xorl %r15d, %r15d
movq 0x8(%rsp), %r13
jmp 0x3be77
leaq 0x30(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
movl %r8d, %ebp
callq 0x147f8
movl %ebp, %r8d
movq (%r15), %rbp
jmp 0x3bb9a
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl %r8d, %r14d
callq 0x14842
movl %r14d, %r8d
movq (%r15), %r14
jmp 0x3bbc8
movzbl %r8b, %r8d
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r14, %rcx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x480f3
movq %r14, %rdi
callq 0x3fb29
movl %eax, %ebp
jmp 0x3bc13
movq %rbx, %rdi
callq 0x3fb29
jmp 0x3bc33
movq %rsi, %r12
leaq (%r14,%r13), %rdi
movl $0x5a, %esi
movq %rcx, %r15
callq 0x12380
movq %r15, %rcx
movq %r12, %rsi
jmp 0x3bd75
movq %r13, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x14910
jmp 0x3bea7
movq %r13, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1488c
jmp 0x3bea7
movq %r14, %rdi
callq 0x3fb29
jmp 0x3bfdd