	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_is_complete
_tree_is_complete:                      ## @tree_is_complete
	.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
	movq	%rdi, %rbx
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_lookup_tree
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	8(%rax), %ecx
	movq	_SEEN@GOTPCREL(%rip), %r15
	movl	$1, %eax
	testl	%ecx, (%r15)
	jne	LBB0_5
## %bb.2:
	movq	_INCOMPLETE@GOTPCREL(%rip), %r13
	testl	%ecx, (%r13)
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.7:
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_object_file
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%rax, %rsi
	movq	%rax, 16(%r14)
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
LBB0_9:
	movq	(%r14), %rdx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_tree_desc
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_tree_entry
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movl	$1, %r12d
	leaq	-56(%rbp), %rbx
	leaq	-48(%rbp), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r13), %eax
	orl	%eax, 8(%r14)
	xorl	%r12d, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tree_entry
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_has_object_file
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-52(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_tree_is_complete
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_11
LBB0_16:
	movq	%r14, %rdi
	callq	_free_tree_buffer
	movl	$0, %eax
	testl	%r12d, %r12d
	movq	_SEEN@GOTPCREL(%rip), %r15
	jne	LBB0_18
	jmp	LBB0_5
LBB0_17:
	movq	%r14, %rdi
	callq	_free_tree_buffer
	movl	$1, %r12d
LBB0_18:
	movl	(%r15), %eax
	orl	%eax, 8(%r14)
	movl	%r12d, %eax
	jmp	LBB0_5
LBB0_19:
	movl	(%r13), %eax
	orl	%eax, 8(%r14)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_SEEN,4,2                       ## @SEEN
	.comm	_INCOMPLETE,4,2                 ## @INCOMPLETE
	.no_dead_strip	_tree_is_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_is_complete
_tree_is_complete:                      ; @tree_is_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_lookup_tree
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x21, _SEEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SEEN@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w20, #1
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x22, _INCOMPLETE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _INCOMPLETE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x1, [x19, #16]
	cbnz	x1, LBB0_9
; %bb.7:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_read_object_file
	cbz	x0, LBB0_20
; %bb.8:
	mov	x1, x0
	str	x0, [x19, #16]
	ldr	x8, [sp]
	str	x8, [x19]
LBB0_9:
	ldr	x2, [x19]
	add	x0, sp, #8
	bl	_init_tree_desc
	add	x0, sp, #8
	mov	x1, sp
	bl	_tree_entry
	cbz	x0, LBB0_17
; %bb.10:
	mov	w20, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w20, #0
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #8
	mov	x1, sp
	bl	_tree_entry
	cbz	x0, LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_has_object_file
	cbz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [sp, #4]
	bl	_S_ISDIR
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, sp
	bl	_tree_is_complete
	cbnz	w0, LBB0_12
	b	LBB0_11
LBB0_16:
	mov	x0, x19
	bl	_free_tree_buffer
	cbnz	w20, LBB0_18
	b	LBB0_5
LBB0_17:
	mov	x0, x19
	bl	_free_tree_buffer
	mov	w20, #1
LBB0_18:
	ldr	w8, [x21]
LBB0_19:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_20:
	mov	w20, #0
	ldr	w8, [x22]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_SEEN,4,2                       ; @SEEN
	.comm	_INCOMPLETE,4,2                 ; @INCOMPLETE
	.no_dead_strip	_tree_is_complete
.subsections_via_symbols
