// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/quarantine.c
// Function: quarantine_grow
static quarantine_t *
quarantine_grow(tsd_t *tsd, quarantine_t *quarantine)
{
	quarantine_t *ret;

	ret = quarantine_init(tsd, quarantine->lg_maxobjs + 1);
	if (ret == NULL) {
		quarantine_drain_one(tsd, quarantine);
		return (quarantine);
	}

	ret->curbytes = quarantine->curbytes;
	ret->curobjs = quarantine->curobjs;
	if (quarantine->first + quarantine->curobjs <= (ZU(1) <<
	    quarantine->lg_maxobjs)) {
		/* objs ring buffer data are contiguous. */
		memcpy(ret->objs, &quarantine->objs[quarantine->first],
		    quarantine->curobjs * sizeof(quarantine_obj_t));
	} else {
		/* objs ring buffer data wrap around. */
		size_t ncopy_a = (ZU(1) << quarantine->lg_maxobjs) -
		    quarantine->first;
		size_t ncopy_b = quarantine->curobjs - ncopy_a;

		memcpy(ret->objs, &quarantine->objs[quarantine->first], ncopy_a
		    * sizeof(quarantine_obj_t));
		memcpy(&ret->objs[ncopy_a], quarantine->objs, ncopy_b *
		    sizeof(quarantine_obj_t));
	}
	idalloctm(tsd, quarantine, tcache_get(tsd, false), true);

	tsd_quarantine_set(tsd, ret);
	return (ret);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x348(%rbp)
movq %rsi, -0x350(%rbp)
movq -0x348(%rbp), %rdi
movq -0x350(%rbp), %rax
movq 0x18(%rax), %rsi
addq $0x1, %rsi
callq 0x704a0
movq %rax, -0x358(%rbp)
cmpq $0x0, -0x358(%rbp)
jne 0x72b4b
movq -0x348(%rbp), %rdi
movq -0x350(%rbp), %rsi
callq 0x74540
movq -0x350(%rbp), %rax
movq %rax, -0x340(%rbp)
jmp 0x73747
movq -0x350(%rbp), %rax
movq (%rax), %rcx
movq -0x358(%rbp), %rax
movq %rcx, (%rax)
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x358(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x350(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x350(%rbp), %rcx
addq 0x8(%rcx), %rax
movq -0x350(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
ja 0x72be7
movq -0x358(%rbp), %rdi
addq $0x20, %rdi
movq -0x350(%rbp), %rsi
addq $0x20, %rsi
movq -0x350(%rbp), %rax
movq 0x10(%rax), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x103b0
jmp 0x72c91
movq -0x350(%rbp), %rax
movq 0x18(%rax), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq -0x350(%rbp), %rcx
subq 0x10(%rcx), %rax
movq %rax, -0x360(%rbp)
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rax
subq -0x360(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x358(%rbp), %rdi
addq $0x20, %rdi
movq -0x350(%rbp), %rsi
addq $0x20, %rsi
movq -0x350(%rbp), %rax
movq 0x10(%rax), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq -0x360(%rbp), %rdx
shlq $0x4, %rdx
callq 0x103b0
movq -0x358(%rbp), %rdi
addq $0x20, %rdi
movq -0x360(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x350(%rbp), %rsi
addq $0x20, %rsi
movq -0x368(%rbp), %rdx
shlq $0x4, %rdx
callq 0x103b0
movq -0x348(%rbp), %rax
movq %rax, -0x378(%rbp)
movq -0x350(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x348(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movb $0x0, -0x2f9(%rbp)
movq -0x2f8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x308(%rbp)
testb $0x1, -0x2f9(%rbp)
jne 0x72d09
movq -0x308(%rbp), %rax
movq %rax, -0x2f0(%rbp)
jmp 0x72d7b
cmpq $0x0, -0x308(%rbp)
sete %al
testb $0x1, %al
jne 0x72d1a
jmp 0x72d6d
movq -0x2f8(%rbp), %rdi
callq 0x70480
testb $0x1, %al
jne 0x72d2c
jmp 0x72d6d
movq -0x2f8(%rbp), %rdi
callq 0x79eb0
movq %rax, -0x308(%rbp)
movq -0x2f8(%rbp), %rcx
movq -0x308(%rbp), %rax
movq %rcx, -0x110(%rbp)
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rcx
movq -0x110(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x308(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x370(%rbp), %rcx
movq -0x378(%rbp), %rdx
movq -0x2f0(%rbp), %rax
movq %rdx, -0x310(%rbp)
movq %rcx, -0x318(%rbp)
movq %rax, -0x320(%rbp)
movb $0x1, -0x321(%rbp)
testb $0x1, -0x321(%rbp)
je 0x730b5
movq -0x318(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
leaq 0x2f94d(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rax
cmpq -0x2c8(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x72e0b
jmp 0x72e20
movq -0x2d0(%rbp), %rdi
callq 0x744c0
movq %rax, -0x2c0(%rbp)
jmp 0x72e33
movq -0x2c8(%rbp), %rdi
callq 0x63b70
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x380(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movb $0x0, -0x2e1(%rbp)
movq -0x2e0(%rbp), %rcx
movb -0x2e1(%rbp), %al
movq %rcx, -0xd8(%rbp)
andb $0x1, %al
movb %al, -0xd9(%rbp)
movq -0xd8(%rbp), %rax
leaq 0x2f8b0(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xd8(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x72eab
jmp 0x7308f
movq -0xd8(%rbp), %rax
movq -0xf0(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, -0x8(%rbp)
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
addq $0x68, %rax
movq -0x10(%rbp), %rcx
leaq 0x2f6b8(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
movl %eax, %ecx
movb $0x1, %al
cmpq $0xff, %rcx
movb %al, -0x381(%rbp)
je 0x72f76
xorl %eax, %eax
movb %al, -0x381(%rbp)
jmp 0x72f76
movb -0x381(%rbp), %al
testb $0x1, %al
jne 0x72f85
jmp 0x7304d
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rcx
movq -0xb0(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rcx
movq -0xa0(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rcx
movq -0x88(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
addq $0x68, %rax
movq -0x78(%rbp), %rcx
leaq 0x2f5dc(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0xe8(%rbp)
jmp 0x7308d
movl -0xfc(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, %ecx
leaq 0x1b48c(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x730a2
movq -0xd8(%rbp), %rdi
callq 0x63ba0
movq %rax, -0xe8(%rbp)
movq -0x380(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x744e0
movq -0x310(%rbp), %rdx
movq -0x318(%rbp), %rcx
movq -0x320(%rbp), %rax
movq %rdx, -0x280(%rbp)
movq %rcx, -0x288(%rbp)
movq %rax, -0x290(%rbp)
movq -0x288(%rbp), %rax
leaq 0x2f643(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rax
cmpq -0x288(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x73118
jmp 0x736f1
movq -0x288(%rbp), %rax
movq -0x298(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x2a0(%rbp)
movq -0x298(%rbp), %rcx
movq -0x2a0(%rbp), %rax
movq %rcx, -0x270(%rbp)
movq %rax, -0x278(%rbp)
movq -0x270(%rbp), %rcx
movq -0x278(%rbp), %rax
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rcx
movq -0x160(%rbp), %rax
movq %rcx, -0x148(%rbp)
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rax
addq $0x68, %rax
movq -0x150(%rbp), %rcx
leaq 0x2f437(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
andq $0x2, %rax
cmpq $0x0, %rax
sete %al
testb $0x1, %al
jne 0x731de
jmp 0x733d2
cmpq $0x0, -0x290(%rbp)
setne %al
testb $0x1, %al
jne 0x731f2
jmp 0x733a4
movq -0x288(%rbp), %rcx
movq -0x2a8(%rbp), %rax
movq %rcx, -0x258(%rbp)
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0x264(%rbp)
movl -0x264(%rbp), %eax
movl %eax, -0x2ac(%rbp)
movq -0x280(%rbp), %rsi
movq -0x290(%rbp), %rdx
movq -0x288(%rbp), %rcx
movl -0x2ac(%rbp), %eax
movq %rsi, -0x228(%rbp)
movq %rdx, -0x230(%rbp)
movq %rcx, -0x238(%rbp)
movl %eax, -0x23c(%rbp)
leaq 0x2e434(%rip), %rax     # 0xa16a2
movb (%rax), %al
testb $0x1, %al
jne 0x73276
jmp 0x73296
movq -0x238(%rbp), %rdi
movl -0x23c(%rbp), %eax
leaq 0x2e496(%rip), %rsi     # 0xa1720
imulq $0x60, %rax, %rax
addq %rax, %rsi
callq 0x3d680
movq -0x230(%rbp), %rax
addq $0x20, %rax
movl -0x23c(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x248(%rbp)
leaq 0x2fbec(%rip), %rax     # 0xa2ea8
movq (%rax), %rax
movl -0x23c(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x250(%rbp)
movq -0x248(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x250(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x732ef
jmp 0x7331c
movq -0x228(%rbp), %rdi
movq -0x230(%rbp), %rsi
movq -0x248(%rbp), %rdx
movl -0x23c(%rbp), %ecx
movq -0x250(%rbp), %rax
movl (%rax), %r8d
shrl %r8d
callq 0x79510
movq -0x238(%rbp), %rdx
movq -0x248(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x248(%rbp), %rcx
movl 0x10(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x248(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x228(%rbp), %rcx
movq -0x230(%rbp), %rax
movq %rcx, -0x218(%rbp)
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
movq -0x220(%rbp), %rax
cmpl $0xd3, 0x18(%rax)
sete %al
testb $0x1, %al
jne 0x7338f
jmp 0x733a2
movq -0x218(%rbp), %rdi
movq -0x220(%rbp), %rsi
callq 0x793c0
jmp 0x733cd
movq -0x298(%rbp), %rdi
callq 0x744c0
movq %rax, %rdi
movq -0x298(%rbp), %rsi
movq -0x288(%rbp), %rdx
movq -0x2a0(%rbp), %rcx
callq 0x3ff30
jmp 0x736ef
movq -0x298(%rbp), %rcx
movq -0x2a0(%rbp), %rax
movq %rcx, -0x200(%rbp)
movq %rax, -0x208(%rbp)
movq -0x200(%rbp), %rcx
movq -0x208(%rbp), %rax
movq %rcx, -0x1f0(%rbp)
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rcx
movq -0x1f8(%rbp), %rax
movq %rcx, -0x168(%rbp)
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rcx
movq -0x170(%rbp), %rax
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
addq $0x68, %rax
movq -0x140(%rbp), %rcx
leaq 0x2f17d(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, -0x290(%rbp)
setne %al
testb $0x1, %al
jne 0x734c4
jmp 0x736cb
movq -0x2b8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
leaq 0x2fa00(%rip), %rcx     # 0xa2ed8
cmpq (%rcx), %rax
ja 0x736cb
movq -0x280(%rbp), %rsi
movq -0x290(%rbp), %rdx
movq -0x288(%rbp), %rcx
movq -0x2b8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rsi, -0x1b8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq %rcx, -0x1c8(%rbp)
movq %rax, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
cmpq $0x1000, -0x1b0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x73541
jmp 0x7357f
movq -0x1b0(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x1b71b(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movl %eax, -0x1a4(%rbp)
jmp 0x73591
movq -0x1b0(%rbp), %rdi
callq 0x74330
movl %eax, -0x1a4(%rbp)
movl -0x1a4(%rbp), %eax
movl %eax, -0x1d4(%rbp)
leaq 0x2e0fe(%rip), %rax     # 0xa16a2
movb (%rax), %al
testb $0x1, %al
jne 0x735ac
jmp 0x735bf
movq -0x1c8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
callq 0x3ffa0
movq -0x1c0(%rbp), %rax
addq $0x20, %rax
movl -0x1d4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x1e0(%rbp)
leaq 0x2f8c3(%rip), %rax     # 0xa2ea8
movq (%rax), %rax
movl -0x1d4(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e0(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x1e8(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x73618
jmp 0x73643
movq -0x1b8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x1d4(%rbp), %edx
movq -0x1e8(%rbp), %rax
movl (%rax), %ecx
shrl %ecx
movq -0x1c0(%rbp), %r8
callq 0x797c0
movq -0x1c8(%rbp), %rdx
movq -0x1e0(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x1e0(%rbp), %rcx
movl 0x10(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x1e0(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x1b8(%rbp), %rcx
movq -0x1c0(%rbp), %rax
movq %rcx, -0x198(%rbp)
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
movq -0x1a0(%rbp), %rax
cmpl $0xd3, 0x18(%rax)
sete %al
testb $0x1, %al
jne 0x736b6
jmp 0x736c9
movq -0x198(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x793c0
jmp 0x736ed
movq -0x298(%rbp), %rdi
callq 0x744c0
movq %rax, %rdi
movq -0x298(%rbp), %rsi
movq -0x288(%rbp), %rdx
callq 0x40280
jmp 0x736ef
jmp 0x7370b
movq -0x280(%rbp), %rdi
movq -0x288(%rbp), %rsi
movq -0x290(%rbp), %rdx
callq 0x62f50
movq -0x348(%rbp), %rcx
movq -0x358(%rbp), %rax
movq %rcx, -0x330(%rbp)
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rcx
movq -0x330(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x358(%rbp), %rax
movq %rax, -0x340(%rbp)
movq -0x340(%rbp), %rax
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
nopw (%rax,%rax)