	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_alternates
_copy_alternates:                       ## @copy_alternates
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_xfopen
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
LBB0_11:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_fclose
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-64(%rbp), %r15
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rdi
	callq	_add_to_alternates_file
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline
	cmpq	(%r12), %rax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	cmpb	$35, (%rdi)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_is_absolute_path
	movq	-64(%rbp), %rdx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_mkpathdup
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rax, %rsi
	callq	_normalize_path_copy
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warning
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_add_to_alternates_file
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_EOF,8,3                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"%s/objects/%s"

L_.str.2:                               ## @.str.2
	.asciz	"skipping invalid relative alternate: %s/%s"

	.no_dead_strip	_copy_alternates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_alternates
_copy_alternates:                       ; @copy_alternates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xfopen
	mov	x20, x0
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline
Lloh5:
	adrp	x24, _EOF@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x20
	bl	_fclose
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x2
	bl	_add_to_alternates_file
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	mov	x1, x20
	bl	_strbuf_getline
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp]
	ldrb	w8, [x0]
	cmp	w8, #35
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_is_absolute_path
	ldr	x2, [sp]
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_mkpathdup
	mov	x23, x0
	mov	x1, x0
	bl	_normalize_path_copy
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp]
	mov	x0, x22
	mov	x1, x19
	bl	_warning
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_add_to_alternates_file
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_free
	b	LBB0_4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_EOF,8,3                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"%s/objects/%s"

l_.str.2:                               ; @.str.2
	.asciz	"skipping invalid relative alternate: %s/%s"

	.no_dead_strip	_copy_alternates
.subsections_via_symbols
