// File: /workspace/github_c_makefile_star2_O1/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 0x824cb
testb %cl, %cl
je 0x82577
movl $0x1, %edi
callq 0x84efd
testq %rax, %rax
je 0x82577
movq %rax, %r15
leaq -0x1(%rbx), %rax
shrq $0x3, %rax
leaq 0x20c38(%rip), %rcx     # 0xa30c0
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 0x825b1
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x824bb
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r14
jmp 0x825bd
testb %cl, %cl
je 0x8253d
leaq 0x6e6d2(%rip), %rax     # 0xf0ba8
cmpq %rbx, (%rax)
jb 0x8253d
movl $0x1, %edi
callq 0x84efd
testq %rax, %rax
je 0x8253d
movq %rax, %r15
addq $0xfff, %rbx            # imm = 0xFFF
movq %rbx, %rax
shrq $0x7, %rax
andq $-0x20, %rax
leaq (%rax,%r15), %r12
addq $0x388, %r12            # imm = 0x388
movl 0x398(%rax,%r15), %eax
testl %eax, %eax
je 0x8268d
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x8252d
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r14
jmp 0x82699
testq %r14, %r14
jne 0x8255a
movq 0x439ef(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %r14
testq %r14, %r14
jne 0x8255a
callq 0x7c332
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 0x80be1
testq %r14, %r14
jne 0x82594
movq 0x439b5(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %r14
testq %r14, %r14
jne 0x82594
callq 0x7c332
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 0x80961
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
xorl %r14d, %r14d
testq %r14, %r14
jne 0x825dc
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x90c2c
movq %rax, %r14
testq %rax, %rax
je 0x82733
leaq 0x5c578(%rip), %rax     # 0xdeb5b
movb (%rax), %al
testb %bpl, %bpl
je 0x82666
testb %al, %al
je 0x8262d
imulq $0x68, %r13, %rbp
leaq 0x5c607(%rip), %rax     # 0xdec00
movq 0x8(%rbp,%rax), %r13
movq %r14, %rdi
subq %r13, %rdi
movl $0xa5, %esi
movq %r13, %rdx
callq 0x1f110
leaq 0x5c5e8(%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
jmp 0x826e5
testb %al, %al
je 0x8275e
imulq $0x68, %r13, %rax
leaq 0x5c587(%rip), %rcx     # 0xdec00
movq %r14, %rdi
subq 0x8(%rax,%rcx), %rdi
movq 0x10(%rax,%rcx), %rdx
movl $0xa5, %esi
jmp 0x826f7
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
xorl %r14d, %r14d
andq $-0x1000, %rbx          # imm = 0xF000
testq %r14, %r14
je 0x8271b
testb %bpl, %bpl
je 0x82748
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
callq 0x1f110
incq (%r12)
movl 0x20(%r15), %eax
incl %eax
movl %eax, 0x20(%r15)
cmpl $0x125, %eax            # imm = 0x125
jne 0x82736
movq %r15, %rdi
callq 0x90815
jmp 0x82736
movq 0x18(%r15), %rdi
movzbl %bpl, %edx
movq %rbx, %rsi
callq 0x80be1
movq %rax, %r14
testq %rax, %rax
jne 0x82700
xorl %r14d, %r14d
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5c40c(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x8275e
movq %r14, %rdi
movl $0xa5, %esi
jmp 0x826f4
leaq 0x5c407(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
je 0x826ef
jmp 0x826fc