	.file	"extr_dsl_deadlist.c_dsl_deadlist_discard_tree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dsl_deadlist_discard_tree
	.type	dsl_deadlist_discard_tree, @function
dsl_deadlist_discard_tree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mutex_enter@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L8
	mov	QWORD PTR [rsp], 0
	lea	r12, 16[r13]
	mov	rbx, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	bpobj_close@PLT
	mov	esi, 4
	mov	rdi, rbp
	call	kmem_free@PLT
.L4:
	mov	rsi, rbx
	mov	rdi, r12
	call	avl_destroy_nodes@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	call	avl_destroy@PLT
	mov	rax, QWORD PTR B_FALSE[rip]
	mov	QWORD PTR 8[r13], rax
.L8:
	mov	rdi, r13
	call	mutex_exit@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_deadlist_discard_tree, .-dsl_deadlist_discard_tree
	.comm	B_FALSE,8,8
	.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_dsl_deadlist.c_dsl_deadlist_discard_tree.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dsl_deadlist_discard_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_deadlist_discard_tree, %function
dsl_deadlist_discard_tree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r3, .L11
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mutex_enter
	ldr	r3, [r6, #4]
	cmp	r3, #0
	movne	r3, #0
	addne	r5, r6, #8
	strne	r3, [sp]
	bne	.L4
	b	.L9
.L5:
	bl	bpobj_close
	mov	r0, r4
	mov	r1, #4
	bl	kmem_free
.L4:
	mov	r1, sp
	mov	r0, r5
	bl	avl_destroy_nodes
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r5
	bl	avl_destroy
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [r6, #4]
	bl	mutex_exit
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r6
	bl	mutex_exit
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	B_FALSE
	.size	dsl_deadlist_discard_tree, .-dsl_deadlist_discard_tree
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
