	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_worktree
_move_worktree:                         ## @move_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$0, -60(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_N_
	movq	_PARSE_OPT_NOCOMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-60(%rbp), %rdi
	movl	%eax, %esi
	callq	_OPT__FORCE
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -44(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -72(%rbp)
	movq	_worktree_usage@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	-48(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	callq	_parse_options
	cmpl	$2, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_usage_with_options
LBB0_2:
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_prefix_filename
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, %r14
	movq	(%r15), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_find_worktree
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	movq	%r12, %rdi
	callq	_is_main_worktree
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	movq	-56(%rbp), %rdi
	callq	_is_directory
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	(%r12), %rdi
	callq	_find_last_dir_sep
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%r12), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_9:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_strbuf_trim_trailing_dir_sep
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_file_exists
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_12:
	movq	%r12, %rdi
	callq	_validate_no_submodules
	cmpl	$1, -60(%rbp)
	jg	LBB0_17
## %bb.13:
	movq	%r12, %rdi
	callq	_worktree_lock_reason
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_17:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_validate_worktree
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	-72(%rbp), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_19:
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi
	callq	_rename
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.8(%rip), %rdi
	callq	__
	movq	(%r12), %rsi
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	callq	_die_errno
LBB0_21:
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_update_worktree_location
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_free_worktrees
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"force move even if worktree is dirty or locked"

	.comm	_PARSE_OPT_NOCOMPLETE,4,2       ## @PARSE_OPT_NOCOMPLETE
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_worktree_usage,4,2             ## @worktree_usage
L_.str.1:                               ## @.str.1
	.asciz	"'%s' is not a working tree"

L_.str.2:                               ## @.str.2
	.asciz	"'%s' is a main working tree"

L_.str.3:                               ## @.str.3
	.asciz	"could not figure out destination name from '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"target '%s' already exists"

L_.str.5:                               ## @.str.5
	.asciz	"cannot move a locked working tree, lock reason: %s\nuse 'move -f -f' to override or unlock first"

L_.str.6:                               ## @.str.6
	.asciz	"cannot move a locked working tree;\nuse 'move -f -f' to override or unlock first"

L_.str.7:                               ## @.str.7
	.asciz	"validation failed, cannot move working tree: %s"

L_.str.8:                               ## @.str.8
	.asciz	"failed to move '%s' to '%s'"

	.no_dead_strip	_move_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_worktree
_move_worktree:                         ; @move_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	wzr, [sp, #28]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_N_
	mov	x1, x0
Lloh5:
	adrp	x8, _PARSE_OPT_NOCOMPLETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PARSE_OPT_NOCOMPLETE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #28
	bl	_OPT__FORCE
	str	w0, [sp, #32]
	bl	_OPT_END
	str	w0, [sp, #36]
Lloh8:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #8]
Lloh11:
	adrp	x22, _worktree_usage@GOTPAGE
Lloh12:
	ldr	x22, [x22, _worktree_usage@GOTPAGEOFF]
	ldr	w4, [x22]
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w5, #0
	bl	_parse_options
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	add	x1, sp, #32
	bl	_usage_with_options
LBB0_2:
	ldr	x1, [x21, #8]
	mov	x0, x20
	bl	_prefix_filename
	mov	x19, x0
	add	x0, sp, #16
	mov	x1, x19
	bl	_strbuf_addstr
	mov	x0, x19
	bl	_free
	mov	w0, #0
	bl	_get_worktrees
	mov	x19, x0
	ldr	x2, [x21]
	mov	x1, x20
	bl	_find_worktree
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x8, [x21]
	str	x8, [sp]
	bl	_die
LBB0_4:
	mov	x0, x20
	bl	_is_main_worktree
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x8, [x21]
	str	x8, [sp]
	bl	_die
LBB0_6:
	ldr	x0, [sp, #16]
	bl	_is_directory
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x0, [x20]
	bl	_find_last_dir_sep
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x8, [x20]
	str	x8, [sp]
	bl	_die
LBB0_9:
	add	x0, sp, #16
	bl	_strbuf_trim_trailing_dir_sep
	add	x0, sp, #16
	mov	x1, x21
	bl	_strbuf_addstr
LBB0_10:
	ldr	x0, [sp, #16]
	bl	_file_exists
	cbz	x0, LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	x8, [sp, #16]
	str	x8, [sp]
	bl	_die
LBB0_12:
	mov	x0, x20
	bl	_validate_no_submodules
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.gt	LBB0_17
; %bb.13:
	mov	x0, x20
	bl	_worktree_lock_reason
	cbz	x0, LBB0_17
; %bb.14:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.15:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	str	x21, [sp]
	bl	_die
LBB0_16:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_die
LBB0_17:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_validate_worktree
	cbz	x0, LBB0_19
; %bb.18:
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	ldr	x8, [sp, #8]
	str	x8, [sp]
	bl	_die
LBB0_19:
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	x0, [x20]
	ldr	x1, [sp, #16]
	bl	_rename
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:
Lloh27:
	adrp	x0, l_.str.8@PAGE
Lloh28:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	ldr	x1, [x20]
	ldr	x2, [sp, #16]
	bl	_die_errno
LBB0_21:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_update_worktree_location
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, x19
	bl	_free_worktrees
	ldr	x8, [sp, #40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"force move even if worktree is dirty or locked"

	.comm	_PARSE_OPT_NOCOMPLETE,4,2       ; @PARSE_OPT_NOCOMPLETE
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_worktree_usage,4,2             ; @worktree_usage
l_.str.1:                               ; @.str.1
	.asciz	"'%s' is not a working tree"

l_.str.2:                               ; @.str.2
	.asciz	"'%s' is a main working tree"

l_.str.3:                               ; @.str.3
	.asciz	"could not figure out destination name from '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"target '%s' already exists"

l_.str.5:                               ; @.str.5
	.asciz	"cannot move a locked working tree, lock reason: %s\nuse 'move -f -f' to override or unlock first"

l_.str.6:                               ; @.str.6
	.asciz	"cannot move a locked working tree;\nuse 'move -f -f' to override or unlock first"

l_.str.7:                               ; @.str.7
	.asciz	"validation failed, cannot move working tree: %s"

l_.str.8:                               ; @.str.8
	.asciz	"failed to move '%s' to '%s'"

	.no_dead_strip	_move_worktree
.subsections_via_symbols
