	.file	"extr_arena.c_arena_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tcache_ql"
.LC1:
	.string	"arena_large"
.LC2:
	.string	"extent_grow"
.LC3:
	.string	"extent_avail"
	.text
	.p2align 4
	.globl	arena_new
	.type	arena_new, @function
arena_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	test	esi, esi
	jne	.L2
	xor	eax, eax
	call	b0get@PLT
	mov	r12, rax
	mov	eax, DWORD PTR SC_NBINS[rip]
	test	eax, eax
	je	.L18
.L42:
	mov	rcx, QWORD PTR bin_infos[rip]
	lea	edx, -1[rax]
	lea	rax, 4[rcx]
	lea	rsi, [rax+rdx*4]
	xor	edx, edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L39:
	add	rax, 4
.L6:
	add	edx, DWORD PTR [rcx]
	mov	rcx, rax
	cmp	rsi, rax
	jne	.L39
	lea	r14, 136[0+rdx*4]
.L5:
	mov	ecx, DWORD PTR CACHELINE[rip]
	mov	rdx, r14
	mov	rsi, r12
	mov	rdi, rbp
	call	base_alloc@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L40
.L7:
	test	ebx, ebx
	jne	.L41
.L36:
	xor	r15d, r15d
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	base_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L36
	mov	eax, DWORD PTR SC_NBINS[rip]
	test	eax, eax
	jne	.L42
.L18:
	mov	r14d, 136
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, QWORD PTR 128[rax]
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	esi, esi
	mov	r15, rax
	call	atomic_store_u@PLT
	mov	rax, QWORD PTR 128[r13]
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	esi, esi
	lea	rdi, 4[rax]
	call	atomic_store_u@PLT
	cmp	QWORD PTR config_stats[rip], 0
	mov	QWORD PTR 120[r13], 0
	jne	.L8
.L11:
	cmp	QWORD PTR config_prof[rip], 0
	je	.L10
	mov	rdi, rbp
	call	prof_accum_init@PLT
	test	rax, rax
	jne	.L7
.L10:
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	esi, esi
	lea	rdi, 100[r13]
	call	atomic_store_zu@PLT
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	eax, eax
	mov	DWORD PTR 8[rsp], edx
	call	extent_dss_prec_get@PLT
	mov	edx, DWORD PTR 8[rsp]
	lea	rdi, 96[r13]
	mov	rsi, rax
	call	atomic_store_u@PLT
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	esi, esi
	lea	rdi, 92[r13]
	call	atomic_store_zu@PLT
	lea	rdi, 88[r13]
	call	extent_list_init@PLT
	mov	ecx, DWORD PTR malloc_mutex_rank_exclusive[rip]
	lea	rdi, 84[r13]
	mov	edx, DWORD PTR WITNESS_RANK_ARENA_LARGE[rip]
	lea	rsi, .LC1[rip]
	call	malloc_mutex_init@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR extent_state_dirty[rip]
	lea	rsi, 80[r13]
	mov	ecx, 1
	mov	rdi, rbp
	call	eset_init@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR extent_state_muzzy[rip]
	xor	ecx, ecx
	lea	rsi, 76[r13]
	mov	rdi, rbp
	call	eset_init@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR extent_state_retained[rip]
	xor	ecx, ecx
	lea	rsi, 72[r13]
	mov	rdi, rbp
	call	eset_init@PLT
	test	rax, rax
	jne	.L7
	call	arena_dirty_decay_ms_default_get@PLT
	lea	rdx, 60[r13]
	lea	rdi, 68[r13]
	mov	esi, eax
	call	arena_decay_init@PLT
	test	rax, rax
	jne	.L7
	call	arena_muzzy_decay_ms_default_get@PLT
	lea	rdx, 56[r13]
	lea	rdi, 64[r13]
	mov	esi, eax
	call	arena_decay_init@PLT
	test	rax, rax
	jne	.L7
	mov	edi, DWORD PTR HUGEPAGE[rip]
	call	sz_psz2ind@PLT
	mov	edi, DWORD PTR SC_LARGE_MAXCLASS[rip]
	mov	QWORD PTR 48[r13], rax
	call	sz_psz2ind@PLT
	mov	ecx, DWORD PTR malloc_mutex_rank_exclusive[rip]
	lea	rdi, 36[r13]
	mov	edx, DWORD PTR WITNESS_RANK_EXTENT_GROW[rip]
	mov	QWORD PTR 40[r13], rax
	lea	rsi, .LC2[rip]
	call	malloc_mutex_init@PLT
	test	rax, rax
	jne	.L7
	lea	rdi, 32[r13]
	call	extent_avail_new@PLT
	mov	ecx, DWORD PTR malloc_mutex_rank_exclusive[rip]
	lea	rdi, 28[r13]
	mov	edx, DWORD PTR WITNESS_RANK_EXTENT_AVAIL[rip]
	lea	rsi, .LC3[rip]
	call	malloc_mutex_init@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR ATOMIC_RELEASE[rip]
	lea	rcx, 136[r13]
	xor	esi, esi
	lea	rdi, 24[r13]
	mov	QWORD PTR 8[rsp], rcx
	call	atomic_store_u@PLT
	cmp	DWORD PTR SC_NBINS[rip], 0
	mov	rcx, QWORD PTR 8[rsp]
	je	.L13
	xor	esi, esi
.L16:
	mov	rdx, QWORD PTR bin_infos[rip]
	mov	eax, esi
	mov	r8, QWORD PTR 16[r13]
	mov	rdi, rcx
	lea	r9, 0[0+rax*8]
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	QWORD PTR [r8+rax*8], rcx
	test	edx, edx
	je	.L14
	lea	eax, -1[rdx]
	xor	r8d, r8d
	sal	rax, 2
	mov	QWORD PTR 8[rsp], rax
	jmp	.L15
.L43:
	mov	r8, QWORD PTR 16[rsp]
	cmp	QWORD PTR 8[rsp], r8
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR 40[rsp]
	mov	esi, DWORD PTR 44[rsp]
	je	.L14
	mov	rax, QWORD PTR 16[r13]
	mov	r9, QWORD PTR 24[rsp]
	add	r8, 4
	mov	rdi, QWORD PTR [rax+r9]
.L15:
	add	rdi, r8
	mov	DWORD PTR 44[rsp], esi
	mov	DWORD PTR 40[rsp], edx
	mov	QWORD PTR 32[rsp], rcx
	mov	QWORD PTR 24[rsp], r9
	mov	QWORD PTR 16[rsp], r8
	call	bin_init@PLT
	test	eax, eax
	je	.L43
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rsi, r12
	mov	rdi, rbp
	call	base_delete@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, 56[r13]
	mov	rdi, rbp
	call	arena_stats_init@PLT
	test	rax, rax
	jne	.L7
	lea	rdi, 112[r13]
	call	ql_new@PLT
	lea	rdi, 108[r13]
	call	ql_new@PLT
	mov	ecx, DWORD PTR malloc_mutex_rank_exclusive[rip]
	lea	rdi, 104[r13]
	mov	edx, DWORD PTR WITNESS_RANK_TCACHE_QL[rip]
	lea	rsi, .LC0[rip]
	call	malloc_mutex_init@PLT
	test	rax, rax
	je	.L11
	jmp	.L7
.L14:
	add	esi, 1
	cmp	DWORD PTR SC_NBINS[rip], esi
	lea	rcx, [rcx+rdx*4]
	ja	.L16
.L13:
	add	r14, r13
	xor	edi, edi
	cmp	r14, rcx
	sete	dil
	call	assert@PLT
	mov	QWORD PTR 8[r13], r12
	mov	rsi, r13
	mov	edi, ebx
	call	arena_set@PLT
	xor	esi, esi
	mov	rdi, r13
	call	nstime_init@PLT
	mov	rdi, r13
	call	nstime_update@PLT
	test	ebx, ebx
	je	.L1
	mov	rdi, rbp
	call	tsdn_null@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	rdi, rbp
	call	tsdn_tsd@PLT
	mov	rsi, r13
	mov	edi, eax
	call	pre_reentrancy@PLT
	xor	eax, eax
	call	test_hooks_arena_new_hook@PLT
	mov	rdi, rbp
	call	tsdn_tsd@PLT
	mov	edi, eax
	call	post_reentrancy@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	arena_new, .-arena_new
	.comm	malloc_mutex_rank_exclusive,4,4
	.comm	extent_state_retained,4,4
	.comm	extent_state_muzzy,4,4
	.comm	extent_state_dirty,4,4
	.comm	config_stats,8,8
	.comm	config_prof,8,8
	.comm	bin_infos,8,8
	.comm	WITNESS_RANK_TCACHE_QL,4,4
	.comm	WITNESS_RANK_EXTENT_GROW,4,4
	.comm	WITNESS_RANK_EXTENT_AVAIL,4,4
	.comm	WITNESS_RANK_ARENA_LARGE,4,4
	.comm	SC_NBINS,4,4
	.comm	SC_LARGE_MAXCLASS,4,4
	.comm	HUGEPAGE,4,4
	.comm	CACHELINE,4,4
	.comm	ATOMIC_RELEASE,4,4
	.comm	ATOMIC_RELAXED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_arena.c_arena_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tcache_ql\000"
	.align	2
.LC1:
	.ascii	"arena_large\000"
	.align	2
.LC2:
	.ascii	"extent_grow\000"
	.align	2
.LC3:
	.ascii	"extent_avail\000"
	.text
	.align	2
	.global	arena_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	arena_new, %function
arena_new:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r1, #0
	mov	r7, r0
	sub	sp, sp, #28
	bne	.L2
	bl	b0get
	ldr	r10, .L47
	mov	r8, r0
	ldr	r1, [r10]
	cmp	r1, #0
	beq	.L18
.L45:
	mov	r4, #0
	ldr	fp, .L47+4
	ldr	r3, [fp]
	add	r1, r3, r1, lsl #2
	sub	r1, r1, #4
	sub	r3, r3, #4
.L6:
	ldr	r2, [r3, #4]!
	cmp	r3, r1
	add	r4, r4, r2
	bne	.L6
	add	r4, r4, #26
	lsl	r4, r4, #2
.L5:
	ldr	r3, .L47+8
	mov	r2, r4
	mov	r1, r8
	mov	r0, r7
	ldr	r3, [r3]
	bl	base_alloc
	subs	r5, r0, #0
	bne	.L43
.L7:
	cmp	r6, #0
	bne	.L44
.L40:
	mov	r9, #0
.L1:
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	base_new
	subs	r8, r0, #0
	beq	.L40
	ldr	r10, .L47
	ldr	r1, [r10]
	cmp	r1, #0
	bne	.L45
.L18:
	mov	r4, #104
	b	.L5
.L43:
	ldr	fp, .L47+12
	mov	r1, #0
	ldr	r2, [fp]
	ldr	r0, [r5, #100]
	bl	atomic_store_u
	ldr	r0, [r5, #100]
	ldr	r2, [fp]
	mov	r1, #0
	add	r0, r0, #4
	bl	atomic_store_u
	mov	r2, #0
	ldr	r3, .L47+16
	mov	r9, r5
	ldr	r3, [r3]
	str	r2, [r5, #96]
	cmp	r3, r2
	bne	.L8
.L11:
	ldr	r3, .L47+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	mov	r0, r7
	bl	prof_accum_init
	cmp	r0, #0
	bne	.L7
.L10:
	ldr	r2, [fp]
	mov	r1, #0
	add	r0, r5, #80
	bl	atomic_store_zu
	bl	extent_dss_prec_get
	ldr	r2, [fp]
	mov	r1, r0
	add	r0, r5, #76
	bl	atomic_store_u
	ldr	r2, [fp]
	mov	r1, #0
	add	r0, r5, #72
	bl	atomic_store_zu
	add	r0, r5, #68
	bl	extent_list_init
	ldr	fp, .L47+24
	ldr	r2, .L47+28
	ldr	r3, [fp]
	ldr	r2, [r2]
	ldr	r1, .L47+32
	add	r0, r5, #64
	bl	malloc_mutex_init
	cmp	r0, #0
	bne	.L7
	ldr	r2, .L47+36
	mov	r3, #1
	mov	r0, r7
	ldr	r2, [r2]
	add	r1, r5, #60
	bl	eset_init
	subs	r3, r0, #0
	bne	.L7
	ldr	r2, .L47+40
	mov	r0, r7
	ldr	r2, [r2]
	add	r1, r5, #56
	bl	eset_init
	subs	r3, r0, #0
	bne	.L7
	ldr	r2, .L47+44
	mov	r0, r7
	ldr	r2, [r2]
	add	r1, r5, #52
	bl	eset_init
	cmp	r0, #0
	bne	.L7
	bl	arena_dirty_decay_ms_default_get
	add	r2, r5, #40
	mov	r1, r0
	add	r0, r5, #48
	bl	arena_decay_init
	cmp	r0, #0
	bne	.L7
	bl	arena_muzzy_decay_ms_default_get
	add	r2, r5, #36
	mov	r1, r0
	add	r0, r5, #44
	bl	arena_decay_init
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L47+48
	ldr	r0, [r3]
	bl	sz_psz2ind
	ldr	r3, .L47+52
	str	r0, [r5, #32]
	ldr	r0, [r3]
	bl	sz_psz2ind
	ldr	r3, .L47+56
	str	r0, [r5, #28]
	ldr	r2, [r3]
	ldr	r1, .L47+60
	ldr	r3, [fp]
	add	r0, r5, #24
	bl	malloc_mutex_init
	cmp	r0, #0
	bne	.L7
	add	r0, r5, #20
	bl	extent_avail_new
	ldr	r2, .L47+64
	ldr	r3, [fp]
	ldr	r2, [r2]
	ldr	r1, .L47+68
	add	r0, r5, #16
	bl	malloc_mutex_init
	subs	fp, r0, #0
	bne	.L7
	ldr	r3, .L47+72
	mov	r1, fp
	ldr	r2, [r3]
	add	r0, r5, #12
	bl	atomic_store_u
	ldr	r3, [r10]
	add	r1, r5, #104
	cmp	r3, #0
	beq	.L13
	mov	r3, fp
	mov	r2, r7
	str	r8, [sp, #4]
	mov	r7, r5
	mov	r8, r3
	mov	r5, r1
	mov	r3, r9
	mov	r1, r6
	mov	r9, r4
	ldr	fp, .L47+4
.L16:
	ldr	ip, [fp]
	ldr	r0, [r7, #8]
	ldr	r6, [ip, r8, lsl #2]
	lsl	ip, r8, #2
	cmp	r6, #0
	str	r5, [r0, r8, lsl #2]
	str	ip, [sp, #8]
	mov	r0, r5
	beq	.L14
	str	fp, [sp, #12]
	mov	r4, #0
	mov	fp, r3
	b	.L15
.L46:
	cmp	r6, r4
	beq	.L38
	ldr	r0, [r7, #8]
	ldr	r3, [sp, #8]
	ldr	r0, [r0, r3]
.L15:
	add	r0, r0, r4, lsl #2
	str	r1, [sp, #20]
	str	r2, [sp, #16]
	bl	bin_init
	cmp	r0, #0
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #20]
	add	r4, r4, #1
	beq	.L46
	mov	r7, r2
	mov	r6, r1
	ldr	r8, [sp, #4]
	b	.L7
.L44:
	mov	r1, r8
	mov	r0, r7
	bl	base_delete
	b	.L40
.L8:
	mov	r0, r7
	add	r1, r5, #36
	bl	arena_stats_init
	cmp	r0, #0
	bne	.L7
	add	r0, r5, #92
	bl	ql_new
	add	r0, r5, #88
	bl	ql_new
	ldr	r3, .L47+24
	ldr	r2, .L47+76
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L47+80
	add	r0, r5, #84
	bl	malloc_mutex_init
	cmp	r0, #0
	beq	.L11
	b	.L7
.L38:
	mov	r3, fp
	ldr	fp, [sp, #12]
.L14:
	ldr	r0, [r10]
	add	r8, r8, #1
	cmp	r0, r8
	add	r5, r5, r6, lsl #2
	bhi	.L16
	mov	r4, r9
	mov	r6, r1
	mov	r9, r3
	mov	r1, r5
	mov	r5, r7
	mov	r7, r2
	ldr	r8, [sp, #4]
.L13:
	add	r0, r5, r4
	sub	r0, r0, r1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r1, r5
	mov	r0, r6
	str	r8, [r5, #4]
	bl	arena_set
	mov	r1, #0
	mov	r0, r5
	bl	nstime_init
	mov	r0, r5
	bl	nstime_update
	cmp	r6, #0
	beq	.L1
	mov	r0, r7
	bl	tsdn_null
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r7
	bl	tsdn_tsd
	mov	r1, r5
	bl	pre_reentrancy
	bl	test_hooks_arena_new_hook
	mov	r0, r7
	bl	tsdn_tsd
	bl	post_reentrancy
	b	.L1
.L48:
	.align	2
.L47:
	.word	SC_NBINS
	.word	bin_infos
	.word	CACHELINE
	.word	ATOMIC_RELAXED
	.word	config_stats
	.word	config_prof
	.word	malloc_mutex_rank_exclusive
	.word	WITNESS_RANK_ARENA_LARGE
	.word	.LC1
	.word	extent_state_dirty
	.word	extent_state_muzzy
	.word	extent_state_retained
	.word	HUGEPAGE
	.word	SC_LARGE_MAXCLASS
	.word	WITNESS_RANK_EXTENT_GROW
	.word	.LC2
	.word	WITNESS_RANK_EXTENT_AVAIL
	.word	.LC3
	.word	ATOMIC_RELEASE
	.word	WITNESS_RANK_TCACHE_QL
	.word	.LC0
	.size	arena_new, .-arena_new
	.comm	malloc_mutex_rank_exclusive,4,4
	.comm	extent_state_retained,4,4
	.comm	extent_state_muzzy,4,4
	.comm	extent_state_dirty,4,4
	.comm	config_stats,4,4
	.comm	config_prof,4,4
	.comm	bin_infos,4,4
	.comm	WITNESS_RANK_TCACHE_QL,4,4
	.comm	WITNESS_RANK_EXTENT_GROW,4,4
	.comm	WITNESS_RANK_EXTENT_AVAIL,4,4
	.comm	WITNESS_RANK_ARENA_LARGE,4,4
	.comm	SC_NBINS,4,4
	.comm	SC_LARGE_MAXCLASS,4,4
	.comm	HUGEPAGE,4,4
	.comm	CACHELINE,4,4
	.comm	ATOMIC_RELEASE,4,4
	.comm	ATOMIC_RELAXED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
