	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unlock_worktree
_unlock_worktree:                       ## @unlock_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	$16, %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, %ebx
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -40(%rbp)
	movq	_worktree_usage@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	leaq	-40(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	callq	_parse_options
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	callq	_usage_with_options
LBB0_2:
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, %r14
	movq	(%r15), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_find_worktree
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	movq	%rbx, %rdi
	callq	_is_main_worktree
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	movq	%rbx, %rdi
	callq	_worktree_lock_reason
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_8:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_git_common_path
	movl	%eax, %edi
	callq	_unlink_or_warn
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free_worktrees
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_worktree_usage,4,2             ## @worktree_usage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' is not a working tree"

L_.str.1:                               ## @.str.1
	.asciz	"The main working tree cannot be locked or unlocked"

L_.str.2:                               ## @.str.2
	.asciz	"'%s' is not locked"

L_.str.3:                               ## @.str.3
	.asciz	"worktrees/%s/locked"

	.no_dead_strip	_unlock_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unlock_worktree
_unlock_worktree:                       ; @unlock_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_OPT_END
	str	w0, [sp, #8]
Lloh0:
	adrp	x22, _worktree_usage@GOTPAGE
Lloh1:
	ldr	x22, [x22, _worktree_usage@GOTPAGEOFF]
	ldr	w4, [x22]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w5, #0
	bl	_parse_options
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_usage_with_options
LBB0_2:
	mov	w0, #0
	bl	_get_worktrees
	mov	x20, x0
	ldr	x2, [x19]
	mov	x1, x21
	bl	_find_worktree
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x8, [x19]
	str	x8, [sp]
	bl	_die
LBB0_4:
	mov	x0, x21
	bl	_is_main_worktree
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_6:
	mov	x0, x21
	bl	_worktree_lock_reason
	cbnz	w0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x8, [x19]
	str	x8, [sp]
	bl	_die
LBB0_8:
	ldr	w1, [x21]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_git_common_path
	bl	_unlink_or_warn
	mov	x19, x0
	mov	x0, x20
	bl	_free_worktrees
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_worktree_usage,4,2             ; @worktree_usage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' is not a working tree"

l_.str.1:                               ; @.str.1
	.asciz	"The main working tree cannot be locked or unlocked"

l_.str.2:                               ; @.str.2
	.asciz	"'%s' is not locked"

l_.str.3:                               ; @.str.3
	.asciz	"worktrees/%s/locked"

	.no_dead_strip	_unlock_worktree
.subsections_via_symbols
