	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_possible_reference_from_superproject
_add_possible_reference_from_superproject: ## @add_possible_reference_from_superproject
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_strip_suffix
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%eax, -32(%rbp)
	movl	(%rbx), %esi
	movq	-40(%rbp), %rdx
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_add
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addf
	movl	-24(%rbp), %edi
	leaq	-32(%rbp), %rsi
	callq	_compute_alternate_path
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movl	8(%r14), %r14d
	movl	-24(%rbp), %edi
	callq	_xstrdup
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_string_list_append
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_3:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	4(%r14), %esi
	movl	-32(%rbp), %edx
	movl	%eax, %edi
	callq	_die
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	4(%r14), %edx
	movl	-32(%rbp), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fprintf_ln
LBB0_7:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
LBB0_8:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/objects"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
L_.str.1:                               ## @.str.1
	.asciz	"/modules/%s/"

L_.str.2:                               ## @.str.2
	.asciz	"submodule '%s' cannot add alternate: %s"

	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_add_possible_reference_from_superproject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_possible_reference_from_superproject
_add_possible_reference_from_superproject: ; @add_possible_reference_from_superproject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_strip_suffix
	cbz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	w8, [sp, #8]
	ldr	w1, [x20]
	ldr	x2, [sp, #24]
	add	x0, sp, #16
	bl	_strbuf_add
	ldr	w2, [x19, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addf
	ldr	w0, [sp, #16]
	add	x1, sp, #8
	bl	_compute_alternate_path
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	w19, [x19, #8]
	ldr	w0, [sp, #16]
	bl	_xstrdup
	mov	x1, x0
	mov	x0, x19
	bl	_string_list_append
	mov	x0, x20
	bl	_free
	b	LBB0_7
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	w1, [x19, #4]
	ldr	w2, [sp, #8]
	bl	_die
LBB0_6:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	w2, [x19, #4]
	ldr	w3, [sp, #8]
	mov	x0, x20
	bl	_fprintf_ln
LBB0_7:
	add	x0, sp, #16
	bl	_strbuf_release
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/objects"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
l_.str.1:                               ; @.str.1
	.asciz	"/modules/%s/"

l_.str.2:                               ; @.str.2
	.asciz	"submodule '%s' cannot add alternate: %s"

	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_add_possible_reference_from_superproject
.subsections_via_symbols
