	.file	"extr_search-y-data.c_tree_delete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tree_delete, @function
tree_delete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rcx
	xor	ecx, ecx
	mov	QWORD PTR [rsp], rdi
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, rsp
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR [rdi], rsi
	je	.L35
.L7:
	jle	.L3
	lea	rbx, 16[rdi]
	mov	rdi, QWORD PTR 16[rdi]
.L4:
	test	rdi, rdi
	jne	.L2
.L5:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L36
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rdx, QWORD PTR 32[rdi]
	cmp	QWORD PTR [rdx], rcx
	jne	.L7
	mov	rbp, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR 24[rdi]
	call	free_tree_node@PLT
	.p2align 4,,10
	.p2align 3
.L33:
	test	rbp, rbp
	je	.L8
.L37:
	test	r12, r12
	je	.L8
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR 8[rbp], rax
	jle	.L9
	mov	QWORD PTR [rbx], rbp
	lea	rbx, 24[rbp]
	mov	rbp, QWORD PTR 24[rbp]
	test	rbp, rbp
	jne	.L37
.L8:
	test	rbp, rbp
	cmove	rbp, r12
	mov	QWORD PTR [rbx], rbp
	mov	rax, QWORD PTR [rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rbx, 24[rdi]
	mov	rdi, QWORD PTR 24[rdi]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR [rbx], r12
	lea	rbx, 16[r12]
	mov	r12, QWORD PTR 16[r12]
	jmp	.L33
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tree_delete, .-tree_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_search-y-data.c_tree_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	tree_delete, %function
tree_delete:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldmia	r2, {r8-r9}
	sub	sp, sp, #12
	ldr	r3, .L29
	str	r0, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, sp
	mov	r3, r0
	b	.L2
.L6:
	ble	.L3
.L13:
	add	r4, r3, #8
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L5
.L2:
	ldr	r2, [r3]
	cmp	r2, r1
	bne	.L6
	ldr	r2, [r3, #16]
	ldmia	r2, {r6-r7}
	cmp	r7, r9
	cmpeq	r6, r8
	beq	.L26
	cmp	r8, r6
	sbcs	r2, r9, r7
	blt	.L13
.L3:
	add	r4, r3, #12
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L2
.L5:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L26:
	mov	r0, r3
	ldr	r5, [r3, #8]
	ldr	r6, [r3, #12]
	bl	free_tree_node
	b	.L24
.L28:
	ldr	r2, [r5, #4]
	ldr	r3, [r6, #4]
	cmp	r2, r3
	strgt	r5, [r4]
	strle	r6, [r4]
	addgt	r4, r5, #12
	addle	r4, r6, #8
	ldrgt	r5, [r5, #12]
	ldrle	r6, [r6, #8]
.L24:
	cmp	r5, #0
	cmpne	r6, #0
	bne	.L28
	cmp	r5, #0
	moveq	r5, r6
	str	r5, [r4]
	ldr	r0, [sp]
	b	.L5
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC0
	.size	tree_delete, .-tree_delete
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
