	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_tree_entry
_find_tree_entry:                       ## @find_tree_entry
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_strlen
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.1:
	movl	%eax, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_tree_entry_extract
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_oidcpy
	movq	%r14, %rdi
	callq	_tree_entry_len
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_update_tree_entry
	cmpl	%r13d, %r12d
	jg	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcmp
	testl	%eax, %eax
	jg	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	js	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r12d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	cmpb	$47, (%r15,%rax)
	jne	LBB0_11
## %bb.8:
	movzwl	(%rbx), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	incl	%r12d
	cmpl	%r13d, %r12d
	jne	LBB0_10
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oidcpy
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movslq	%r12d, %rax
	addq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_get_tree_entry
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_tree_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_tree_entry
_find_tree_entry:                       ; @find_tree_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x19, x3
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x2
	bl	_strlen
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x23, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x20
	bl	_tree_entry_extract
	mov	x1, x0
	mov	x0, sp
	bl	_oidcpy
	mov	x0, x24
	bl	_tree_entry_len
	mov	x25, x0
	mov	x0, x24
	bl	_update_tree_entry
	cmp	w25, w23
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x22
	mov	x2, x25
	bl	_memcmp
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w23
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x25, w25
	ldrb	w8, [x22, x25]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.8:
	ldrh	w0, [x20]
	bl	_S_ISDIR
	cbz	w0, LBB0_11
; %bb.9:
	add	x8, x25, #1
	cmp	w8, w23
	b.ne	LBB0_13
LBB0_10:
	mov	x1, sp
	mov	x0, x19
	bl	_oidcpy
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	add	x2, x22, x8
	mov	x1, sp
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	bl	_get_tree_entry
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_tree_entry
.subsections_via_symbols
