	.file	"extr_lists-data.c_ltree_delete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltree_delete, @function
ltree_delete:
.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
	test	rdi, rdi
	je	.L2
	mov	QWORD PTR [rsp], rdi
	mov	ebx, esi
	mov	rbp, rdi
	mov	r12, rsp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	lea	r12, 16[rbp]
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	je	.L2
.L3:
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, ebx
	call	ltree_x_compare@PLT
	test	eax, eax
	je	.L35
	jns	.L4
	lea	r12, 8[rbp]
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rbx, QWORD PTR 8[rbp]
	mov	r13, QWORD PTR 16[rbp]
	call	free_ltree_node@PLT
	.p2align 4,,10
	.p2align 3
.L33:
	test	rbx, rbx
	je	.L7
.L37:
	test	r13, r13
	je	.L7
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR [rbx], rax
	jle	.L8
	mov	QWORD PTR [r12], rbx
	lea	r12, 16[rbx]
	mov	rbx, QWORD PTR 16[rbx]
	test	rbx, rbx
	jne	.L37
.L7:
	test	rbx, rbx
	cmove	rbx, r13
	mov	QWORD PTR [r12], rbx
	mov	r13, QWORD PTR [rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	QWORD PTR [r12], r13
	lea	r12, 8[r13]
	mov	r13, QWORD PTR 8[r13]
	jmp	.L33
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ltree_delete, .-ltree_delete
	.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_lists-data.c_ltree_delete.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltree_delete, %function
ltree_delete:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L28
	sub	sp, sp, #12
	subs	r7, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	mov	r5, r1
	mov	r4, r7
	mov	r6, sp
	str	r7, [sp]
	b	.L3
.L6:
	addlt	r6, r4, #4
	addge	r6, r4, #8
	ldrlt	r4, [r4, #4]
	ldrge	r4, [r4, #8]
	cmp	r4, #0
	beq	.L2
.L3:
	mov	r0, r5
	ldr	r1, [r4, #12]
	bl	ltree_x_compare
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	ldmib	r4, {r5, r7}
	bl	free_ltree_node
	b	.L24
.L26:
	ldr	r2, [r5]
	ldr	r3, [r7]
	cmp	r2, r3
	strgt	r5, [r6]
	strle	r7, [r6]
	addgt	r6, r5, #8
	addle	r6, r7, #4
	ldrgt	r5, [r5, #8]
	ldrle	r7, [r7, #4]
.L24:
	cmp	r5, #0
	cmpne	r7, #0
	bne	.L26
	cmp	r5, #0
	moveq	r5, r7
	str	r5, [r6]
	ldr	r7, [sp]
.L2:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.size	ltree_delete, .-ltree_delete
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
