	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_require_clean_work_tree        ## -- Begin function require_clean_work_tree
	.p2align	4, 0x90
_require_clean_work_tree:               ## @require_clean_work_tree
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_repo_hold_locked_index
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_REFRESH_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_refresh_index
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_repo_update_index_if_able
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_rollback_lock_file
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_has_unstaged_changes
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	__
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_error
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_has_uncommitted_changes
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	testq	%r15, %r15
	je	LBB0_10
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_error
LBB0_10:
	movl	$1, %eax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_has_uncommitted_changes
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	__
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_error
	testq	%r15, %r15
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_REFRESH_QUIET,4,2              ## @REFRESH_QUIET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot %s: You have unstaged changes."

L_.str.1:                               ## @.str.1
	.asciz	"additionally, your index contains uncommitted changes."

L_.str.2:                               ## @.str.2
	.asciz	"cannot %s: Your index contains uncommitted changes."

L_.str.3:                               ## @.str.3
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_require_clean_work_tree        ; -- Begin function require_clean_work_tree
	.p2align	2
_require_clean_work_tree:               ; @require_clean_work_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_repo_hold_locked_index
	mov	x24, x0
	ldr	w0, [x23]
Lloh3:
	adrp	x8, _REFRESH_QUIET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REFRESH_QUIET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_refresh_index
	tbnz	w24, #31, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x23
	bl	_repo_update_index_if_able
LBB0_2:
	add	x0, sp, #8
	bl	_rollback_lock_file
	mov	x0, x23
	mov	x1, x21
	bl	_has_unstaged_changes
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x24, x0
	mov	x0, x22
	bl	__
	str	x0, [sp]
	mov	x0, x24
	bl	_error
	mov	x0, x23
	mov	x1, x21
	bl	_has_uncommitted_changes
	cbz	x0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	b	LBB0_7
LBB0_5:
	mov	x0, x23
	mov	x1, x21
	bl	_has_uncommitted_changes
	cbz	x0, LBB0_12
; %bb.6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
	mov	x0, x22
	bl	__
	str	x0, [sp]
	mov	x0, x21
LBB0_7:
	bl	_error
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	str	x20, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_10:
	cbz	w19, LBB0_13
; %bb.11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w0, #128
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_REFRESH_QUIET,4,2              ; @REFRESH_QUIET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot %s: You have unstaged changes."

l_.str.1:                               ; @.str.1
	.asciz	"additionally, your index contains uncommitted changes."

l_.str.2:                               ; @.str.2
	.asciz	"cannot %s: Your index contains uncommitted changes."

l_.str.3:                               ; @.str.3
	.asciz	"%s"

.subsections_via_symbols
