	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_sparse_checkout
_apply_sparse_checkout:                 ## @apply_sparse_checkout
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_ce_skip_worktree
	movl	%eax, %r15d
	movl	(%rbx), %eax
	movq	_CE_NEW_SKIP_WORKTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_CE_SKIP_WORKTREE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%eax, %esi
	orl	%eax, %edx
	testl	%ecx, %ecx
	cmovel	%esi, %edx
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_ce_skip_worktree
	cmpl	%eax, %r15d
	je	LBB0_2
## %bb.1:
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mark_fsmonitor_invalid
	movq	_CE_ENTRY_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_2:
	movq	%rbx, %rdi
	callq	_ce_skip_worktree
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_CE_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_CE_REMOVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_CE_WT_REMOVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_ce_skip_worktree
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.7:
	movq	_ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_verify_absent_sparse
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.8:
	movq	_CE_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	jmp	LBB0_14
LBB0_9:
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movl	(%rbx), %eax
	movq	_CE_UPDATE@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_11
LBB0_13:
	movq	_CE_WT_REMOVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %ecx
	notl	%ecx
	andl	%eax, %ecx
LBB0_14:
	movl	%ecx, (%rbx)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_verify_uptodate_sparse
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.12:
	movl	(%rbx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CE_NEW_SKIP_WORKTREE,4,2       ## @CE_NEW_SKIP_WORKTREE
	.comm	_CE_SKIP_WORKTREE,4,2           ## @CE_SKIP_WORKTREE
	.comm	_CE_UPDATE_IN_BASE,4,2          ## @CE_UPDATE_IN_BASE
	.comm	_CE_ENTRY_CHANGED,4,2           ## @CE_ENTRY_CHANGED
	.comm	_CE_UPDATE,4,2                  ## @CE_UPDATE
	.comm	_CE_REMOVE,4,2                  ## @CE_REMOVE
	.comm	_CE_WT_REMOVE,4,2               ## @CE_WT_REMOVE
	.comm	_ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN,4,2 ## @ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN
	.no_dead_strip	_apply_sparse_checkout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_sparse_checkout
_apply_sparse_checkout:                 ; @apply_sparse_checkout
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_ce_skip_worktree
	mov	x21, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _CE_NEW_SKIP_WORKTREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CE_NEW_SKIP_WORKTREE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CE_SKIP_WORKTREE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CE_SKIP_WORKTREE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w10, w10, w8
	tst	w9, w8
	csel	w8, w11, w10, eq
	str	w8, [x19]
	mov	x0, x19
	bl	_ce_skip_worktree
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CE_UPDATE_IN_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CE_UPDATE_IN_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x22
	mov	x1, x19
	bl	_mark_fsmonitor_invalid
Lloh9:
	adrp	x8, _CE_ENTRY_CHANGED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CE_ENTRY_CHANGED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_2:
	mov	x0, x19
	bl	_ce_skip_worktree
	cbz	w21, LBB0_8
; %bb.3:
	cbz	w0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _CE_UPDATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CE_UPDATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x9, _CE_REMOVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CE_REMOVE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x9, _CE_WT_REMOVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CE_WT_REMOVE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_6:
	mov	x0, x19
	bl	_ce_skip_worktree
	cbz	w0, LBB0_11
; %bb.7:
	mov	w0, #0
	b	LBB0_16
LBB0_8:
	cbz	w0, LBB0_16
; %bb.9:
	ldr	w8, [x19]
Lloh21:
	adrp	x21, _CE_UPDATE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _CE_UPDATE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_10:
Lloh23:
	adrp	x9, _CE_WT_REMOVE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CE_WT_REMOVE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x21]
	bic	w8, w8, w9
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x8, _ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_verify_absent_sparse
	cbnz	x0, LBB0_15
; %bb.12:
Lloh29:
	adrp	x8, _CE_UPDATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CE_UPDATE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_13:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_verify_uptodate_sparse
	cbz	x0, LBB0_17
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CE_NEW_SKIP_WORKTREE,4,2       ; @CE_NEW_SKIP_WORKTREE
	.comm	_CE_SKIP_WORKTREE,4,2           ; @CE_SKIP_WORKTREE
	.comm	_CE_UPDATE_IN_BASE,4,2          ; @CE_UPDATE_IN_BASE
	.comm	_CE_ENTRY_CHANGED,4,2           ; @CE_ENTRY_CHANGED
	.comm	_CE_UPDATE,4,2                  ; @CE_UPDATE
	.comm	_CE_REMOVE,4,2                  ; @CE_REMOVE
	.comm	_CE_WT_REMOVE,4,2               ; @CE_WT_REMOVE
	.comm	_ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN,4,2 ; @ERROR_WOULD_LOSE_UNTRACKED_OVERWRITTEN
	.no_dead_strip	_apply_sparse_checkout
.subsections_via_symbols
