	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_delete_prefix             ## -- Begin function tree_delete_prefix
	.p2align	4, 0x90
_tree_delete_prefix:                    ## @tree_delete_prefix
	.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
	subq	$24, %rsp
	.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.3:
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	negl	%edi
	cmovsl	%r13d, %edi
	movl	4(%rax), %r14d
	movl	%r8d, %eax
	negl	%eax
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movl	%r8d, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmovnsl	%eax, %esi
	callq	_min
	leaq	-1(%rax), %r8
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	%rbx, %r14
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_mystrcmp2
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setg	%dil
	callq	_assert
	leal	2(%r14), %r12d
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.4:
	cmpl	%r13d, %r12d
	jg	LBB0_5
## %bb.6:
	testl	%r12d, %r12d
	jle	LBB0_10
LBB0_7:
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	jg	LBB0_9
## %bb.8:
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_11
LBB0_9:
	movq	8(%r15), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_tree_delete_prefix
	movq	%rax, 8(%r15)
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_5:
	movq	16(%r15), %rdi
	movl	%r12d, %r8d
	negl	%r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_tree_delete_prefix
	movq	%rax, 16(%r15)
	testl	%r12d, %r12d
	jg	LBB0_7
LBB0_10:
	je	LBB0_13
LBB0_11:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmpl	%ecx, %r12d
	jl	LBB0_13
## %bb.12:
	cmpl	%eax, %r12d
	jg	LBB0_13
LBB0_2:
	movq	%r15, %rax
	jmp	LBB0_14
LBB0_13:
	movq	8(%r15), %rsi
	movq	16(%r15), %rdi
	callq	_tree_merge
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_free_wildcard_entry
	movq	%r15, %rdi
	callq	_free_tree_node
	movq	%rbx, %rax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_delete_prefix             ; -- Begin function tree_delete_prefix
	.p2align	2
_tree_delete_prefix:                    ; @tree_delete_prefix
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x8, [x19]
	ldp	w25, w23, [x8]
	cmp	w4, #0
	cneg	w1, w4, mi
	cmp	w3, #0
	cneg	w0, w3, mi
	cset	w26, gt
	bl	_min
	sub	x4, x0, #1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_mystrcmp2
	mov	x23, x0
	mov	x0, x26
	bl	_assert
	add	w8, w21, #2
	cmp	w23, #0
	csel	w23, w8, w23, eq
	tbnz	w23, #31, LBB0_7
; %bb.2:
	cmp	w23, w24
	b.gt	LBB0_7
; %bb.3:
	cmp	w23, #1
	b.lt	LBB0_8
LBB0_4:
	cmp	w20, #0
	b.gt	LBB0_6
; %bb.5:
	neg	w8, w20
	cmp	w23, w8
	b.ge	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	bl	_tree_delete_prefix
	str	x0, [x19, #8]
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19, #16]
	neg	w4, w23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	bl	_tree_delete_prefix
	str	x0, [x19, #16]
	cmp	w23, #1
	b.ge	LBB0_4
LBB0_8:
	cbz	w23, LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldr	w8, [x8]
	neg	w9, w8
	cmp	w23, w9
	ccmp	w23, w8, #0, ge
	b.le	LBB0_11
LBB0_10:
	ldp	x1, x0, [x19, #8]
	bl	_tree_merge
	mov	x20, x0
	ldr	x0, [x19]
	bl	_free_wildcard_entry
	mov	x0, x19
	bl	_free_tree_node
	mov	x0, x20
	b	LBB0_12
LBB0_11:
	mov	x0, x19
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
