// File: /workspace/github_c_makefile_star2_O0/zhou-yuxin[P]redis-aof-no-cow/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_tsdn(tsd), quarantine->lg_maxobjs + 1);
	if (ret == NULL) {
		quarantine_drain_one(tsd_tsdn(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_tsdn(tsd), quarantine, NULL, true, true);

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movq %rdi, -0x388(%rbp)
movq %rsi, -0x390(%rbp)
movq -0x388(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rdi
movq -0x390(%rbp), %rax
movq 0x18(%rax), %rsi
addq $0x1, %rsi
callq 0x73240
movq %rax, -0x398(%rbp)
cmpq $0x0, -0x398(%rbp)
jne 0x75bc7
movq -0x388(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x370(%rbp), %rdi
movq -0x390(%rbp), %rsi
callq 0x777c0
movq -0x390(%rbp), %rax
movq %rax, -0x380(%rbp)
jmp 0x767e4
movq -0x390(%rbp), %rax
movq (%rax), %rcx
movq -0x398(%rbp), %rax
movq %rcx, (%rax)
movq -0x390(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x398(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x390(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x390(%rbp), %rcx
addq 0x8(%rcx), %rax
movq -0x390(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
ja 0x75c63
movq -0x398(%rbp), %rdi
addq $0x20, %rdi
movq -0x390(%rbp), %rsi
addq $0x20, %rsi
movq -0x390(%rbp), %rax
movq 0x10(%rax), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq -0x390(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0xb310
jmp 0x75d0d
movq -0x390(%rbp), %rax
movq 0x18(%rax), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq -0x390(%rbp), %rcx
subq 0x10(%rcx), %rax
movq %rax, -0x3a0(%rbp)
movq -0x390(%rbp), %rax
movq 0x8(%rax), %rax
subq -0x3a0(%rbp), %rax
movq %rax, -0x3a8(%rbp)
movq -0x398(%rbp), %rdi
addq $0x20, %rdi
movq -0x390(%rbp), %rsi
addq $0x20, %rsi
movq -0x390(%rbp), %rax
movq 0x10(%rax), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq -0x3a0(%rbp), %rdx
shlq $0x4, %rdx
callq 0xb310
movq -0x398(%rbp), %rdi
addq $0x20, %rdi
movq -0x3a0(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x390(%rbp), %rsi
addq $0x20, %rsi
movq -0x3a8(%rbp), %rdx
shlq $0x4, %rdx
callq 0xb310
movq -0x388(%rbp), %rax
movq %rax, -0x378(%rbp)
movq -0x378(%rbp), %rcx
movq -0x390(%rbp), %rax
movq %rcx, -0x338(%rbp)
movq %rax, -0x340(%rbp)
movq $0x0, -0x348(%rbp)
movb $0x1, -0x349(%rbp)
movb $0x1, -0x34a(%rbp)
testb $0x1, -0x349(%rbp)
je 0x760b4
movq -0x340(%rbp), %rax
movq %rax, -0x318(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rax
leaq 0x2e329(%rip), %rcx     # 0xa40b0
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x310(%rbp)
movq -0x310(%rbp), %rax
cmpq -0x308(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x75daf
jmp 0x75dc4
movq -0x310(%rbp), %rdi
callq 0x77610
movq %rax, -0x300(%rbp)
jmp 0x75dd7
movq -0x308(%rbp), %rdi
callq 0x63ec0
movq %rax, -0x300(%rbp)
movq -0x300(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movq -0x338(%rbp), %rcx
movq -0x340(%rbp), %rax
movq %rcx, -0x320(%rbp)
movq %rax, -0x328(%rbp)
movb $0x0, -0x329(%rbp)
movq -0x320(%rbp), %rdx
movq -0x328(%rbp), %rcx
movb -0x329(%rbp), %al
movq %rdx, -0xf8(%rbp)
movq %rcx, -0x100(%rbp)
andb $0x1, %al
movb %al, -0x101(%rbp)
movq -0x100(%rbp), %rax
leaq 0x2e270(%rip), %rcx     # 0xa40b0
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
cmpq -0x100(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x75e6b
jmp 0x76087
movq -0x100(%rbp), %rax
movq -0x118(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rcx
movq -0x30(%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 $0x78, %rax
movq -0x10(%rbp), %rcx
leaq 0x2e0b0(%rip), %rdx     # 0xa3fa0
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x124(%rbp)
movl -0x124(%rbp), %eax
movl %eax, %ecx
movb $0x1, %al
cmpq $0xff, %rcx
movb %al, -0x3b1(%rbp)
je 0x75f46
xorl %eax, %eax
movb %al, -0x3b1(%rbp)
jmp 0x75f46
movb -0x3b1(%rbp), %al
testb $0x1, %al
jne 0x75f55
jmp 0x76045
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
movq %rcx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
addq $0x78, %rax
movq -0x88(%rbp), %rcx
leaq 0x2dfac(%rip), %rdx     # 0xa3fa0
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0x110(%rbp)
jmp 0x76085
movl -0x124(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movl %eax, %ecx
leaq 0x1a294(%rip), %rax     # 0x90300
movq (%rax,%rcx,8), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x110(%rbp)
jmp 0x760a1
movq -0xf8(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x65c10
movq %rax, -0x110(%rbp)
movq -0x3b0(%rbp), %rdi
movq -0x110(%rbp), %rsi
callq 0x77760
movq -0x338(%rbp), %rsi
movq -0x340(%rbp), %rdx
movq -0x348(%rbp), %rcx
movb -0x34a(%rbp), %al
movq %rsi, -0x2b8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq %rcx, -0x2c8(%rbp)
andb $0x1, %al
movb %al, -0x2c9(%rbp)
movq -0x2c0(%rbp), %rax
leaq 0x2dfb6(%rip), %rcx     # 0xa40b0
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
cmpq -0x2c0(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x76125
jmp 0x76795
movq -0x2c0(%rbp), %rax
movq -0x2d8(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x2e0(%rbp)
movq -0x2d8(%rbp), %rcx
movq -0x2e0(%rbp), %rax
movq %rcx, -0x298(%rbp)
movq %rax, -0x2a0(%rbp)
movq -0x298(%rbp), %rcx
movq -0x2a0(%rbp), %rax
movq %rcx, -0x180(%rbp)
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rcx
movq -0x188(%rbp), %rax
movq %rcx, -0x170(%rbp)
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rcx
movq -0x178(%rbp), %rax
movq %rcx, -0x140(%rbp)
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rax
addq $0x78, %rax
movq -0x148(%rbp), %rcx
leaq 0x2ddd6(%rip), %rdx     # 0xa3fa0
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rax
andq $0x2, %rax
cmpq $0x0, %rax
sete %al
testb $0x1, %al
jne 0x76207
jmp 0x7642b
cmpq $0x0, -0x2c8(%rbp)
setne %al
testb $0x1, %al
jne 0x7621b
jmp 0x763e8
movq -0x2c0(%rbp), %rcx
movq -0x2e8(%rbp), %rax
movq %rcx, -0x280(%rbp)
movq %rax, -0x288(%rbp)
movq -0x288(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0x28c(%rbp)
movl -0x28c(%rbp), %eax
movl %eax, -0x2ec(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rdi
movq -0x2c8(%rbp), %rsi
movq -0x2c0(%rbp), %rdx
movl -0x2ec(%rbp), %ecx
movb -0x2c9(%rbp), %al
movq %rdi, -0x250(%rbp)
movq %rsi, -0x258(%rbp)
movq %rdx, -0x260(%rbp)
movl %ecx, -0x264(%rbp)
andb $0x1, %al
movb %al, -0x265(%rbp)
testb $0x1, -0x265(%rbp)
je 0x762e4
leaq 0x2d246(%rip), %rax     # 0xa3502
movb (%rax), %al
testb $0x1, %al
jne 0x762c4
jmp 0x762e4
movq -0x260(%rbp), %rdi
movl -0x264(%rbp), %eax
leaq 0x2d2e8(%rip), %rsi     # 0xa35c0
shlq $0x6, %rax
addq %rax, %rsi
callq 0x3cbd0
movq -0x258(%rbp), %rax
addq $0x28, %rax
movl -0x264(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x270(%rbp)
leaq 0x2e1ce(%rip), %rax     # 0xa44d8
movq (%rax), %rax
movl -0x264(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x278(%rbp)
movq -0x270(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x278(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x7633d
jmp 0x7636a
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rsi
movq -0x270(%rbp), %rdx
movl -0x264(%rbp), %ecx
movq -0x278(%rbp), %rax
movl (%rax), %r8d
shrl %r8d
callq 0x7ecb0
movq -0x270(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x260(%rbp), %rdx
movq -0x270(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x270(%rbp), %rcx
movl 0x10(%rcx), %ecx
movl %ecx, %esi
xorl %ecx, %ecx
subq %rsi, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x250(%rbp), %rcx
movq -0x258(%rbp), %rax
movq %rcx, -0x240(%rbp)
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdi
addq $0x18, %rdi
callq 0x77510
testb $0x1, %al
jne 0x763d3
jmp 0x763e6
movq -0x240(%rbp), %rdi
movq -0x248(%rbp), %rsi
callq 0x7eb70
jmp 0x76426
movq -0x2b8(%rbp), %rax
movq %rax, -0x3c0(%rbp)
movq -0x2d8(%rbp), %rdi
callq 0x77610
movq -0x3c0(%rbp), %rdi
movq %rax, %rsi
movq -0x2d8(%rbp), %rdx
movq -0x2c0(%rbp), %rcx
movq -0x2e0(%rbp), %r8
callq 0x3f9a0
jmp 0x76793
movq -0x2d8(%rbp), %rcx
movq -0x2e0(%rbp), %rax
movq %rcx, -0x228(%rbp)
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rcx
movq -0x230(%rbp), %rax
movq %rcx, -0x218(%rbp)
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rcx
movq -0x220(%rbp), %rax
movq %rcx, -0x190(%rbp)
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rcx
movq -0x198(%rbp), %rax
movq %rcx, -0x160(%rbp)
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rcx
movq -0x168(%rbp), %rax
movq %rcx, -0x150(%rbp)
movq %rax, -0x158(%rbp)
movq -0x150(%rbp), %rax
addq $0x78, %rax
movq -0x158(%rbp), %rcx
leaq 0x2dad0(%rip), %rdx     # 0xa3fa0
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x2f8(%rbp)
cmpq $0x0, -0x2c8(%rbp)
setne %al
testb $0x1, %al
jne 0x76539
jmp 0x7675a
movq -0x2f8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
leaq 0x2dfb3(%rip), %rcx     # 0xa4500
cmpq (%rcx), %rax
ja 0x7675a
movq -0x2b8(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x2b0(%rbp), %rdi
movq -0x2c8(%rbp), %rsi
movq -0x2c0(%rbp), %rdx
movq -0x2f8(%rbp), %rcx
subq $0x1000, %rcx           # imm = 0x1000
movb -0x2c9(%rbp), %al
movq %rdi, -0x1e0(%rbp)
movq %rsi, -0x1e8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq %rcx, -0x1f8(%rbp)
andb $0x1, %al
movb %al, -0x1f9(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
cmpq $0x1000, -0x1d8(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x765d3
jmp 0x7660f
movq -0x1d8(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x1a489(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0x1b4(%rbp)
movl -0x1b4(%rbp), %eax
movl %eax, -0x1cc(%rbp)
jmp 0x76621
movq -0x1d8(%rbp), %rdi
callq 0x77630
movl %eax, -0x1cc(%rbp)
movl -0x1cc(%rbp), %eax
movl %eax, -0x200(%rbp)
testb $0x1, -0x1f9(%rbp)
je 0x76658
leaq 0x2cec5(%rip), %rax     # 0xa3502
movb (%rax), %al
testb $0x1, %al
jne 0x76645
jmp 0x76658
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
callq 0x3fab0
movq -0x1e8(%rbp), %rax
addq $0x28, %rax
movl -0x200(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x208(%rbp)
leaq 0x2de5a(%rip), %rax     # 0xa44d8
movq (%rax), %rax
movl -0x200(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x210(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x766b1
jmp 0x766dc
movq -0x1e0(%rbp), %rdi
movq -0x208(%rbp), %rsi
movl -0x200(%rbp), %edx
movq -0x210(%rbp), %rax
movl (%rax), %ecx
shrl %ecx
movq -0x1e8(%rbp), %r8
callq 0x7f140
movq -0x208(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x1f0(%rbp), %rdx
movq -0x208(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x208(%rbp), %rcx
movl 0x10(%rcx), %ecx
movl %ecx, %esi
xorl %ecx, %ecx
subq %rsi, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x1e0(%rbp), %rcx
movq -0x1e8(%rbp), %rax
movq %rcx, -0x1c0(%rbp)
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rdi
addq $0x18, %rdi
callq 0x77510
testb $0x1, %al
jne 0x76745
jmp 0x76758
movq -0x1c0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
callq 0x7eb70
jmp 0x76791
movq -0x2b8(%rbp), %rax
movq %rax, -0x3c8(%rbp)
movq -0x2d8(%rbp), %rdi
callq 0x77610
movq -0x3c8(%rbp), %rdi
movq %rax, %rsi
movq -0x2d8(%rbp), %rdx
movq -0x2c0(%rbp), %rcx
callq 0x3fde0
jmp 0x76793
jmp 0x767a8
movq -0x2b8(%rbp), %rdi
movq -0x2c0(%rbp), %rsi
callq 0x64db0
movq -0x388(%rbp), %rcx
movq -0x398(%rbp), %rax
movq %rcx, -0x358(%rbp)
movq %rax, -0x360(%rbp)
movq -0x360(%rbp), %rcx
movq -0x358(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x398(%rbp), %rax
movq %rax, -0x380(%rbp)
movq -0x380(%rbp), %rax
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq
nopw %cs:(%rax,%rax)