	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_content_remove
_tree_content_remove:                   ## @tree_content_remove
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strchrnul
	movq	%rax, %r15
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_load_tree
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_3:
	cmpb	$0, (%r13)
	movq	%r14, %rbx
	jne	LBB0_6
LBB0_4:
	testq	%r12, %r12
	je	LBB0_23
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	jmp	LBB0_26
LBB0_6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_30
## %bb.7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r12d
	subl	%r13d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r15), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movl	%eax, %ecx
	cmpq	%rcx, %r14
	jae	LBB0_30
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	movq	16(%rbx), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rcx), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_fspathncmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpb	$0, (%r15)
	je	LBB0_32
## %bb.13:
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	callq	_S_ISDIR
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_28
## %bb.14:
	cmpb	$0, (%r15)
	je	LBB0_4
## %bb.15:
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_4
## %bb.16:
	cmpq	$0, 8(%rbx)
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_load_tree
LBB0_18:
	incq	%r15
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_tree_content_remove
	testl	%eax, %eax
	je	LBB0_31
## %bb.19:
	movq	8(%rbx), %rdi
	movl	(%rdi), %eax
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	8(%rdi), %rcx
	xorl	%edx, %edx
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rsi), %rsi
	cmpq	$0, 24(%rsi)
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_21
	jmp	LBB0_24
LBB0_30:
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_23:
	movq	8(%rbx), %rdi
LBB0_24:
	testq	%rdi, %rdi
	je	LBB0_26
LBB0_25:
	callq	_release_tree_content_recursive
LBB0_26:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	movq	$0, 24(%rdi)
	addq	$16, %rdi
	callq	_oidclr
LBB0_27:
	movq	(%r14), %rdi
	addq	$16, %rdi
	callq	_oidclr
LBB0_28:
	movl	$1, %r12d
LBB0_31:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_content_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_content_remove
_tree_content_remove:                   ; @tree_content_remove
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strchrnul
	mov	x22, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	cbnz	w20, LBB0_3
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_load_tree
	cbz	w20, LBB0_6
LBB0_3:
	ldrb	w8, [x23]
	mov	x20, x19
	cbnz	w8, LBB0_6
LBB0_4:
	cbz	x21, LBB0_24
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	b	LBB0_27
LBB0_6:
	ldr	x25, [x19, #8]
	ldr	w8, [x25]
	cbz	w8, LBB0_23
; %bb.7:
	mov	x26, #0
	sub	w24, w22, w23
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x25]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	x20, [x9, x26, lsl #3]
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	cmp	w10, w24
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x9, #4]
	mov	x0, x23
	mov	x2, x24
	bl	_fspathncmp
	cbnz	w0, LBB0_8
; %bb.12:
	ldrb	w8, [x22]
	cbz	w8, LBB0_4
; %bb.13:
	ldr	x8, [x20]
	ldr	x0, [x8, #24]
	bl	_S_ISDIR
	cbz	w0, LBB0_29
; %bb.14:
	ldrb	w8, [x22]
	cbz	w8, LBB0_4
; %bb.15:
	ldr	x8, [x20]
	ldr	x0, [x8, #24]
	bl	_S_ISDIR
	cbz	w0, LBB0_4
; %bb.16:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_load_tree
LBB0_18:
	add	x1, x22, #1
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_tree_content_remove
	cbz	w0, LBB0_30
; %bb.19:
	ldr	x0, [x20, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_26
; %bb.20:
	ldr	x9, [x0, #8]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x10, [x10]
	ldr	x10, [x10, #24]
	cbnz	x10, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_25
LBB0_23:
	mov	w0, #0
	b	LBB0_30
LBB0_24:
	ldr	x0, [x20, #8]
LBB0_25:
	cbz	x0, LBB0_27
LBB0_26:
	bl	_release_tree_content_recursive
LBB0_27:
	str	xzr, [x20, #8]
	ldr	x8, [x20]
	add	x0, x8, #16
	str	xzr, [x8, #24]
	bl	_oidclr
LBB0_28:
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_oidclr
LBB0_29:
	mov	w0, #1
LBB0_30:
	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
	.no_dead_strip	_tree_content_remove
.subsections_via_symbols
