	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connect_work_tree_and_git_dir  ## -- Begin function connect_work_tree_and_git_dir
	.p2align	4, 0x90
_connect_work_tree_and_git_dir:         ## @connect_work_tree_and_git_dir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -48(%rbp)
	movl	%eax, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r15, %rdx
	callq	_strbuf_addf
	movl	-56(%rbp), %edi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	-56(%rbp), %esi
	movl	%eax, %edi
	callq	_die
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	-48(%rbp), %esi
	movl	%eax, %edi
	callq	_die
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %r14
	movl	-56(%rbp), %r13d
	leaq	-64(%rbp), %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_relative_path
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_write_file
	movl	-48(%rbp), %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_relative_path
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_git_config_set_in_file
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	%r15, %rdi
	callq	_strbuf_release
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_connect_wt_gitdir_in_nested
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/.git"

L_.str.1:                               ## @.str.1
	.asciz	"could not create directories for %s"

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

L_.str.3:                               ## @.str.3
	.asciz	"gitdir: %s"

L_.str.4:                               ## @.str.4
	.asciz	"core.worktree"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connect_work_tree_and_git_dir  ; -- Begin function connect_work_tree_and_git_dir
	.p2align	2
_connect_work_tree_and_git_dir:         ; @connect_work_tree_and_git_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w8, [sp, #16]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_strbuf_addf
	ldr	w0, [sp, #24]
	bl	_safe_create_leading_directories_const
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	w1, [sp, #24]
	bl	_die
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	mov	x2, x21
	bl	_strbuf_addf
	ldr	w0, [sp, #16]
	bl	_safe_create_leading_directories_const
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	w1, [sp, #16]
	bl	_die
LBB0_4:
	mov	x0, x21
	mov	w1, #1
	bl	_real_pathdup
	mov	x21, x0
	mov	x0, x20
	mov	w1, #1
	bl	_real_pathdup
	mov	x20, x0
	ldr	w22, [sp, #24]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_relative_path
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_write_file
	ldr	w22, [sp, #16]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_relative_path
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_git_config_set_in_file
	add	x0, sp, #24
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	add	x0, sp, #8
	bl	_strbuf_release
	cbz	w19, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_connect_wt_gitdir_in_nested
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/.git"

l_.str.1:                               ; @.str.1
	.asciz	"could not create directories for %s"

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

l_.str.3:                               ; @.str.3
	.asciz	"gitdir: %s"

l_.str.4:                               ; @.str.4
	.asciz	"core.worktree"

.subsections_via_symbols
