// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/jemalloc/src/arena.c
// Function: arena_bin_malloc_hard
static void *
arena_bin_malloc_hard(arena_t *arena, arena_bin_t *bin)
{
	szind_t binind;
	arena_bin_info_t *bin_info;
	arena_run_t *run;

	binind = arena_bin_index(arena, bin);
	bin_info = &arena_bin_info[binind];
	bin->runcur = NULL;
	run = arena_bin_nonfull_run_get(arena, bin);
	if (bin->runcur != NULL && bin->runcur->nfree > 0) {
		/*
		 * Another thread updated runcur while this one ran without the
		 * bin lock in arena_bin_nonfull_run_get().
		 */
		void *ret;
		assert(bin->runcur->nfree > 0);
		ret = arena_run_reg_alloc(bin->runcur, bin_info);
		if (run != NULL) {
			arena_chunk_t *chunk;

			/*
			 * arena_run_alloc_small() may have allocated run, or
			 * it may have pulled run from the bin's run tree.
			 * Therefore it is unsafe to make any assumptions about
			 * how run has previously been used, and
			 * arena_bin_lower_run() must be called, as if a region
			 * were just deallocated from the run.
			 */
			chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(run);
			if (run->nfree == bin_info->nregs)
				arena_dalloc_bin_run(arena, chunk, run, bin);
			else
				arena_bin_lower_run(arena, chunk, run, bin);
		}
		return (ret);
	}

	if (run == NULL)
		return (NULL);

	bin->runcur = run;

	assert(bin->runcur->nfree > 0);

	return (arena_run_reg_alloc(bin->runcur, bin_info));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbp
movq %rsi, %rax
subq %rdi, %rax
addq $-0x450, %rax           # imm = 0xFBB0
sarq $0x5, %rax
movabsq $0x6db6db6db6db6db7, %r12 # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %r12
movl %r12d, %eax
leaq (%rax,%rax,2), %r13
shlq $0x5, %r13
leaq 0x3251b(%rip), %rax     # 0x5a6a0
leaq (%rax,%r13), %r15
movq $0x0, 0x28(%rsi)
movq %rsi, %rdi
callq 0x2d02b
movq %rax, %rbx
testq %rax, %rax
jne 0x2821e
movq %r13, (%rsp)
movq %r14, %rdi
callq 0x10440
leaq 0x8(%rbp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x106d0
movq 0x18(%r15), %r13
movq %rbp, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x2d51a
testq %rax, %rax
movq %rbp, 0x8(%rsp)
je 0x284c2
movq %rax, %rbx
movl %r12d, (%rbx)
movl 0x20(%r15), %eax
movl %eax, 0x4(%rbx)
leaq 0x8(%rbx), %rdi
leaq 0x28(%r15), %rsi
callq 0x2e10a
movq 0x10(%rsp), %rdi
callq 0x10440
movq %r14, %rdi
callq 0x106d0
incq 0xc8(%r14)
incq 0xd8(%r14)
movq 0x8(%rsp), %rbp
movq (%rsp), %r13
movq 0x28(%r14), %r8
testq %r8, %r8
je 0x28390
movl 0x4(%r8), %eax
testl %eax, %eax
je 0x28390
movl %eax, (%rsp)
leaq 0x8(%r8), %rax
movl 0x30(%r15), %edx
leal -0x1(%rdx), %ecx
movq 0x38(%r15,%rcx,8), %rsi
movq 0x8(%r8,%rsi,8), %rsi
bsfq %rsi, %rdi
movq $-0x1, %rsi
cmoveq %rsi, %rdi
testl %ecx, %ecx
movq %rbp, 0x8(%rsp)
je 0x28288
movq 0x30(%r15,%rcx,8), %r10
leaq (%rax,%r10,8), %r10
movq (%r10,%rdi,8), %r10
shlq $0x6, %rdi
bsfq %r10, %r10
cmoveq %rsi, %r10
addq %r10, %rdi
decq %rcx
jne 0x28267
movq %rdi, %rsi
shrq $0x6, %rsi
movq (%rax,%rsi,8), %r10
movl $0x1, %r11d
movl %edi, %ecx
shlq %cl, %r11
movq %r10, %rcx
btcq %rdi, %rcx
movq %rcx, (%rax,%rsi,8)
cmpl $0x2, %edx
jb 0x28300
cmpq %r11, %r10
jne 0x28300
addq $-0x2, %rdx
leaq 0x323e2(%rip), %rcx     # 0x5a6a0
leaq (%rcx,%r13), %r10
addq $0x40, %r10
xorl %r11d, %r11d
movq %rsi, %rcx
shrq $0x6, %rsi
movq (%r10,%r11,8), %r12
leaq (%rax,%r12,8), %r12
movq (%r12,%rsi,8), %r9
movl $0x1, %ebp
shlq %cl, %rbp
movq %r9, %r13
btcq %rcx, %r13
movq %r13, (%r12,%rsi,8)
cmpq %rbp, %r9
jne 0x28300
leaq 0x1(%r11), %rcx
cmpq %r11, %rdx
movq %rcx, %r11
jne 0x282c9
leaq -0x10(%r8), %rcx
leaq 0x333a5(%rip), %rax     # 0x5b6b0
movq (%rax), %rsi
notq %rsi
andq %rsi, %rcx
movq 0x33245(%rip), %rax     # 0x5b560
addq %rcx, %rax
negq %rax
addq %r8, %rax
addq $-0x10, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rdx
shrq $0x6, %rdx
addq 0x33218(%rip), %rdx     # 0x5b558
shlq $0xc, %rdx
movl 0x58(%r15), %eax
movl %edi, %r12d
imulq 0x10(%r15), %r12
addq %rax, %r12
addq %rcx, %r12
addq %rdx, %r12
movl (%rsp), %eax
decl %eax
movl %eax, 0x4(%r8)
testq %rbx, %rbx
je 0x28504
movl 0x4(%rbx), %eax
cmpl 0x20(%r15), %eax
jne 0x284f9
andq %rbx, %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2cf8c
jmp 0x28504
testq %rbx, %rbx
je 0x284bd
movq %rbx, 0x28(%r14)
leaq 0x8(%rbx), %rax
movl 0x30(%r15), %edx
leal -0x1(%rdx), %ecx
movq 0x38(%r15,%rcx,8), %rsi
movq 0x8(%rbx,%rsi,8), %rsi
bsfq %rsi, %rsi
movq $-0x1, %rdi
cmoveq %rdi, %rsi
testl %ecx, %ecx
je 0x283e6
movq 0x30(%r15,%rcx,8), %r8
leaq (%rax,%r8,8), %r8
movq (%r8,%rsi,8), %r8
shlq $0x6, %rsi
bsfq %r8, %r8
cmoveq %rdi, %r8
addq %r8, %rsi
decq %rcx
jne 0x283c5
movq %rsi, %rdi
shrq $0x6, %rdi
movq (%rax,%rdi,8), %r8
movl $0x1, %r9d
movl %esi, %ecx
shlq %cl, %r9
movq %r8, %rcx
btcq %rsi, %rcx
movq %rcx, (%rax,%rdi,8)
cmpl $0x2, %edx
jb 0x2845f
cmpq %r9, %r8
jne 0x2845f
addq $-0x2, %rdx
leaq 0x32284(%rip), %rcx     # 0x5a6a0
leaq (%rcx,%r13), %r8
addq $0x40, %r8
xorl %r9d, %r9d
movq %rdi, %rcx
shrq $0x6, %rdi
movq (%r8,%r9,8), %r10
leaq (%rax,%r10,8), %r10
movq (%r10,%rdi,8), %r11
movl $0x1, %r14d
shlq %cl, %r14
movq %r11, %r12
btcq %rcx, %r12
movq %r12, (%r10,%rdi,8)
cmpq %r14, %r11
jne 0x2845f
leaq 0x1(%r9), %rcx
cmpq %r9, %rdx
movq %rcx, %r9
jne 0x28427
leaq -0x10(%rbx), %rax
leaq 0x33246(%rip), %rcx     # 0x5b6b0
movq (%rcx), %rcx
notq %rcx
andq %rax, %rcx
movq 0x330e6(%rip), %rax     # 0x5b560
addq %rcx, %rax
negq %rax
addq %rbx, %rax
addq $-0x10, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rdx
shrq $0x6, %rdx
addq 0x330b9(%rip), %rdx     # 0x5b558
shlq $0xc, %rdx
movl 0x58(%r15), %eax
movl %esi, %r12d
imulq 0x10(%r15), %r12
addq %rax, %r12
addq %rcx, %r12
addq %rdx, %r12
decl 0x4(%rbx)
jmp 0x28504
xorl %r12d, %r12d
jmp 0x28504
movq %rbp, %rdi
callq 0x2b95a
testq %rax, %rax
je 0x28516
movq 0x3308a(%rip), %rcx     # 0x5b560
leaq (%rcx,%rax), %rbx
addq $0x10, %rbx
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x2d561
testb %al, %al
je 0x281de
jmp 0x2852d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cfe5
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x2d51a
testq %rax, %rax
jne 0x281db
movq 0x10(%rsp), %rdi
callq 0x10440
movq %r14, %rdi
callq 0x106d0
movq %r14, %rdi
callq 0x2d02b
movq %rax, %rbx
jmp 0x28215