	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_worktree
_add_worktree:                          ## @add_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rcx
	movq	48(%rcx), %rdx
	movq	%rdx, -208(%rbp)
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	32(%rcx), %xmm2
	movaps	%xmm2, -224(%rbp)
	movaps	%xmm1, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -144(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -192(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -272(%rbp)
	movq	%rbx, %rsi
	callq	_validate_worktree_add
	movb	$1, %r12b
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	cmpl	$0, 28(%rbx)
	jne	LBB0_6
## %bb.1:
	leaq	-192(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strbuf_check_branch_ref
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	callq	_lookup_commit_reference_by_name
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_die
LBB0_8:
	leaq	-100(%rbp), %rsi
	movq	%r15, %rdi
	callq	_worktree_basename
	movl	-100(%rbp), %edx
	addl	%r15d, %edx
	subl	%eax, %edx
	leaq	-128(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_add
	movq	-128(%rbp), %rdi
	leaq	-272(%rbp), %rsi
	callq	_sanitize_refname_component
	cmpl	$0, -264(%rbp)
	jne	LBB0_10
## %bb.9:
	movq	-128(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_10:
	movl	%r12d, -164(%rbp)               ## 4-byte Spill
	movq	%r15, -280(%rbp)                ## 8-byte Spill
	leaq	-128(%rbp), %rdi
	callq	_strbuf_reset
	movq	-272(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	-96(%rbp), %rdi
	callq	_git_path_buf
	movl	-88(%rbp), %eax
	movl	%eax, -100(%rbp)
	movq	-96(%rbp), %rdi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-96(%rbp), %rsi
	movl	%eax, %edi
	callq	_die_errno
LBB0_12:
	movq	-96(%rbp), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movl	$1, %ebx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EEXIST@GOTPCREL(%rip), %r14
	leaq	-96(%rbp), %r12
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	-96(%rbp), %rsi
	movl	%eax, %edi
	callq	_die_errno
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-100(%rbp), %esi
	movq	%r12, %rdi
	callq	_strbuf_setlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-96(%rbp), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_17
	jmp	LBB0_16
LBB0_18:
	movq	-96(%rbp), %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r12
	incq	%r12
	xorl	%eax, %eax
	callq	_getpid
	movq	_junk_pid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_remove_junk@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movq	_remove_junk_on_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigchain_push_common
	movq	-96(%rbp), %rdi
	callq	_xstrdup
	movq	_junk_git_dir@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_is_junk@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	-96(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	leaq	-128(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 8(%rax)
	movq	-128(%rbp), %rdi
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rsi
	cmoveq	%rax, %rsi
	xorl	%eax, %eax
	callq	_write_file
	leaq	L_.str.9(%rip), %rsi
	leaq	-160(%rbp), %rdi
	movq	-280(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-160(%rbp), %rdi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-160(%rbp), %rsi
	movl	%eax, %edi
	callq	_die_errno
LBB0_20:
	movq	%r13, %rdi
	callq	_xstrdup
	movq	_junk_work_tree@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	callq	_strbuf_reset
	movq	-96(%rbp), %rdx
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-128(%rbp), %rbx
	movq	-160(%rbp), %rdi
	callq	_real_path
	leaq	L_.str.11(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_write_file
	movq	-160(%rbp), %rbx
	xorl	%eax, %eax
	callq	_get_git_common_dir
	movq	%rax, %rdi
	callq	_real_path
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_write_file
	movq	%r15, %rdi
	callq	_strbuf_reset
	movq	-96(%rbp), %rdx
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-128(%rbp), %rbx
	movq	_null_oid@GOTPCREL(%rip), %rdi
	callq	_oid_to_hex
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_write_file
	movq	%r15, %rdi
	callq	_strbuf_reset
	movq	-96(%rbp), %rdx
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-128(%rbp), %rdi
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_write_file
	movq	_GIT_DIR_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-160(%rbp), %rcx
	leaq	L_.str.16(%rip), %r14
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_argv_array_pushf
	movq	_GIT_WORK_TREE_ENVIRONMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rcx
	callq	_argv_array_pushf
	movl	$1, -256(%rbp)
	leaq	-216(%rbp), %r12
	cmpb	$0, -164(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_oid_to_hex
	movslq	%eax, %rcx
	leaq	L_.str.17(%rip), %rsi
	leaq	L_.str.18(%rip), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_argv_array_pushl
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_24
LBB0_22:
	movq	-192(%rbp), %rcx
	leaq	L_.str.19(%rip), %rsi
	leaq	L_.str.18(%rip), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_argv_array_pushl
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	cmpq	$0, 16(%rbx)
	je	LBB0_24
## %bb.23:
	leaq	L_.str.20(%rip), %rsi
	movq	%r12, %rdi
	callq	_argv_array_push
LBB0_24:
	movq	-144(%rbp), %rax
	movq	%rax, -248(%rbp)
	leaq	-256(%rbp), %rdi
	callq	_run_command
	testl	%eax, %eax
	je	LBB0_26
LBB0_25:
	movl	%eax, %r15d
	xorl	%r14d, %r14d
LBB0_32:
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_reset
	movq	-96(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-128(%rbp), %rdi
	callq	_unlink_or_warn
	testb	%r14b, %r14b
	jne	LBB0_33
	jmp	LBB0_36
LBB0_26:
	cmpq	$0, (%rbx)
	je	LBB0_30
## %bb.27:
	movq	$0, -208(%rbp)
	movq	%r12, %rdi
	callq	_argv_array_clear
	leaq	L_.str.21(%rip), %rsi
	leaq	L_.str.22(%rip), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_argv_array_pushl
	cmpq	$0, 16(%rbx)
	je	LBB0_29
## %bb.28:
	leaq	L_.str.20(%rip), %rsi
	movq	%r12, %rdi
	callq	_argv_array_push
LBB0_29:
	movq	-144(%rbp), %rax
	movq	%rax, -248(%rbp)
	leaq	-256(%rbp), %rdi
	callq	_run_command
	testl	%eax, %eax
	jne	LBB0_25
LBB0_30:
	movq	_is_junk@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_junk_work_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FREE_AND_NULL
	movq	_junk_git_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FREE_AND_NULL
	cmpl	$0, 8(%rbx)
	je	LBB0_31
LBB0_33:
	xorl	%r15d, %r15d
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_36
## %bb.34:
	leaq	L_.str.23(%rip), %r14
	movq	%r14, %rdi
	callq	_find_hook
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	l___const.add_worktree.env+16(%rip), %rcx
	movq	%rcx, -64(%rbp)
	movaps	l___const.add_worktree.env(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$0, -256(%rbp)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, -240(%rbp)
	movq	%r13, -232(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%rcx, -248(%rbp)
	movq	$0, -208(%rbp)
	movq	%r14, -224(%rbp)
	movq	%rax, %rdi
	callq	_absolute_path
	movslq	%eax, %r14
	movq	_null_oid@GOTPCREL(%rip), %rdi
	callq	_oid_to_hex
	movslq	%eax, %rbx
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_oid_to_hex
	movslq	%eax, %rcx
	leaq	L_.str.26(%rip), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_argv_array_pushl
	leaq	-256(%rbp), %rdi
	callq	_run_command
	movl	%eax, %r15d
LBB0_36:
	leaq	-144(%rbp), %rdi
	callq	_argv_array_clear
	leaq	-128(%rbp), %rdi
	callq	_strbuf_release
	leaq	-192(%rbp), %rdi
	callq	_strbuf_release
	leaq	-96(%rbp), %rdi
	callq	_strbuf_release
	leaq	-160(%rbp), %rdi
	callq	_strbuf_release
	leaq	-272(%rbp), %rdi
	callq	_strbuf_release
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movl	%r15d, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-192(%rbp), %rdi
	callq	_ref_exists
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 24(%rax)
	je	LBB0_5
## %bb.4:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_31:
	xorl	%r15d, %r15d
	movb	$1, %r14b
	jmp	LBB0_32
LBB0_5:
	movq	-192(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_die_if_checked_out
	jmp	LBB0_6
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_CHILD_PROCESS_INIT,56,3        ## @CHILD_PROCESS_INIT
	.comm	_ARGV_ARRAY_INIT,8,3            ## @ARGV_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid reference: %s"

L_.str.1:                               ## @.str.1
	.asciz	"How come '%s' becomes empty after sanitization?"

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

L_.str.3:                               ## @.str.3
	.asciz	"could not create leading directories of '%s'"

	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.4:                               ## @.str.4
	.asciz	"could not create directory of '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"%d"

	.comm	_junk_pid,4,2                   ## @junk_pid
	.comm	_remove_junk,4,2                ## @remove_junk
	.comm	_remove_junk_on_signal,4,2      ## @remove_junk_on_signal
	.comm	_junk_git_dir,4,2               ## @junk_git_dir
	.comm	_is_junk,4,2                    ## @is_junk
L_.str.6:                               ## @.str.6
	.asciz	"%s/locked"

L_.str.7:                               ## @.str.7
	.asciz	"initializing"

L_.str.8:                               ## @.str.8
	.asciz	"added with --lock"

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

	.comm	_junk_work_tree,4,2             ## @junk_work_tree
L_.str.10:                              ## @.str.10
	.asciz	"%s/gitdir"

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

L_.str.12:                              ## @.str.12
	.asciz	"gitdir: %s/worktrees/%s"

L_.str.13:                              ## @.str.13
	.asciz	"%s/HEAD"

	.comm	_null_oid,4,2                   ## @null_oid
L_.str.14:                              ## @.str.14
	.asciz	"%s/commondir"

L_.str.15:                              ## @.str.15
	.asciz	"../.."

L_.str.16:                              ## @.str.16
	.asciz	"%s=%s"

	.comm	_GIT_DIR_ENVIRONMENT,4,2        ## @GIT_DIR_ENVIRONMENT
	.comm	_GIT_WORK_TREE_ENVIRONMENT,4,2  ## @GIT_WORK_TREE_ENVIRONMENT
L_.str.17:                              ## @.str.17
	.asciz	"update-ref"

L_.str.18:                              ## @.str.18
	.asciz	"HEAD"

L_.str.19:                              ## @.str.19
	.asciz	"symbolic-ref"

L_.str.20:                              ## @.str.20
	.asciz	"--quiet"

L_.str.21:                              ## @.str.21
	.asciz	"reset"

L_.str.22:                              ## @.str.22
	.asciz	"--hard"

L_.str.23:                              ## @.str.23
	.asciz	"post-checkout"

L_.str.24:                              ## @.str.24
	.asciz	"GIT_DIR"

L_.str.25:                              ## @.str.25
	.asciz	"GIT_WORK_TREE"

	.section	__DATA,__const
	.p2align	4                               ## @__const.add_worktree.env
l___const.add_worktree.env:
	.quad	L_.str.24
	.quad	L_.str.25
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str.26:                              ## @.str.26
	.asciz	"1"

	.no_dead_strip	_add_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_worktree
_add_worktree:                          ; @add_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
	ldr	q0, [x8]
	stur	q0, [x29, #-144]
	stp	q0, q0, [sp, #128]
Lloh5:
	adrp	x9, _CHILD_PROCESS_INIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp, #64]
	ldr	q0, [x9, #32]
	str	q0, [sp, #96]
	ldr	x9, [x9, #48]
	str	x9, [sp, #112]
Lloh7:
	adrp	x9, _ARGV_ARRAY_INIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	x9, [sp, #56]
	ldr	q2, [x8]
	ldr	q0, [x8]
	stp	q0, q2, [sp, #16]
	mov	x1, x2
	bl	_validate_worktree_add
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_2
; %bb.1:
	add	x0, sp, #32
	mov	x1, x22
	bl	_strbuf_check_branch_ref
	cbz	w0, LBB0_34
LBB0_2:
	mov	w24, #1
LBB0_3:
	mov	x0, x22
	bl	_lookup_commit_reference_by_name
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x22
	bl	_die
LBB0_5:
	add	x1, sp, #52
	mov	x0, x19
	bl	_worktree_basename
	mov	x1, x0
	ldr	w8, [sp, #52]
	add	w8, w19, w8
	sub	w2, w8, w1
	add	x0, sp, #128
	bl	_strbuf_add
	ldr	x0, [sp, #128]
	add	x1, sp, #16
	bl	_sanitize_refname_component
	ldr	w8, [sp, #24]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x1, [sp, #128]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
LBB0_7:
	add	x0, sp, #128
	bl	_strbuf_reset
	ldr	x2, [sp, #16]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #144
	bl	_git_path_buf
	ldr	w8, [sp, #152]
	str	w8, [sp, #52]
	ldr	x0, [sp, #144]
	bl	_safe_create_leading_directories_const
	cbz	x0, LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x1, [sp, #144]
	bl	_die_errno
LBB0_9:
	ldr	x0, [sp, #144]
	mov	w1, #511
	bl	_mkdir
	cbz	x0, LBB0_14
; %bb.10:
	mov	w25, #1
Lloh18:
	adrp	x26, _errno@GOTPAGE
Lloh19:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh20:
	adrp	x27, _EEXIST@GOTPAGE
Lloh21:
	ldr	x27, [x27, _EEXIST@GOTPAGEOFF]
Lloh22:
	adrp	x22, l_.str.4@PAGE
Lloh23:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh24:
	adrp	x23, l_.str.5@PAGE
Lloh25:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [sp, #52]
	add	x0, sp, #144
	bl	_strbuf_setlen
	str	x25, [sp]
	add	x0, sp, #144
	mov	x1, x23
	bl	_strbuf_addf
	ldr	x0, [sp, #144]
	mov	w1, #511
	bl	_mkdir
	add	w25, w25, #1
	cbz	x0, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	ccmp	w25, #0, #4, eq
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	bl	__
	ldr	x1, [sp, #144]
	bl	_die_errno
	b	LBB0_11
LBB0_14:
	ldr	x0, [sp, #144]
	mov	w1, #47
	bl	_strrchr
	add	x25, x0, #1
	bl	_getpid
Lloh26:
	adrp	x8, _junk_pid@GOTPAGE
Lloh27:
	ldr	x8, [x8, _junk_pid@GOTPAGEOFF]
Lloh28:
	str	w0, [x8]
Lloh29:
	adrp	x8, _remove_junk@GOTPAGE
Lloh30:
	ldr	x8, [x8, _remove_junk@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_atexit
Lloh32:
	adrp	x8, _remove_junk_on_signal@GOTPAGE
Lloh33:
	ldr	x8, [x8, _remove_junk_on_signal@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_sigchain_push_common
	ldr	x0, [sp, #144]
	bl	_xstrdup
Lloh35:
	adrp	x8, _junk_git_dir@GOTPAGE
Lloh36:
	ldr	x8, [x8, _junk_git_dir@GOTPAGEOFF]
Lloh37:
	str	w0, [x8]
Lloh38:
	adrp	x26, _is_junk@GOTPAGE
Lloh39:
	ldr	x26, [x26, _is_junk@GOTPAGEOFF]
	mov	w28, #1
	str	w28, [x26]
	ldr	x8, [sp, #144]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #128
	bl	_strbuf_addf
	ldr	w8, [x20, #8]
	ldr	x0, [sp, #128]
Lloh42:
	adrp	x9, l_.str.8@PAGE
Lloh43:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh44:
	adrp	x10, l_.str.7@PAGE
Lloh45:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	bl	_write_file
	str	x19, [sp]
Lloh46:
	adrp	x1, l_.str.9@PAGE
Lloh47:
	add	x1, x1, l_.str.9@PAGEOFF
	sub	x0, x29, #144
	bl	_strbuf_addf
	ldur	x0, [x29, #-144]
	bl	_safe_create_leading_directories_const
	cbz	x0, LBB0_16
; %bb.15:
Lloh48:
	adrp	x0, l_.str.3@PAGE
Lloh49:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldur	x1, [x29, #-144]
	bl	_die_errno
LBB0_16:
	mov	x0, x19
	bl	_xstrdup
Lloh50:
	adrp	x27, _junk_work_tree@GOTPAGE
Lloh51:
	ldr	x27, [x27, _junk_work_tree@GOTPAGEOFF]
	str	w0, [x27]
	add	x0, sp, #128
	bl	_strbuf_reset
	ldr	x8, [sp, #144]
	str	x8, [sp]
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #128
	bl	_strbuf_addf
	ldr	x22, [sp, #128]
	ldur	x0, [x29, #-144]
	bl	_real_path
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh54:
	adrp	x23, l_.str.11@PAGE
Lloh55:
	add	x23, x23, l_.str.11@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_write_file
	ldur	x22, [x29, #-144]
	bl	_get_git_common_dir
	bl	_real_path
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x25, [sp]
Lloh56:
	adrp	x1, l_.str.12@PAGE
Lloh57:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	bl	_write_file
	add	x0, sp, #128
	bl	_strbuf_reset
	ldr	x8, [sp, #144]
	str	x8, [sp]
Lloh58:
	adrp	x1, l_.str.13@PAGE
Lloh59:
	add	x1, x1, l_.str.13@PAGEOFF
	add	x0, sp, #128
	bl	_strbuf_addf
	ldr	x22, [sp, #128]
Lloh60:
	adrp	x0, _null_oid@GOTPAGE
Lloh61:
	ldr	x0, [x0, _null_oid@GOTPAGEOFF]
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_write_file
	add	x0, sp, #128
	bl	_strbuf_reset
	ldr	x8, [sp, #144]
	str	x8, [sp]
Lloh62:
	adrp	x1, l_.str.14@PAGE
Lloh63:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x0, sp, #128
	bl	_strbuf_addf
	ldr	x0, [sp, #128]
Lloh64:
	adrp	x1, l_.str.15@PAGE
Lloh65:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_write_file
Lloh66:
	adrp	x8, _GIT_DIR_ENVIRONMENT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _GIT_DIR_ENVIRONMENT@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	ldur	x3, [x29, #-144]
Lloh69:
	adrp	x22, l_.str.16@PAGE
Lloh70:
	add	x22, x22, l_.str.16@PAGEOFF
	add	x0, sp, #56
	mov	x1, x22
	bl	_argv_array_pushf
Lloh71:
	adrp	x8, _GIT_WORK_TREE_ENVIRONMENT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _GIT_WORK_TREE_ENVIRONMENT@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	add	x0, sp, #56
	mov	x1, x22
	mov	x3, x19
	bl	_argv_array_pushf
	str	w28, [sp, #64]
	add	x8, sp, #64
	add	x22, x8, #40
	cbz	w24, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
	str	xzr, [sp]
Lloh74:
	adrp	x1, l_.str.17@PAGE
Lloh75:
	add	x1, x1, l_.str.17@PAGEOFF
Lloh76:
	adrp	x2, l_.str.18@PAGE
Lloh77:
	add	x2, x2, l_.str.18@PAGEOFF
	mov	x0, x22
	bl	_argv_array_pushl
	b	LBB0_20
LBB0_18:
	ldr	x3, [sp, #32]
	str	xzr, [sp]
Lloh78:
	adrp	x1, l_.str.19@PAGE
Lloh79:
	add	x1, x1, l_.str.19@PAGEOFF
Lloh80:
	adrp	x2, l_.str.18@PAGE
Lloh81:
	add	x2, x2, l_.str.18@PAGEOFF
	mov	x0, x22
	bl	_argv_array_pushl
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_20
; %bb.19:
Lloh82:
	adrp	x1, l_.str.20@PAGE
Lloh83:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x22
	bl	_argv_array_push
LBB0_20:
	ldr	x8, [sp, #56]
	str	x8, [sp, #72]
	add	x0, sp, #64
	bl	_run_command
	cbz	w0, LBB0_23
LBB0_21:
	mov	x23, x0
	mov	w24, #0
LBB0_22:
	add	x0, sp, #128
	bl	_strbuf_reset
	ldr	x8, [sp, #144]
	str	x8, [sp]
Lloh84:
	adrp	x1, l_.str.6@PAGE
Lloh85:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #128
	bl	_strbuf_addf
	ldr	x0, [sp, #128]
	bl	_unlink_or_warn
	cbnz	w24, LBB0_28
	b	LBB0_32
LBB0_23:
	ldr	x8, [x20]
	cbz	x8, LBB0_27
; %bb.24:
	str	xzr, [sp, #112]
	mov	x0, x22
	bl	_argv_array_clear
Lloh86:
	adrp	x1, l_.str.21@PAGE
Lloh87:
	add	x1, x1, l_.str.21@PAGEOFF
Lloh88:
	adrp	x2, l_.str.22@PAGE
Lloh89:
	add	x2, x2, l_.str.22@PAGEOFF
	mov	x0, x22
	mov	x3, #0
	bl	_argv_array_pushl
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_26
; %bb.25:
Lloh90:
	adrp	x1, l_.str.20@PAGE
Lloh91:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x22
	bl	_argv_array_push
LBB0_26:
	ldr	x8, [sp, #56]
	str	x8, [sp, #72]
	add	x0, sp, #64
	bl	_run_command
	cbnz	w0, LBB0_21
LBB0_27:
	str	wzr, [x26]
	ldr	w0, [x27]
	bl	_FREE_AND_NULL
Lloh92:
	adrp	x8, _junk_git_dir@GOTPAGE
Lloh93:
	ldr	x8, [x8, _junk_git_dir@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	bl	_FREE_AND_NULL
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_38
LBB0_28:
	ldr	x8, [x20]
	cbz	x8, LBB0_31
; %bb.29:
Lloh95:
	adrp	x20, l_.str.23@PAGE
Lloh96:
	add	x20, x20, l_.str.23@PAGEOFF
	mov	x0, x20
	bl	_find_hook
	cbz	x0, LBB0_31
; %bb.30:
Lloh97:
	adrp	x8, l___const.add_worktree.env@PAGE
Lloh98:
	add	x8, x8, l___const.add_worktree.env@PAGEOFF
	ldr	q0, [x8]
	stur	q0, [x29, #-128]
	ldr	x8, [x8, #16]
	stur	x8, [x29, #-112]
	str	wzr, [sp, #64]
	movi.2s	v0, #1
	str	d0, [sp, #80]
	sub	x8, x29, #128
	str	x8, [sp, #72]
	str	xzr, [sp, #112]
	stp	x19, x20, [sp, #88]
	bl	_absolute_path
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
Lloh99:
	adrp	x0, _null_oid@GOTPAGE
Lloh100:
	ldr	x0, [x0, _null_oid@GOTPAGEOFF]
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	mov	x0, x21
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh101:
	adrp	x8, l_.str.26@PAGE
Lloh102:
	add	x8, x8, l_.str.26@PAGEOFF
	stp	x8, xzr, [sp]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_argv_array_pushl
	add	x0, sp, #64
	bl	_run_command
	mov	x23, x0
	b	LBB0_32
LBB0_31:
	mov	w23, #0
LBB0_32:
	add	x0, sp, #56
	bl	_argv_array_clear
	add	x0, sp, #128
	bl	_strbuf_release
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #144
	bl	_strbuf_release
	sub	x0, x29, #144
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	ldur	x8, [x29, #-96]
Lloh103:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh104:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh105:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.33:
	mov	x0, x23
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_34:
	ldr	x0, [sp, #32]
	bl	_ref_exists
	cbz	x0, LBB0_2
; %bb.35:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_37
; %bb.36:
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_die_if_checked_out
LBB0_37:
	mov	w24, #0
	b	LBB0_3
LBB0_38:
	mov	w23, #0
	mov	w24, #1
	b	LBB0_22
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_CHILD_PROCESS_INIT,56,3        ; @CHILD_PROCESS_INIT
	.comm	_ARGV_ARRAY_INIT,8,3            ; @ARGV_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid reference: %s"

l_.str.1:                               ; @.str.1
	.asciz	"How come '%s' becomes empty after sanitization?"

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

l_.str.3:                               ; @.str.3
	.asciz	"could not create leading directories of '%s'"

	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.4:                               ; @.str.4
	.asciz	"could not create directory of '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"%d"

	.comm	_junk_pid,4,2                   ; @junk_pid
	.comm	_remove_junk,4,2                ; @remove_junk
	.comm	_remove_junk_on_signal,4,2      ; @remove_junk_on_signal
	.comm	_junk_git_dir,4,2               ; @junk_git_dir
	.comm	_is_junk,4,2                    ; @is_junk
l_.str.6:                               ; @.str.6
	.asciz	"%s/locked"

l_.str.7:                               ; @.str.7
	.asciz	"initializing"

l_.str.8:                               ; @.str.8
	.asciz	"added with --lock"

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

	.comm	_junk_work_tree,4,2             ; @junk_work_tree
l_.str.10:                              ; @.str.10
	.asciz	"%s/gitdir"

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

l_.str.12:                              ; @.str.12
	.asciz	"gitdir: %s/worktrees/%s"

l_.str.13:                              ; @.str.13
	.asciz	"%s/HEAD"

	.comm	_null_oid,4,2                   ; @null_oid
l_.str.14:                              ; @.str.14
	.asciz	"%s/commondir"

l_.str.15:                              ; @.str.15
	.asciz	"../.."

l_.str.16:                              ; @.str.16
	.asciz	"%s=%s"

	.comm	_GIT_DIR_ENVIRONMENT,4,2        ; @GIT_DIR_ENVIRONMENT
	.comm	_GIT_WORK_TREE_ENVIRONMENT,4,2  ; @GIT_WORK_TREE_ENVIRONMENT
l_.str.17:                              ; @.str.17
	.asciz	"update-ref"

l_.str.18:                              ; @.str.18
	.asciz	"HEAD"

l_.str.19:                              ; @.str.19
	.asciz	"symbolic-ref"

l_.str.20:                              ; @.str.20
	.asciz	"--quiet"

l_.str.21:                              ; @.str.21
	.asciz	"reset"

l_.str.22:                              ; @.str.22
	.asciz	"--hard"

l_.str.23:                              ; @.str.23
	.asciz	"post-checkout"

l_.str.24:                              ; @.str.24
	.asciz	"GIT_DIR"

l_.str.25:                              ; @.str.25
	.asciz	"GIT_WORK_TREE"

	.section	__DATA,__const
	.p2align	3                               ; @__const.add_worktree.env
l___const.add_worktree.env:
	.quad	l_.str.24
	.quad	l_.str.25
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str.26:                              ; @.str.26
	.asciz	"1"

	.no_dead_strip	_add_worktree
.subsections_via_symbols
