// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movl %edx, %ecx
andl $0x3f, %ecx
jne 0x25843
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x259d8
decq %r15
shrq $0x3, %r15
leaq 0x228b3(%rip), %rax     # 0x47fc0
movzbl (%r15,%rax), %eax
leaq 0x22127(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %r12
movq 0x328cc(%rip), %rbp     # 0x57ff0
movq %fs:0x0, %r15
addq %rbp, %r15
movl %fs:(%rbp), %eax
testl %eax, %eax
je 0x25ae4
cmpl $0x2, %eax
je 0x25b49
andl $0xfff00, %r14d         # imm = 0xFFF00
jne 0x2598a
movq %fs:0x8(%rbp), %r13
addq %r12, %fs:0x18(%rbp)
cmpb $0x1, 0x34f21(%rip)     # 0x5a684
je 0x2599f
xorl %r14d, %r14d
cmpq $0x0, 0x34eb4(%rip)     # 0x5a628
jne 0x259af
leaq 0x35f2f(%rip), %rax     # 0x5b6b0
movq (%rax), %rsi
notq %rsi
andq %rbx, %rsi
cmpq %rbx, %rsi
je 0x259f1
cmpq $0x3800, %r12           # imm = 0x3800
ja 0x25a04
testq %r13, %r13
je 0x25a74
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x25a9e
decq %r12
shrq $0x3, %r12
leaq 0x227fc(%rip), %rax     # 0x47fc0
movzbl (%r12,%rax), %eax
movl %eax, %r12d
cmpb $0x1, 0x34e4f(%rip)     # 0x5a622
je 0x25aab
movq %r12, %rax
shlq $0x5, %rax
leaq (%rax,%r13), %rbp
addq $0x20, %rbp
leaq 0x365c1(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x25ac7
movq 0x18(%rbp), %rax
movl %r8d, %ecx
movq %rbx, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%rbp)
movl 0x18(%r13), %eax
incl %eax
movl %eax, 0x18(%r13)
cmpl $0xd3, %eax
je 0x25a8e
cmpb $0x1, 0x34e56(%rip)     # 0x5a684
je 0x259bf
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r13d
shlq %cl, %r13
cmpq $0x3801, %r15           # imm = 0x3801
setae %al
cmpl $0xc, %ecx
setae %cl
orb %al, %cl
jne 0x258a7
leaq (%r15,%r13), %rax
decq %rax
movq %r13, %rdi
negq %rdi
andq %rax, %rdi
cmpq $0x1000, %rdi           # imm = 0x1000
ja 0x25b9f
decq %rdi
shrq $0x3, %rdi
leaq 0x22735(%rip), %rax     # 0x47fc0
movzbl (%rdi,%rax), %eax
leaq 0x21faa(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %r12
cmpq $0x4000, %r12           # imm = 0x4000
jb 0x2571d
leaq 0x35c92(%rip), %rcx     # 0x5b540
leaq 0x35df3(%rip), %rax     # 0x5b6a8
movq (%rax), %rax
cmpq %r15, (%rcx)
jb 0x25930
cmpq %r13, %rax
jbe 0x25930
addq $0xfff, %r13            # imm = 0xFFF
andq $-0x1000, %r13          # imm = 0xF000
movl $0x4000, %r12d          # imm = 0x4000
cmpq $0x4001, %r15           # imm = 0x4001
jb 0x2591c
testq %r15, %r15
js 0x25be1
leaq -0x1(,%r15,2), %rcx
bsrq %rcx, %rdx
leal -0x3(%rdx), %ecx
movq $-0x1, %rsi
shlq %cl, %rsi
cmpq $0x6, %rdx
notq %rsi
movl $0x7, %r12d
cmovaeq %rsi, %r12
leaq (%r12,%r15), %rcx
notq %r12
andq %rcx, %r12
leaq (%r12,%r13), %rcx
leaq 0x35c41(%rip), %rdx     # 0x5b568
cmpq (%rdx), %rcx
jbe 0x2571d
leaq 0x35d79(%rip), %rcx     # 0x5b6b0
movq (%rcx), %rbp
addq %rbp, %r13
notq %rbp
andq %r13, %rbp
je 0x25982
cmpq %r15, %rax
jae 0x25b88
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x25bfb
leaq -0x1(%r15), %rax
shrq $0x3, %rax
leaq 0x22656(%rip), %rcx     # 0x47fc0
movzbl (%rax,%rcx), %eax
leaq 0x21ecb(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
cmpq %r15, %rax
jae 0x25b88
xorl %r12d, %r12d
jmp 0x2571d
cmpl $0x100, %r14d           # imm = 0x100
jne 0x25aee
xorl %r13d, %r13d
jmp 0x25757
movq %rbx, %rdi
callq 0x22712
movq %rax, %r14
jmp 0x2576c
movq %r15, %rdi
movq %rbx, %rsi
callq 0x38e87
jmp 0x25827
movq %rbx, %rdi
movq %r14, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3e82a
leaq 0x8(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x11a03
movq (%r12), %r12
jmp 0x2571d
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x36925
jmp 0x25827
testq %r13, %r13
je 0x25b39
leaq 0x363cc(%rip), %rax     # 0x5bde0
cmpq %r12, (%rax)
jb 0x25b39
movq %r12, %rdi
callq 0x26dcf
movl %eax, %ebp
cmpb $0x1, 0x34bf4(%rip)     # 0x5a622
je 0x25bb5
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%rcx,%r13), %r12
addq $0x20, %r12
leaq 0x36364(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x25bc5
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %rbx, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x25812
movq %rbx, %rcx
subq %rsi, %rcx
shrq $0xc, %rcx
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x298af
jmp 0x25827
movq %r15, %rdi
movq %r13, %rsi
callq 0x3c7e1
jmp 0x25827
movq %r12, %rdi
callq 0x26dcf
jmp 0x257c9
leaq (%r12,%r12,2), %rsi
shlq $0x5, %rsi
addq 0x3251e(%rip), %rsi     # 0x57fd8
movq %rbx, %rdi
callq 0x2859f
jmp 0x257d9
shrl %r8d
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl %r12d, %ecx
callq 0x3c88f
movl 0x10(%rbp), %r8d
jmp 0x25800
movl $0x1, %fs:(%rbp)
jmp 0x25b51
shrl $0x8, %r14d
addl $-0x2, %r14d
leaq 0x362cb(%rip), %rax     # 0x5bdc8
movq (%rax), %rax
movq (%rax,%r14,8), %r13
testq %r13, %r13
jne 0x25757
movq %rax, 0x10(%rsp)
movq %fs:0x28(%rbp), %rsi
testq %rsi, %rsi
je 0x25c14
movq %r15, %rdi
callq 0x12ffe
movq %rax, %r13
movq 0x10(%rsp), %rax
movq %r13, (%rax,%r14,8)
jmp 0x25757
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x299db
jmp 0x25827
movl $0x3, %fs:(%rbp)
leaq 0x362bc(%rip), %rax     # 0x5be14
movl (%rax), %edi
movq %r15, %rsi
callq 0x106f0
testl %eax, %eax
je 0x25745
leaq 0x22808(%rip), %rdi     # 0x48379
callq 0x3d37c
cmpb $0x1, 0x34aa3(%rip)     # 0x5a620
jne 0x25745
callq 0x10090
movl $0xfff, %ecx            # imm = 0xFFF
subq %rbp, %rcx
xorl %r12d, %r12d
cmpq %rax, %rcx
cmovaeq %rax, %r12
jmp 0x2571d
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x11989
movq (%r12), %r12
jmp 0x2589a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x298b4
jmp 0x25a34
shrl %ecx
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r13, %r8
callq 0x3ca47
movl 0x10(%r12), %ecx
jmp 0x25a5d
movq %r15, %rcx
btrq $0x3f, %rcx
cmpq $0x1, %rcx
movl $0x40, %edx
sbbq $0x0, %rdx
jmp 0x258f4
leaq 0x8(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x119b9
movq (%r12), %rax
jmp 0x25979
movq %r15, %rdi
callq 0x22135
movq %rax, %rsi
jmp 0x25b20