	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_worktree
_lock_worktree:                         ## @lock_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	$32, %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)
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	L_.str.2(%rip), %rdi
	callq	_N_
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_N_
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_OPT_STRING
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -44(%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	$1, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	-48(%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, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.4(%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.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	movq	%r12, %rdi
	callq	_worktree_lock_reason
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_die
LBB0_9:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_10:
	movl	(%r12), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_git_common_path
	movq	-56(%rbp), %rdx
	leaq	L_.str.9(%rip), %rsi
	movl	%eax, %edi
	callq	_write_file
	movq	%r14, %rdi
	callq	_free_worktrees
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"reason"

L_.str.2:                               ## @.str.2
	.asciz	"string"

L_.str.3:                               ## @.str.3
	.asciz	"reason for locking"

	.comm	_worktree_usage,4,2             ## @worktree_usage
L_.str.4:                               ## @.str.4
	.asciz	"'%s' is not a working tree"

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

L_.str.6:                               ## @.str.6
	.asciz	"'%s' is already locked, reason: %s"

L_.str.7:                               ## @.str.7
	.asciz	"'%s' is already locked"

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

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

	.no_dead_strip	_lock_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_worktree
_lock_worktree:                         ; @lock_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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_N_
	mov	x22, x0
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_N_
	mov	x4, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	w0, #0
	mov	x3, x22
	bl	_OPT_STRING
	str	w0, [sp, #32]
	bl	_OPT_END
	str	w0, [sp, #36]
Lloh11:
	adrp	x22, _worktree_usage@GOTPAGE
Lloh12:
	ldr	x22, [x22, _worktree_usage@GOTPAGEOFF]
	ldr	w4, [x22]
	add	x3, sp, #32
	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, #32
	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:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@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:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_die
LBB0_6:
	mov	x0, x21
	bl	_worktree_lock_reason
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.8:
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	ldr	x8, [x19]
	stp	x8, x22, [sp]
	bl	_die
LBB0_9:
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	ldr	x8, [x19]
	str	x8, [sp]
	bl	_die
LBB0_10:
	ldr	w1, [x21]
Lloh21:
	adrp	x0, l_.str.8@PAGE
Lloh22:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_git_common_path
	ldr	x2, [sp, #24]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_write_file
	mov	x0, x20
	bl	_free_worktrees
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.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 AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"reason"

l_.str.2:                               ; @.str.2
	.asciz	"string"

l_.str.3:                               ; @.str.3
	.asciz	"reason for locking"

	.comm	_worktree_usage,4,2             ; @worktree_usage
l_.str.4:                               ; @.str.4
	.asciz	"'%s' is not a working tree"

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

l_.str.6:                               ; @.str.6
	.asciz	"'%s' is already locked, reason: %s"

l_.str.7:                               ; @.str.7
	.asciz	"'%s' is already locked"

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

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

	.no_dead_strip	_lock_worktree
.subsections_via_symbols
