// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movq %rdi, %r14
cmpq $0xe00, %rsi            # imm = 0xE00
ja 0x827fb
testb %cl, %cl
je 0x82911
movl $0x1, %edi
callq 0x8521e
testq %rax, %rax
je 0x82911
movq %rax, %r15
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x20a11(%rip), %rcx     # 0xa31c0
movzbl (%rax,%rcx), %r13d
movl %r13d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r12
addq $0x28, %r12
movl 0x38(%r15,%rax), %eax
testl %eax, %eax
je 0x8294b
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x827e2
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r14
testq %r14, %r14
jne 0x8296e
jmp 0x82954
testb %cl, %cl
je 0x828d7
leaq 0x6e39e(%rip), %rax     # 0xf0ba8
cmpq %rbx, (%rax)
jb 0x828d7
movl $0x1, %edi
callq 0x8521e
testq %rax, %rax
je 0x828d7
movq %rax, %r15
addq $0xfff, %rbx            # imm = 0xFFF
movq %rbx, %rcx
andq $-0x1000, %rcx          # imm = 0xF000
shrq $0x7, %rbx
andq $-0x20, %rbx
leaq (%rbx,%rax), %r12
addq $0x388, %r12            # imm = 0x388
movl 0x398(%rbx,%rax), %eax
testl %eax, %eax
je 0x82a35
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x8286f
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rdx
movl %eax, %eax
movq (%rdx,%rax,8), %r14
testq %r14, %r14
je 0x82a3e
testb %bpl, %bpl
je 0x82a5b
leaq 0x10(%rsp), %rax
movq $0x4d430001, (%rax)     # imm = 0x4D430001
movq %r14, 0x8(%rax)
movq %rcx, 0x10(%rax)
xorl %edx, %edx
movq %rdx, 0x18(%rax)
movq %rdx, 0x20(%rax)
movq %rdx, 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 %r14, %rdi
xorl %esi, %esi
jmp 0x82a6f
testq %r14, %r14
jne 0x828f4
movq 0x43655(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %r14
testq %r14, %r14
jne 0x828f4
callq 0x7c4da
movq %rax, %r14
movzbl %bpl, %edx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x80ebe
testq %r14, %r14
jne 0x8292e
movq 0x4361b(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %r14
testq %r14, %r14
jne 0x8292e
callq 0x7c4da
movq %rax, %r14
movzbl %bpl, %edx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x80c45
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x90f53
movq %rax, %r14
testq %rax, %rax
je 0x82a56
leaq 0x5c1e6(%rip), %rax     # 0xdeb5b
movb (%rax), %al
testb %bpl, %bpl
je 0x82a0e
testb %al, %al
je 0x829c3
imulq $0x68, %r13, %rbp
leaq 0x5c271(%rip), %rax     # 0xdec00
movq 0x8(%rbp,%rax), %r13
movq %r14, %rdi
subq %r13, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0x1f110
leaq 0x5c252(%rip), %rax     # 0xdec00
movq (%rbp,%rax), %rdi
addq %r14, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0x1f110
leaq 0x10(%rsp), %rax
movq $0x4d430001, (%rax)     # imm = 0x4D430001
movq %r14, 0x8(%rax)
movq %rbx, 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 %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
jmp 0x82a72
testb %al, %al
je 0x82aa6
imulq $0x68, %r13, %rax
leaq 0x5c1df(%rip), %rcx     # 0xdec00
movq %r14, %rdi
subq 0x8(%rax,%rcx), %rdi
movq 0x10(%rax,%rcx), %rdx
movl $0xa5, %esi
jmp 0x82a72
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
movq 0x18(%r15), %rdi
movzbl %bpl, %edx
movq %rcx, %rsi
callq 0x80ebe
movq %rax, %r14
testq %rax, %rax
jne 0x82a7b
xorl %r14d, %r14d
jmp 0x82a94
leaq 0x5c0f9(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x82ab8
movq %r14, %rdi
movl $0xa5, %esi
movq %rcx, %rdx
callq 0x1f110
incq (%r12)
movl 0x20(%r15), %eax
incl %eax
movl %eax, 0x20(%r15)
cmpl $0x125, %eax            # imm = 0x125
jne 0x82a94
movq %r15, %rdi
callq 0x90b49
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5c0bf(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
je 0x82a04
jmp 0x82a77
leaq 0x5c0ad(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
je 0x828cd
jmp 0x82a77