	.file	"extr_window-tree.c_window_tree_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	window_tree_destroy, @function
window_tree_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	sub	QWORD PTR [rdi], 1
	jne	.L1
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 8[rdi], 0
	je	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 32[rbp]
	lea	rax, [rbx+rbx*4]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	add	rbx, 1
	lea	rax, [rdx+rax*8]
	push	QWORD PTR 32[rax]
	.cfi_def_cfa_offset 48
	push	QWORD PTR 24[rax]
	.cfi_def_cfa_offset 56
	push	QWORD PTR 16[rax]
	.cfi_def_cfa_offset 64
	push	QWORD PTR 8[rax]
	.cfi_def_cfa_offset 72
	push	QWORD PTR [rax]
	.cfi_def_cfa_offset 80
	call	window_tree_free_item@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 8[rbp], rbx
	ja	.L4
.L3:
	mov	rdi, QWORD PTR 32[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	free@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	free@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	window_tree_destroy, .-window_tree_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_window-tree.c_window_tree_destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	window_tree_destroy, %function
window_tree_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	sub	sp, sp, #8
	sub	r4, r4, #1
	cmp	r4, #0
	str	r4, [r0]
	bne	.L1
	ldr	r3, [r0, #4]
	mov	r5, r0
	cmp	r3, #0
	beq	.L3
	mov	r6, r4
.L4:
	ldr	r3, [r5, #16]
	add	r6, r6, #1
	add	r3, r3, r4
	ldr	r2, [r3, #16]
	add	r4, r4, #20
	str	r2, [sp]
	ldm	r3, {r0, r1, r2, r3}
	bl	window_tree_free_item
	ldr	r3, [r5, #4]
	cmp	r3, r6
	bhi	.L4
.L3:
	ldr	r0, [r5, #16]
	bl	free
	ldr	r0, [r5, #12]
	bl	free
	ldr	r0, [r5, #8]
	bl	free
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	free
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
	.size	window_tree_destroy, .-window_tree_destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
