// File: /workspace/github_c_makefile_star2_O2/nilyang[P]redis-tdd-annotation/deps/jemalloc/include/jemalloc/internal/arena.h
// Function: arena_malloc
JEMALLOC_INLINE void *
arena_malloc(arena_t *arena, size_t size, bool zero, bool try_tcache)
{
	tcache_t *tcache;

	assert(size != 0);
	assert(size <= arena_maxclass);

	if (size <= SMALL_MAXCLASS) {
		if (try_tcache && (tcache = tcache_get(true)) != NULL)
			return (tcache_alloc_small(tcache, size, zero));
		else {
			return (arena_malloc_small(choose_arena(arena), size,
			    zero));
		}
	} else {
		/*
		 * Initialize tcache after checking size in order to avoid
		 * infinite recursion during tcache initialization.
		 */
		if (try_tcache && size <= tcache_maxclass && (tcache =
		    tcache_get(true)) != NULL)
			return (tcache_alloc_large(tcache, size, zero));
		else {
			return (arena_malloc_large(choose_arena(arena), size,
			    zero));
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0xe00, %rsi            # imm = 0xE00
ja 0x79ccf
testb %cl, %cl
je 0x79dab
pushq $0x1
popq %rdi
callq 0x7c477
testq %rax, %rax
je 0x79dab
movq %rax, %r15
leaq -0x1(%r14), %rax
shrq $0x3, %rax
leaq 0x1f54e(%rip), %rcx     # 0x99140
movzbl (%rax,%rcx), %r13d
movl %r13d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r12
addq $0x28, %r12
movq %r12, %rdi
callq 0x7c557
testq %rax, %rax
jne 0x79c29
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x87422
testq %rax, %rax
je 0x79e14
movq %rax, %rbx
leaq 0x61f28(%rip), %rax     # 0xdbb5b
movb (%rax), %al
testb %bpl, %bpl
je 0x79dd0
testb %al, %al
je 0x79c81
imulq $0x68, %r13, %rbp
leaq 0x61fb3(%rip), %rax     # 0xdbc00
movq 0x8(%rbp,%rax), %r13
movq %rbx, %rdi
subq %r13, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0x1f110
leaq 0x61f94(%rip), %rax     # 0xdbc00
movq (%rbp,%rax), %rdi
addq %rbx, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0x1f110
leaq 0x10(%rsp), %rax
movq $0x4d430001, (%rax)     # imm = 0x4D430001
movq %rbx, 0x8(%rax)
movq %r14, 0x10(%rax)
xorl %ecx, %ecx
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rcx, 0x28(%rax)
xorl %edx, %edx
rolq $0x3, %rdi
rolq $0xd, %rdi
rolq $0x3d, %rdi
rolq $0x33, %rdi
xchgq %rbx, %rbx
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
jmp 0x79df1
testb %cl, %cl
je 0x79d86
leaq 0x73eca(%rip), %rax     # 0xedba8
cmpq %r14, (%rax)
jb 0x79d86
pushq $0x1
popq %rdi
callq 0x7c477
testq %rax, %rax
je 0x79d86
movq %rax, %r15
addq $0xfff, %r14            # imm = 0xFFF
movq %r14, %r12
andq $-0x1000, %r12          # imm = 0xF000
shrq $0x7, %r14
andq $-0x20, %r14
addq %rax, %r14
addq $0x388, %r14            # imm = 0x388
movq %r14, %rdi
callq 0x7c557
testq %rax, %rax
je 0x79dfc
movq %rax, %rbx
testb %bpl, %bpl
je 0x79e18
leaq 0x10(%rsp), %rax
movq $0x4d430001, (%rax)     # imm = 0x4D430001
movq %rbx, 0x8(%rax)
movq %r12, 0x10(%rax)
xorl %ecx, %ecx
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rcx, 0x28(%rax)
xorl %edx, %edx
rolq $0x3, %rdi
rolq $0xd, %rdi
rolq $0x3d, %rdi
rolq $0x33, %rdi
xchgq %rbx, %rbx
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x79e2c
movq %rbx, %rdi
callq 0x7c45a
movzbl %bpl, %edx
movq %rax, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x785a7
movq %rbx, %rdi
callq 0x7c45a
movzbl %bpl, %edx
movq %rax, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7842d
testb %al, %al
je 0x79e51
imulq $0x68, %r13, %rax
leaq 0x61e21(%rip), %rcx     # 0xdbc00
movq %rbx, %rdi
subq 0x8(%rax,%rcx), %rdi
movq 0x10(%rax,%rcx), %rdx
movl $0xa5, %esi
callq 0x1f110
incq (%r12)
jmp 0x79e37
movq 0x18(%r15), %rdi
movzbl %bpl, %edx
movq %r12, %rsi
callq 0x785a7
movq %rax, %rbx
testq %rax, %rax
jne 0x79e37
xorl %ebx, %ebx
jmp 0x79e3f
leaq 0x61d3c(%rip), %rax     # 0xdbb5b
cmpb $0x1, (%rax)
jne 0x79e63
movq %rbx, %rdi
movl $0xa5, %esi
movq %r12, %rdx
callq 0x1f110
incq (%r14)
movq %r15, %rdi
callq 0x7c57d
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x61d14(%rip), %rax     # 0xdbb6c
cmpb $0x1, (%rax)
je 0x79cc2
jmp 0x79df6
leaq 0x61d02(%rip), %rax     # 0xdbb6c
cmpb $0x1, (%rax)
je 0x79d7c
jmp 0x79e34