	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_clean_subdirectory
_verify_clean_subdirectory:             ## @verify_clean_subdirectory
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rdi), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_resolve_gitlink_ref
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_verify_clean_submodule
	movl	%eax, %r13d
	jmp	LBB0_20
LBB0_5:
	movq	%r15, %rdi
	callq	_ce_namelen
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_locate_in_src_index
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	xorl	%r13d, %r13d
	cmpl	(%rcx), %eax
	jge	LBB0_15
## %bb.6:
	movslq	%r12d, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r14
	xorl	%r13d, %r13d
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	incq	%r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movslq	(%rcx), %rax
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movq	(%rax,%r14,8), %rbx
	movq	%rbx, %rdi
	callq	_ce_namelen
	cmpl	%r12d, %eax
	jl	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rdi
	movq	(%rbx), %rsi
	movl	%r12d, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$47, (%rax,%rcx)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %r12
	movq	%rbx, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_verify_uptodate
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_CE_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_add_entry
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_invalidate_ce_path
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %r15
	callq	_mark_ce_used
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_15:
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_xstrfmt
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
LBB0_17:
	movq	(%rbx), %rsi
	incl	%r12d
	leaq	-56(%rbp), %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_read_directory
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	_ERROR_NOT_UPTODATE_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	callq	_add_rejected_path
	movl	%eax, %r13d
	jmp	LBB0_20
LBB0_2:
	leaq	8(%r15), %rsi
	leaq	-48(%rbp), %rdi
	callq	_oideq
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_oid_to_hex
	movq	%rax, %r13
	jmp	LBB0_4
LBB0_19:
	movq	%r14, %rdi
	callq	_free
LBB0_20:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$-1, %r13d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_CE_REMOVE,4,2                  ## @CE_REMOVE
L_.str.1:                               ## @.str.1
	.asciz	"%.*s/"

	.comm	_ERROR_NOT_UPTODATE_DIR,4,2     ## @ERROR_NOT_UPTODATE_DIR
	.no_dead_strip	_verify_clean_subdirectory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_clean_subdirectory
_verify_clean_subdirectory:             ; @verify_clean_subdirectory
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #12]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	bl	_resolve_gitlink_ref
	cbz	w0, LBB0_13
; %bb.2:
	mov	x0, #0
LBB0_3:
	mov	x1, x20
	mov	x2, x19
	bl	_verify_clean_submodule
	mov	x21, x0
	b	LBB0_21
LBB0_4:
	mov	x0, x20
	bl	_ce_namelen
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_locate_in_src_index
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w0, w9
	b.ge	LBB0_15
; %bb.5:
	mov	w21, #0
	sxtw	x24, w22
	sxtw	x25, w0
Lloh2:
	adrp	x26, _CE_REMOVE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CE_REMOVE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	add	x25, x25, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x25, x9
	b.ge	LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x23, [x8, x25, lsl #3]
	mov	x0, x23
	bl	_ce_namelen
	cmp	w0, w22
	b.lt	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20]
	ldr	x1, [x23]
	mov	x2, x22
	bl	_strncmp
	cbnz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	ldrb	w8, [x8, x24]
	cmp	w8, #47
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_ce_stage
	cbnz	w0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_verify_uptodate
	cbnz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_add_entry
	mov	x0, x20
	mov	x1, x19
	bl	_invalidate_ce_path
	mov	x0, x23
	mov	x1, x19
	bl	_mark_ce_used
	b	LBB0_6
LBB0_13:
	add	x1, x20, #8
	mov	x0, sp
	bl	_oideq
	cbz	x0, LBB0_22
; %bb.14:
	mov	w21, #0
	b	LBB0_21
LBB0_15:
	mov	w21, #0
LBB0_16:
	ldr	x2, [x20]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_xstrfmt
	mov	x23, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_18:
	ldr	x1, [x19]
	add	w3, w22, #1
	add	x0, sp, #8
	mov	x2, x23
	mov	x4, #0
	bl	_read_directory
	cbz	w0, LBB0_20
; %bb.19:
Lloh6:
	adrp	x8, _ERROR_NOT_UPTODATE_DIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_NOT_UPTODATE_DIR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_add_rejected_path
	mov	x21, x0
	b	LBB0_21
LBB0_20:
	mov	x0, x23
	bl	_free
LBB0_21:
	mov	x0, x21
	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_22:
	mov	x0, sp
	bl	_oid_to_hex
	b	LBB0_3
LBB0_23:
	mov	w21, #-1
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_CE_REMOVE,4,2                  ; @CE_REMOVE
l_.str.1:                               ; @.str.1
	.asciz	"%.*s/"

	.comm	_ERROR_NOT_UPTODATE_DIR,4,2     ; @ERROR_NOT_UPTODATE_DIR
	.no_dead_strip	_verify_clean_subdirectory
.subsections_via_symbols
