	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkout_worktree
_checkout_worktree:                     ## @checkout_worktree
	.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	%rdi, %r13
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -72(%rbp)
	movq	_the_index@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_enable_delayed_checkout
	movq	_active_nr@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	leaq	-44(%rbp), %rcx
	callq	_checkout_entry
	orl	%eax, %r15d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	_CE_MATCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r13), %r9d
	movq	%r12, %rsi
	movl	%ebx, %edx
	leaq	-72(%rbp), %rcx
	leaq	-44(%rbp), %r8
	callq	_checkout_stage
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r13)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_checkout_merged
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	orl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skip_same_name
	movl	%eax, %ebx
	decl	%ebx
	jmp	LBB0_12
LBB0_1:
	xorl	%r15d, %r15d
LBB0_13:
	movq	_the_index@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_remove_marked_cache_entries
	xorl	%eax, %eax
	callq	_remove_scheduled_dirs
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_finish_delayed_checkout
	movl	%eax, %r14d
	cmpq	$0, 8(%r13)
	je	LBB0_21
## %bb.14:
	movl	-48(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Q_
	movl	-48(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fprintf_ln
LBB0_16:
	cmpq	$0, (%r13)
	je	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Q_
	movl	%eax, %ebx
	movl	-44(%rbp), %r12d
	movq	(%r13), %rdi
	movq	_DEFAULT_ABBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_unique_abbrev
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf_ln
	jmp	LBB0_21
LBB0_18:
	cmpl	$0, -48(%rbp)
	movl	-44(%rbp), %edx
	je	LBB0_20
## %bb.19:
	testl	%edx, %edx
	je	LBB0_21
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_Q_
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fprintf_ln
LBB0_21:
	orl	%r15d, %r14d
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKOUT_INIT,16,3             ## @CHECKOUT_INIT
	.comm	_the_index,4,2                  ## @the_index
	.comm	_active_nr,4,2                  ## @active_nr
	.comm	_active_cache,8,3               ## @active_cache
	.comm	_CE_MATCHED,4,2                 ## @CE_MATCHED
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recreated %d merge conflict"

L_.str.1:                               ## @.str.1
	.asciz	"Recreated %d merge conflicts"

L_.str.2:                               ## @.str.2
	.asciz	"Updated %d path from %s"

L_.str.3:                               ## @.str.3
	.asciz	"Updated %d paths from %s"

	.comm	_DEFAULT_ABBREV,4,2             ## @DEFAULT_ABBREV
L_.str.4:                               ## @.str.4
	.asciz	"Updated %d path from the index"

L_.str.5:                               ## @.str.5
	.asciz	"Updated %d paths from the index"

	.no_dead_strip	_checkout_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkout_worktree
_checkout_worktree:                     ; @checkout_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	str	xzr, [sp, #8]
	movi.2s	v0, #1
	str	d0, [sp, #16]
Lloh0:
	adrp	x8, _the_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_index@GOTPAGEOFF]
	str	x8, [sp, #24]
	add	x0, sp, #16
	bl	_enable_delayed_checkout
Lloh2:
	adrp	x22, _active_nr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _active_nr@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w24, #0
	mov	w20, #0
Lloh4:
	adrp	x23, _active_cache@GOTPAGE
Lloh5:
	ldr	x23, [x23, _active_cache@GOTPAGEOFF]
Lloh6:
	adrp	x25, _CE_MATCHED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CE_MATCHED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #16
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, #0
	bl	_checkout_entry
	orr	w24, w0, w24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x21, [x8, w20, sxtw #3]
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_ce_stage
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w5, [x19, #24]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_checkout_stage
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_checkout_merged
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w24, w0, w24
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_skip_same_name
	sub	w20, w0, #1
	b	LBB0_3
LBB0_12:
	mov	w24, #0
LBB0_13:
Lloh8:
	adrp	x0, _the_index@GOTPAGE
Lloh9:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	mov	w1, #1
	bl	_remove_marked_cache_entries
	bl	_remove_scheduled_dirs
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_finish_delayed_checkout
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
; %bb.14:
	ldr	w2, [sp, #8]
Lloh10:
	adrp	x22, _stderr@GOTPAGE
Lloh11:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cbz	w2, LBB0_16
; %bb.15:
	ldr	w21, [x22]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Q_
	mov	x1, x0
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_fprintf_ln
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w21, [x22]
	ldr	w2, [sp, #12]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Q_
	mov	x22, x0
	ldr	w23, [sp, #12]
	ldr	x0, [x19]
Lloh20:
	adrp	x8, _DEFAULT_ABBREV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEFAULT_ABBREV@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_find_unique_abbrev
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	b	LBB0_21
LBB0_18:
	ldp	w8, w2, [sp, #8]
	cbz	w8, LBB0_20
; %bb.19:
	cbz	w2, LBB0_22
LBB0_20:
	ldr	w19, [x22]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_Q_
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
LBB0_21:
	bl	_fprintf_ln
LBB0_22:
	orr	w0, w20, w24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKOUT_INIT,16,3             ; @CHECKOUT_INIT
	.comm	_the_index,4,2                  ; @the_index
	.comm	_active_nr,4,2                  ; @active_nr
	.comm	_active_cache,8,3               ; @active_cache
	.comm	_CE_MATCHED,4,2                 ; @CE_MATCHED
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recreated %d merge conflict"

l_.str.1:                               ; @.str.1
	.asciz	"Recreated %d merge conflicts"

l_.str.2:                               ; @.str.2
	.asciz	"Updated %d path from %s"

l_.str.3:                               ; @.str.3
	.asciz	"Updated %d paths from %s"

	.comm	_DEFAULT_ABBREV,4,2             ; @DEFAULT_ABBREV
l_.str.4:                               ; @.str.4
	.asciz	"Updated %d path from the index"

l_.str.5:                               ; @.str.5
	.asciz	"Updated %d paths from the index"

	.no_dead_strip	_checkout_worktree
.subsections_via_symbols
