// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/arena.c
// Function: je_arena_malloc_hard
void *
arena_malloc_hard(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind,
    bool zero)
{

	assert(!tsdn_null(tsdn) || arena != NULL);

	if (likely(!tsdn_null(tsdn)))
		arena = arena_choose(tsdn_tsd(tsdn), arena);
	if (unlikely(arena == NULL))
		return (NULL);

	if (likely(size <= SMALL_MAXCLASS))
		return (arena_malloc_small(tsdn, arena, ind, zero));
	if (likely(size <= large_maxclass))
		return (arena_malloc_large(tsdn, arena, ind, zero));
	return (huge_malloc(tsdn, arena, index2size(ind), zero));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x1bc3a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1be70
movq %rax, %rbx
testq %rbx, %rbx
je 0x1bd17
cmpq $0x3800, %r12           # imm = 0x3800
ja 0x1bd74
movl %r15d, %r12d
imulq $0xa8, %r12, %rax
leaq (%rbx,%rax), %r13
addq $0x980, %r13            # imm = 0x980
leaq 0x1a5d4(%rip), %rax     # 0x36240
movq (%rax,%r12,8), %rax
movq %rax, (%rsp)
movq %r13, %rdi
callq 0xb5a0
movq 0x50(%r13), %rdi
testq %rdi, %rdi
je 0x1bca3
cmpl $0x0, 0x4(%rdi)
je 0x1bca3
movq %r12, %rax
shlq $0x6, %rax
leaq 0x2c947(%rip), %rsi     # 0x485e0
addq %rax, %rsi
callq 0x1b618
jmp 0x1bcb1
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1b6a3
movq %rax, %r15
testq %rax, %rax
je 0x1bd0f
incq 0x60(%r13)
movdqu 0x70(%r13), %xmm0
pcmpeqd %xmm1, %xmm1
psubq %xmm1, %xmm0
movdqu %xmm0, 0x70(%r13)
movq %r13, %rdi
callq 0xb380
leaq 0x2c841(%rip), %rax     # 0x48521
movb (%rax), %al
testb %bpl, %bpl
je 0x1bd1c
testb %al, %al
jne 0x1bdb5
leaq 0x2c8a6(%rip), %rax     # 0x4859c
cmpb $0x1, (%rax)
je 0x1bdf1
movq %r15, %rdi
xorl %esi, %esi
movq (%rsp), %rdx
callq 0xb230
jmp 0x1bd44
movq %r13, %rdi
callq 0xb380
xorl %r15d, %r15d
jmp 0x1bd62
testb %al, %al
jne 0x1be02
leaq 0x2c808(%rip), %rax     # 0x48533
cmpb $0x1, (%rax)
je 0x1be32
leaq 0x2c861(%rip), %rax     # 0x4859c
cmpb $0x1, (%rax)
je 0x1be21
testq %r14, %r14
je 0x1bd62
movl (%rbx), %esi
movq %r14, %rdi
callq 0x20a5e
testq %rax, %rax
je 0x1bd62
movl (%rax), %ecx
testl %ecx, %ecx
jle 0x1bda1
decl %ecx
movl %ecx, (%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq %r12, 0x2d225(%rip)     # 0x48fa0
jb 0x1be45
movzbl %bpl, %ecx
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b9d9
movl 0x4(%rax), %ecx
movl %ecx, (%rax)
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1aac4
jmp 0x1bd62
shlq $0x6, %r12
leaq 0x2c820(%rip), %rbp     # 0x485e0
movq 0x8(%r12,%rbp), %r13
movq %r15, %rdi
subq %r13, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0xb230
movq (%r12,%rbp), %rdi
addq %r15, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0xb230
jmp 0x1bcef
movq %r15, %rdi
movq (%rsp), %rsi
callq 0x32496
jmp 0x1bcff
shlq $0x6, %r12
leaq 0x2c7d3(%rip), %rax     # 0x485e0
movq %r15, %rdi
subq 0x8(%r12,%rax), %rdi
movq 0x10(%r12,%rax), %rdx
movl $0xa5, %esi
jmp 0x1be3b
movq %r15, %rdi
movq (%rsp), %rsi
callq 0x32496
jmp 0x1bd44
movq %r15, %rdi
xorl %esi, %esi
movq (%rsp), %rdx
callq 0xb230
jmp 0x1bd34
movl %r15d, %eax
leaq 0x1a3f1(%rip), %rcx     # 0x36240
movq (%rcx,%rax,8), %rdx
movzbl %bpl, %ecx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2808c