	.file	"extr_arena.c_arena_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arena_reset
	.type	arena_reset, @function
arena_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	lea	r12, 16[rsi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r13, 32[rsp]
	call	tsd_tsdn@PLT
	mov	rsi, r12
	mov	edi, eax
	call	malloc_mutex_lock@PLT
	lea	rax, 20[r15]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	extent_list_first@PLT
	mov	r14, rax
	lea	rax, 40[rsp]
	mov	QWORD PTR 24[rsp], rax
	test	r14, r14
	je	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r14
	call	extent_base_get@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	tsd_tsdn@PLT
	mov	rsi, r12
	mov	edi, eax
	call	malloc_mutex_unlock@PLT
	mov	rdi, rbx
	call	tsd_rtree_ctx@PLT
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	tsd_tsdn@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	rcx, rbp
	mov	r9, r13
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 144
	mov	rdx, QWORD PTR 24[rsp]
	mov	edi, eax
	lea	rsi, extents_rtree[rip]
	mov	r8d, 1
	call	rtree_szind_slab_read@PLT
	mov	rax, QWORD PTR SC_NSIZES[rip]
	xor	edi, edi
	cmp	QWORD PTR 48[rsp], rax
	setne	dil
	call	assert@PLT
	cmp	QWORD PTR config_stats[rip], 0
	pop	rcx
	.cfi_def_cfa_offset 136
	pop	rsi
	.cfi_def_cfa_offset 128
	jne	.L5
	cmp	QWORD PTR config_prof[rip], 0
	je	.L6
	cmp	QWORD PTR opt_prof[rip], 0
	je	.L6
.L5:
	mov	rdi, QWORD PTR 32[rsp]
	call	sz_index2size@PLT
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	tsd_tsdn@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	isalloc@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR 8[rsp]
	sete	dil
	call	assert@PLT
	cmp	QWORD PTR config_prof[rip], 0
	je	.L6
	cmp	QWORD PTR opt_prof[rip], 0
	je	.L6
	mov	rdx, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rsi, rbp
	mov	rdi, rbx
	call	prof_free@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	call	tsd_tsdn@PLT
	mov	rsi, r14
	mov	edi, eax
	call	large_dalloc@PLT
	mov	rdi, rbx
	call	tsd_tsdn@PLT
	mov	rsi, r12
	mov	edi, eax
	call	malloc_mutex_lock@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	extent_list_first@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L2
.L7:
	mov	rdi, rbx
	xor	r14d, r14d
	call	tsd_tsdn@PLT
	mov	rsi, r12
	mov	edi, eax
	call	malloc_mutex_unlock@PLT
	mov	edi, DWORD PTR SC_NBINS[rip]
	mov	rax, QWORD PTR bin_infos[rip]
	test	edi, edi
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, r14d
	xor	ebp, ebp
	lea	r13, 0[0+rdx*4]
	lea	r12, 0[0+rdx*8]
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[r15]
	mov	edx, ebp
	mov	rsi, r15
	mov	rdi, rbx
	add	ebp, 1
	mov	rax, QWORD PTR [rax+r12]
	lea	rdx, [rax+rdx*4]
	call	arena_bin_reset@PLT
	mov	rax, QWORD PTR bin_infos[rip]
	cmp	DWORD PTR [rax+r13], ebp
	ja	.L8
.L10:
	add	r14d, 1
	cmp	DWORD PTR SC_NBINS[rip], r14d
	ja	.L3
.L4:
	mov	edx, DWORD PTR ATOMIC_RELAXED[rip]
	xor	esi, esi
	mov	rdi, r15
	call	atomic_store_zu@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arena_reset, .-arena_reset
	.comm	opt_prof,8,8
	.comm	extents_rtree,4,4
	.comm	config_stats,8,8
	.comm	config_prof,8,8
	.comm	bin_infos,8,8
	.comm	SC_NSIZES,8,8
	.comm	SC_NBINS,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_reset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	arena_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	arena_reset, %function
arena_reset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r3, .L31
	sub	sp, sp, #36
	add	r8, r1, #8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	add	fp, r4, #12
	bl	tsd_tsdn
	mov	r1, r8
	bl	malloc_mutex_lock
	mov	r0, fp
	bl	extent_list_first
	subs	r6, r0, #0
	beq	.L7
	ldr	r10, .L31+4
.L2:
	mov	r0, r6
	bl	extent_base_get
	mov	r7, r0
	mov	r0, r5
	bl	tsd_tsdn
	mov	r1, r8
	bl	malloc_mutex_unlock
	mov	r0, r5
	bl	tsd_rtree_ctx
	mov	r9, r0
	mov	r0, r5
	bl	tsd_tsdn
	add	r3, sp, #24
	str	r3, [sp, #8]
	add	r3, sp, #20
	str	r3, [sp, #4]
	mov	r3, #1
	mov	r2, r9
	ldr	r1, .L31+8
	str	r3, [sp]
	mov	r3, r7
	bl	rtree_szind_slab_read
	ldr	r3, .L31+12
	ldr	r0, [sp, #20]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r3, .L31+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r10]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L31+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
.L5:
	ldr	r0, [sp, #20]
	bl	sz_index2size
	mov	r9, r0
	mov	r0, r5
	bl	tsd_tsdn
	mov	r1, r7
	bl	isalloc
	sub	r0, r0, r9
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r10]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L31+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	mov	r2, r9
	mov	r1, r7
	mov	r0, r5
	add	r3, sp, #20
	bl	prof_free
.L6:
	mov	r0, r5
	bl	tsd_tsdn
	mov	r1, r6
	bl	large_dalloc
	mov	r0, r5
	bl	tsd_tsdn
	mov	r1, r8
	bl	malloc_mutex_lock
	mov	r0, fp
	bl	extent_list_first
	subs	r6, r0, #0
	bne	.L2
.L7:
	mov	r0, r5
	ldr	r9, .L31+24
	bl	tsd_tsdn
	mov	r1, r8
	bl	malloc_mutex_unlock
	ldr	r3, [r9]
	cmp	r3, #0
	movne	r8, #0
	ldrne	r10, .L31+28
	beq	.L4
.L3:
	ldr	r3, [r10]
	lsl	r7, r8, #2
	ldr	r3, [r3, r8, lsl #2]
	cmp	r3, #0
	movne	r6, #0
	beq	.L9
.L8:
	ldr	r3, [r4, #4]
	mov	r1, r4
	ldr	r2, [r3, r7]
	mov	r0, r5
	add	r2, r2, r6, lsl #2
	bl	arena_bin_reset
	ldr	r3, [r10]
	add	r6, r6, #1
	ldr	r3, [r3, r7]
	cmp	r3, r6
	bhi	.L8
.L9:
	ldr	r3, [r9]
	add	r8, r8, #1
	cmp	r3, r8
	bhi	.L3
.L4:
	ldr	r3, .L31+32
	mov	r0, r4
	ldr	r2, [r3]
	mov	r1, #0
	bl	atomic_store_zu
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	config_prof
	.word	extents_rtree
	.word	SC_NSIZES
	.word	config_stats
	.word	opt_prof
	.word	SC_NBINS
	.word	bin_infos
	.word	ATOMIC_RELAXED
	.size	arena_reset, .-arena_reset
	.comm	opt_prof,4,4
	.comm	extents_rtree,4,4
	.comm	config_stats,4,4
	.comm	config_prof,4,4
	.comm	bin_infos,4,4
	.comm	SC_NSIZES,4,4
	.comm	SC_NBINS,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
