	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_worktree
_update_worktree:                       ## @update_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_git_work_tree_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rbx
	cmovneq	%rax, %rbx
	movq	%rdi, %r14
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	xorl	%eax, %eax
	callq	_is_bare_repository
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_get_git_dir
	movl	%eax, %edi
	callq	_absolute_path
	leaq	L_.str.2(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movl	%eax, %edx
	callq	_argv_array_pushf
	movq	_push_to_checkout_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_find_hook
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	callq	_push_to_checkout
	jmp	LBB0_5
LBB0_3:
	callq	_push_to_deploy
LBB0_5:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rdi
	callq	_argv_array_clear
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_git_work_tree_cfg,8,3          ## @git_work_tree_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

	.comm	_ARGV_ARRAY_INIT,4,2            ## @ARGV_ARRAY_INIT
L_.str.1:                               ## @.str.1
	.asciz	"denyCurrentBranch = updateInstead needs a worktree"

L_.str.2:                               ## @.str.2
	.asciz	"GIT_DIR=%s"

	.comm	_push_to_checkout_hook,4,2      ## @push_to_checkout_hook
	.no_dead_strip	_update_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_worktree
_update_worktree:                       ; @update_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _git_work_tree_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _git_work_tree_cfg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x20, x9, x8, eq
Lloh5:
	adrp	x8, _ARGV_ARRAY_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_is_bare_repository
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	bl	_get_git_dir
	bl	_absolute_path
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_argv_array_pushf
Lloh12:
	adrp	x8, _push_to_checkout_hook@GOTPAGE
Lloh13:
	ldr	x8, [x8, _push_to_checkout_hook@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_find_hook
	add	x1, sp, #8
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x2, x20
	bl	_push_to_checkout
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x2, x20
	bl	_push_to_deploy
LBB0_5:
	mov	x19, x0
	add	x0, sp, #8
	bl	_argv_array_clear
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_git_work_tree_cfg,8,3          ; @git_work_tree_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.comm	_ARGV_ARRAY_INIT,4,2            ; @ARGV_ARRAY_INIT
l_.str.1:                               ; @.str.1
	.asciz	"denyCurrentBranch = updateInstead needs a worktree"

l_.str.2:                               ; @.str.2
	.asciz	"GIT_DIR=%s"

	.comm	_push_to_checkout_hook,4,2      ; @push_to_checkout_hook
	.no_dead_strip	_update_worktree
.subsections_via_symbols
