	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_alternate_path         ## -- Begin function compute_alternate_path
	.p2align	4, 0x90
_compute_alternate_path:                ## @compute_alternate_path
	.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	%rsi, %r15
	movq	%rdi, %r14
	callq	_real_path_if_valid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_xstrdup
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_read_gitfile
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpath
	movq	%rax, %rdi
	callq	_read_gitfile
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_xstrdup
	movq	%rax, %r12
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpath
	movq	%rax, %rdi
	callq	_is_directory
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpath
	movq	_F_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_access
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.8(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpath
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_access
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_strbuf_addf
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_6:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_get_common_dir
	testq	%rax, %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.7(%rip), %rdi
LBB0_13:
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_strbuf_addf
LBB0_14:
	movq	%r12, %rdi
	callq	_FREE_AND_NULL
LBB0_15:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpath
	movq	%rax, %rdi
	callq	_is_directory
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_mkpathdup
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %r12
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"path '%s' does not exist"

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

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

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

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
L_.str.4:                               ## @.str.4
	.asciz	"reference repository '%s' as a linked checkout is not supported yet."

L_.str.5:                               ## @.str.5
	.asciz	"reference repository '%s' is not a local repository."

L_.str.6:                               ## @.str.6
	.asciz	"%s/shallow"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.7:                               ## @.str.7
	.asciz	"reference repository '%s' is shallow"

L_.str.8:                               ## @.str.8
	.asciz	"%s/info/grafts"

L_.str.9:                               ## @.str.9
	.asciz	"reference repository '%s' is grafted"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_alternate_path         ; -- Begin function compute_alternate_path
	.p2align	2
_compute_alternate_path:                ; @compute_alternate_path
	.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, x1
	mov	x19, x0
	bl	_real_path_if_valid
	cbz	x0, LBB0_8
; %bb.1:
	bl	_xstrdup
	mov	x20, x0
	bl	_read_gitfile
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_mkpath
	bl	_read_gitfile
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_3:
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	_xstrdup
	mov	x20, x0
LBB0_4:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_mkpath
	bl	_is_directory
	cbz	x0, LBB0_9
LBB0_5:
Lloh4:
	adrp	x0, l_.str.6@PAGE
Lloh5:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_mkpath
Lloh6:
	adrp	x22, _F_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _F_OK@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_access
	cbz	w0, LBB0_10
; %bb.6:
Lloh8:
	adrp	x0, l_.str.8@PAGE
Lloh9:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x20
	bl	_mkpath
	ldr	w1, [x22]
	bl	_access
	cbnz	w0, LBB0_13
; %bb.7:
Lloh10:
	adrp	x0, l_.str.9@PAGE
Lloh11:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_strbuf_addf
	mov	x20, #0
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_get_common_dir
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh19:
	adrp	x9, l_.str.5@PAGE
Lloh20:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x0, #0
	csel	x0, x9, x8, eq
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_11:
	bl	__
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_strbuf_addf
LBB0_12:
	mov	x0, x20
	bl	_FREE_AND_NULL
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_mkpath
	bl	_is_directory
	cbz	x0, LBB0_4
; %bb.15:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_mkpathdup
	mov	x22, x0
	mov	x0, x20
	bl	_free
	mov	x20, x22
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"path '%s' does not exist"

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

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

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

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
l_.str.4:                               ; @.str.4
	.asciz	"reference repository '%s' as a linked checkout is not supported yet."

l_.str.5:                               ; @.str.5
	.asciz	"reference repository '%s' is not a local repository."

l_.str.6:                               ; @.str.6
	.asciz	"%s/shallow"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.7:                               ; @.str.7
	.asciz	"reference repository '%s' is shallow"

l_.str.8:                               ; @.str.8
	.asciz	"%s/info/grafts"

l_.str.9:                               ; @.str.9
	.asciz	"reference repository '%s' is grafted"

.subsections_via_symbols
