	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_one_reference
_add_one_reference:                     ## @add_one_reference
	.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
	movq	_STRBUF_INIT@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rdi
	leaq	-40(%rbp), %rsi
	callq	_compute_alternate_path
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_strbuf_addf
	movq	-48(%rbp), %rdi
	callq	_add_to_alternates_file
	movq	%r14, %rdi
	callq	_strbuf_release
	jmp	LBB0_5
LBB0_1:
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_die
	jmp	LBB0_5
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%r14), %rdx
	movq	-40(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_fprintf
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"info: Could not add alternate for '%s': %s\n"

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

	.no_dead_strip	_add_one_reference
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_one_reference
_add_one_reference:                     ; @add_one_reference
	.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	x20, x0
Lloh0:
	adrp	x22, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STRBUF_INIT@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #8]
	ldr	x0, [x0]
	add	x1, sp, #8
	bl	_compute_alternate_path
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	mov	x2, x19
	bl	_strbuf_addf
	ldr	x0, [sp]
	bl	_add_to_alternates_file
	mov	x0, sp
	bl	_strbuf_release
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [x20]
	ldr	x3, [sp, #8]
	mov	x0, x21
	bl	_fprintf
LBB0_5:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_free
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"info: Could not add alternate for '%s': %s\n"

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

	.no_dead_strip	_add_one_reference
.subsections_via_symbols
