	.file	"extr_uu_avl.c_uu_avl_destroy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"uu_avl_destroy(%p): tree not empty\n"
	.align 8
.LC1:
	.string	"uu_avl_destroy(%p):  outstanding walkers\n"
	.text
	.p2align 4
	.globl	uu_avl_destroy
	.type	uu_avl_destroy, @function
uu_avl_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 48[rdi], 0
	mov	r12, QWORD PTR 8[rdi]
	jne	.L12
.L3:
	mov	rdi, r12
	call	pthread_mutex_lock@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	UU_AVL_PTR@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	QWORD PTR 8[rax], rdi
	call	UU_AVL_PTR@PLT
	mov	rdx, QWORD PTR 16[rbp]
	mov	rdi, r12
	mov	QWORD PTR [rax], rdx
	call	pthread_mutex_unlock@PLT
	xor	edi, edi
	call	UU_PTR_ENCODE@PLT
	xor	edi, edi
	mov	QWORD PTR 24[rbp], rax
	call	UU_PTR_ENCODE@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	call	avl_destroy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	uu_free@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	avl_numnodes@PLT
	test	rax, rax
	jne	.L13
.L4:
	lea	rax, 32[rbp]
	cmp	QWORD PTR 40[rbp], rax
	je	.L14
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	uu_panic@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	rax, QWORD PTR 32[rbp]
	je	.L3
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	uu_panic@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	uu_panic@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	uu_avl_destroy, .-uu_avl_destroy
	.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_uu_avl.c_uu_avl_destroy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uu_avl_destroy(%p): tree not empty\012\000"
	.align	2
.LC1:
	.ascii	"uu_avl_destroy(%p):  outstanding walkers\012\000"
	.text
	.align	2
	.global	uu_avl_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	uu_avl_destroy, %function
uu_avl_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	ldr	r5, [r0, #4]
	bne	.L12
.L3:
	mov	r0, r5
	bl	pthread_mutex_lock
	ldr	r0, [r4, #8]
	bl	UU_AVL_PTR
	ldr	r3, [r4, #12]
	str	r3, [r0, #4]
	mov	r0, r3
	bl	UU_AVL_PTR
	mov	r3, r0
	ldr	r2, [r4, #8]
	mov	r0, r5
	str	r2, [r3]
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	UU_PTR_ENCODE
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #12]
	bl	UU_PTR_ENCODE
	mov	r3, #0
	str	r0, [r4, #8]
	str	r3, [r4, #4]
	mov	r0, r4
	bl	avl_destroy
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	uu_free
.L12:
	bl	avl_numnodes
	cmp	r0, #0
	bne	.L13
.L4:
	ldr	r3, [r4, #20]
	add	r2, r4, #16
	cmp	r3, r2
	beq	.L14
	mov	r1, r4
	ldr	r0, .L15
	bl	uu_panic
	b	.L3
.L14:
	ldr	r2, [r4, #16]
	cmp	r3, r2
	beq	.L3
	mov	r1, r4
	ldr	r0, .L15
	bl	uu_panic
	b	.L3
.L13:
	mov	r1, r4
	ldr	r0, .L15+4
	bl	uu_panic
	b	.L4
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.size	uu_avl_destroy, .-uu_avl_destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
