// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/jemalloc.c
// Function: je_sdallocx
JEMALLOC_NOTHROW
je_sdallocx(void *ptr, size_t size, int flags)
{
	tsd_t *tsd;
	tcache_t *tcache;
	size_t usize;

	assert(ptr != NULL);
	assert(malloc_initialized() || IS_INITIALIZER);
	usize = inallocx(size, flags);
	assert(usize == isalloc(ptr, config_prof));

	tsd = tsd_fetch();
	if (unlikely((flags & MALLOCX_TCACHE_MASK) != 0)) {
		if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE)
			tcache = NULL;
		else
			tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags));
	} else
		tcache = tcache_get(tsd, false);

	UTRACE(ptr, 0, 0);
	isfree(tsd, ptr, usize, tcache);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x270(%rbp)
movq %rsi, -0x278(%rbp)
movl %edx, -0x27c(%rbp)
jmp 0x37b71
jmp 0x37b73
jmp 0x37b75
movq -0x278(%rbp), %rcx
movl -0x27c(%rbp), %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
movl -0x21c(%rbp), %eax
andl $0x3f, %eax
cmpl $0x0, %eax
sete %al
testb $0x1, %al
jne 0x37ba7
jmp 0x37d32
movq -0x218(%rbp), %rax
movq %rax, -0x210(%rbp)
cmpq $0x1000, -0x210(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x37bcc
jmp 0x37c51
movq -0x210(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x57082(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movl %eax, -0xe4(%rbp)
movl -0xe4(%rbp), %eax
movl %eax, %ecx
leaq 0x568db(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x208(%rbp)
jmp 0x37d1f
movq -0x210(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
setl %al
testb $0x1, %al
jne 0x37c6a
jmp 0x37c8c
movq -0x28(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x2a0(%rbp)
jmp 0x37ca3
movq -0x28(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x3bb60
movq %rax, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x6, -0x30(%rbp)
jae 0x37cc3
movl $0x3, %eax
movq %rax, -0x2a8(%rbp)
jmp 0x37cd6
movq -0x30(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
addq -0x48(%rbp), %rax
movq -0x48(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x228(%rbp)
jmp 0x3844c
movq -0x218(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movl -0x21c(%rbp), %eax
andl $0x3f, %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq -0x2b0(%rbp), %rcx
movq %rcx, -0x1f0(%rbp)
movq %rax, -0x1f8(%rbp)
cmpq $0x3800, -0x1f0(%rbp) # imm = 0x3800
ja 0x37f81
cmpq $0x1000, -0x1f8(%rbp) # imm = 0x1000
jae 0x37f81
movq -0x1f0(%rbp), %rax
movq -0x1f8(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
xorl %ecx, %ecx
subq -0x1f8(%rbp), %rcx
andq %rcx, %rax
movq %rax, -0x1c0(%rbp)
cmpq $0x1000, -0x1c0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x37dcb
jmp 0x37e50
movq -0x1c0(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x56e83(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movl %eax, -0x174(%rbp)
movl -0x174(%rbp), %eax
movl %eax, %ecx
leaq 0x566dc(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x1b8(%rbp)
jmp 0x37f51
movq -0x1c0(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xb8(%rbp)
setl %al
testb $0x1, %al
jne 0x37e6f
jmp 0x37e94
movq -0xb8(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x2b8(%rbp)
jmp 0x37eae
movq -0xb8(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x3bb60
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x6, -0xc0(%rbp)
jae 0x37ed4
movl $0x3, %eax
movq %rax, -0x2c0(%rbp)
jmp 0x37eea
movq -0xc0(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xb8(%rbp), %rax
addq -0xd8(%rbp), %rax
movq -0xd8(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x200(%rbp)
cmpq $0x4000, -0x200(%rbp) # imm = 0x4000
jae 0x37f7f
movq -0x200(%rbp), %rax
movq %rax, -0x1e8(%rbp)
jmp 0x3843e
jmp 0x37f81
movq -0x1f0(%rbp), %rax
leaq 0x6a631(%rip), %rcx     # 0xa25c0
cmpq (%rcx), %rax
setbe %al
testb $0x1, %al
jne 0x37f9e
jmp 0x381f5
movq -0x1f8(%rbp), %rax
leaq 0x6a77c(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
setb %al
testb $0x1, %al
jne 0x37fbb
jmp 0x381f5
movq -0x1f8(%rbp), %rax
addq $0xfff, %rax            # imm = 0xFFF
andq $-0x1000, %rax          # imm = 0xF000
movq %rax, -0x1f8(%rbp)
cmpq $0x4000, -0x1f0(%rbp) # imm = 0x4000
ja 0x37ff3
movl $0x4000, %eax           # imm = 0x4000
movq %rax, -0x2c8(%rbp)
jmp 0x381ac
movq -0x1f0(%rbp), %rax
movq %rax, -0x1d0(%rbp)
cmpq $0x1000, -0x1d0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x38018
jmp 0x3809d
movq -0x1d0(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x56c36(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movl %eax, -0x144(%rbp)
movl -0x144(%rbp), %eax
movl %eax, %ecx
leaq 0x5648f(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1c8(%rbp)
jmp 0x3819e
movq -0x1d0(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
setl %al
testb $0x1, %al
jne 0x380bc
jmp 0x380e1
movq -0x88(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x2d0(%rbp)
jmp 0x380fb
movq -0x88(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x3bb60
movq %rax, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x6, -0x90(%rbp)
jae 0x38121
movl $0x3, %eax
movq %rax, -0x2d8(%rbp)
jmp 0x38137
movq -0x90(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0x88(%rbp), %rax
addq -0xa8(%rbp), %rax
movq -0xa8(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rax
addq $0x1000, %rax           # imm = 0x1000
addq -0x1f8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
leaq 0x6a40d(%rip), %rcx     # 0xa25e8
cmpq (%rcx), %rax
ja 0x381f3
movq -0x200(%rbp), %rax
movq %rax, -0x1e8(%rbp)
jmp 0x3843e
jmp 0x381f5
movq -0x1f8(%rbp), %rax
leaq 0x6a52d(%rip), %rcx     # 0xa2730
addq (%rcx), %rax
leaq 0x6a523(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x1f8(%rbp)
cmpq $0x0, -0x1f8(%rbp)
jne 0x38238
movq $0x0, -0x1e8(%rbp)
jmp 0x3843e
movq -0x1f0(%rbp), %rax
leaq 0x6a4e2(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
ja 0x38261
leaq 0x6a4d6(%rip), %rax     # 0xa2728
movq (%rax), %rax
movq %rax, -0x200(%rbp)
jmp 0x38406
movq -0x1f0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
cmpq $0x1000, -0x1e0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x38286
jmp 0x3830b
movq -0x1e0(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x569c8(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
movl %eax, %ecx
leaq 0x56221(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x1d8(%rbp)
jmp 0x383d9
movq -0x1e0(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
setl %al
testb $0x1, %al
jne 0x38324
jmp 0x38346
movq -0x58(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x2e0(%rbp)
jmp 0x3835d
movq -0x58(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x3bb60
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x6, -0x60(%rbp)
jae 0x3837d
movl $0x3, %eax
movq %rax, -0x2e8(%rbp)
jmp 0x38390
movq -0x60(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rax
addq -0x78(%rbp), %rax
movq -0x78(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rax
cmpq -0x1f0(%rbp), %rax
jae 0x38404
movq $0x0, -0x1e8(%rbp)
jmp 0x3843e
jmp 0x38406
movq -0x200(%rbp), %rax
addq -0x1f8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
cmpq -0x200(%rbp), %rax
jae 0x38430
movq $0x0, -0x1e8(%rbp)
jmp 0x3843e
movq -0x200(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x298(%rbp)
jmp 0x3845c
movq 0x66b85(%rip), %rcx     # 0x9efe8
movq %fs:0x0, %rax
addq %rcx, %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rax
cmpl $0x1, (%rax)
setne %al
testb $0x1, %al
jne 0x3848c
jmp 0x385bb
movq -0x268(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x38522
movq -0x268(%rbp), %rax
movl $0x1, (%rax)
movq -0x268(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq 0x66b2a(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x1b0(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x6aa32(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x66afd(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x3851d
leaq 0x56b31(%rip), %rdi     # 0x8f039
callq 0x7c0e0
testb $0x1, 0x6918c(%rip)     # 0xa16a0
je 0x3851b
callq 0x10070
jmp 0x3851d
jmp 0x385b9
movq -0x268(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x385b5
movq -0x268(%rbp), %rax
movl $0x3, (%rax)
movq -0x268(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq 0x66a94(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rdi
addq %rax, %rdi
movq -0x1a8(%rbp), %rsi
movl $0x50, %edx
callq 0x103b0
leaq 0x6a99c(%rip), %rax     # 0xa2f14
movl (%rax), %edi
movq 0x66a67(%rip), %rax     # 0x9efe8
movq %fs:0x0, %rsi
addq %rax, %rsi
callq 0x106d0
cmpl $0x0, %eax
je 0x385b3
leaq 0x56a9b(%rip), %rdi     # 0x8f039
callq 0x7c0e0
testb $0x1, 0x690f6(%rip)     # 0xa16a0
je 0x385b1
callq 0x10070
jmp 0x385b3
jmp 0x385b7
jmp 0x385b7
jmp 0x385b9
jmp 0x385bb
movq -0x268(%rbp), %rax
movq %rax, -0x288(%rbp)
movl -0x27c(%rbp), %eax
andl $0xfff00, %eax          # imm = 0xFFF00
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x386b8
movl -0x27c(%rbp), %eax
andl $0xfff00, %eax          # imm = 0xFFF00
cmpl $0x100, %eax            # imm = 0x100
jne 0x38611
movq $0x0, -0x290(%rbp)
jmp 0x386b3
movq -0x288(%rbp), %rcx
movl -0x27c(%rbp), %eax
andl $0xfff00, %eax          # imm = 0xFFF00
sarl $0x8, %eax
subl $0x2, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq 0x6a883(%rip), %rax     # 0xa2ec0
movq (%rax), %rax
movl -0x234(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
cmpq $0x0, (%rax)
sete %al
testb $0x1, %al
jne 0x38668
jmp 0x386a2
movq -0x230(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x230(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3b9e0
movq -0x2f0(%rbp), %rdi
movq %rax, %rsi
callq 0x7a290
movq %rax, %rcx
movq -0x240(%rbp), %rax
movq %rcx, (%rax)
movq -0x240(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x290(%rbp)
jmp 0x3877c
movq -0x288(%rbp), %rax
movq %rax, -0x250(%rbp)
movb $0x0, -0x251(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x260(%rbp)
testb $0x1, -0x251(%rbp)
jne 0x38708
movq -0x260(%rbp), %rax
movq %rax, -0x248(%rbp)
jmp 0x3876e
cmpq $0x0, -0x260(%rbp)
sete %al
testb $0x1, %al
jne 0x38719
jmp 0x38760
movq -0x250(%rbp), %rdi
callq 0x26380
testb $0x1, %al
jne 0x3872b
jmp 0x38760
movq -0x250(%rbp), %rdi
callq 0x79eb0
movq %rax, -0x260(%rbp)
movq -0x250(%rbp), %rcx
movq -0x260(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x260(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x288(%rbp), %rdi
movq -0x270(%rbp), %rsi
movq -0x298(%rbp), %rdx
movq -0x290(%rbp), %rcx
callq 0x387b0
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopw %cs:(%rax,%rax)