	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltree_delete
_ltree_delete:                          ## @ltree_delete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdi, -48(%rbp)
	movl	24(%rdi), %esi
	movl	%r15d, %edi
	callq	_ltree_x_compare
	testl	%eax, %eax
	je	LBB0_3
## %bb.11:
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setns	%bl
	movq	8(%r13,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_12 Depth=1
	movl	24(%r13), %esi
	movl	%r15d, %edi
	callq	_ltree_x_compare
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	leaq	(%r12,%rbx,8), %r15
	addq	$8, %r15
	movq	%r13, %r14
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_3:
	leaq	-48(%rbp), %r15
LBB0_4:
	movq	8(%r14), %rbx
	movq	16(%r14), %r12
	movq	%r14, %rdi
	callq	_free_ltree_node
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, (%r15)
	movq	8(%r12), %rax
	addq	$8, %r12
	movq	%r12, %r15
	movq	%rax, %r12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	setne	%al
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%r15)
	movq	16(%rbx), %rax
	addq	$16, %rbx
	movq	%rbx, %r15
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_14:
	testb	%al, %al
	cmoveq	%r12, %rbx
	movq	%rbx, (%r15)
	movq	-48(%rbp), %r14
LBB0_15:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ltree_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltree_delete
_ltree_delete:                          ; @ltree_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x1
	str	x19, [sp, #8]
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_ltree_x_compare
	cbz	w0, LBB0_6
; %bb.2:
	mov	w22, #16
	mov	w23, #8
	mov	x24, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x24, #8
	add	x9, x24, #16
	cmp	w0, #0
	csel	x10, x23, x22, lt
	csel	x21, x8, x9, lt
	ldr	x24, [x24, x10]
	cbz	x24, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24, #24]
	mov	x0, x20
	bl	_ltree_x_compare
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x19, x24
	b	LBB0_7
LBB0_6:
	add	x21, sp, #8
LBB0_7:
	ldp	x20, x22, [x19, #8]
	mov	x0, x19
	bl	_free_ltree_node
	cmp	x20, #0
	cset	w8, ne
	cbz	x20, LBB0_14
; %bb.8:
	cbz	x22, LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x20, [x21]
	ldr	x8, [x20, #16]!
	mov	x21, x20
	mov	x20, x8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	x22, [x21]
	ldr	x8, [x22, #8]!
	mov	x21, x22
	mov	x22, x8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	x20, #0
	cset	w8, ne
	cbz	x20, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x22, LBB0_9
LBB0_14:
	cmp	w8, #0
	csel	x8, x20, x22, ne
	str	x8, [x21]
	ldr	x19, [sp, #8]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ltree_delete
.subsections_via_symbols
