	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makelink
_makelink:                              ## @makelink
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_dolink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LN_HARD@GOTPCREL(%rip), %rbx
	movq	_LN_MIXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_17
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_do_link
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.2:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movl	-88(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	movq	_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_haveopt_m@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	$511, %eax                      ## imm = 0x1FF
	andl	-88(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_7:
	movq	_owner@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_haveopt_o@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	$0, (%rcx)
LBB0_9:
	movq	_group@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	_haveopt_g@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	$0, (%rcx)
LBB0_11:
	movq	_fflags@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	_haveopt_f@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	$0, (%r13)
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_digest_file
	movq	%rax, %rbx
	movl	-84(%rbp), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rax, %r8
	callq	_metadata_log
	movq	%rbx, %rdi
	callq	_free
	movq	_mode@GOTPCREL(%rip), %rax
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_owner@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	_group@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	%r14, (%r13)
	jmp	LBB0_22
LBB0_14:
	movq	_dolink@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	testl	%eax, (%rbx)
	movq	%r13, %r15
	movq	%r14, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EXDEV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_17
LBB0_16:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
	movl	(%rbx), %eax
LBB0_17:
	movq	_LN_ABSOLUTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.18:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_realpath
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_20:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
LBB0_21:
	callq	_do_symlink
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_metadata_log
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_LN_RELATIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_43
## %bb.25:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpb	$47, (%rbx)
	jne	LBB0_45
## %bb.26:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_realpath
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_28:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
LBB0_30:
	movq	%r15, %rdi
	callq	_dirname
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_realpath
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_32:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcat
	cltq
	cmpq	%r13, %rax
	jbe	LBB0_35
## %bb.34:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_35:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movq	%r15, %rdi
	callq	_basename
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_strlcat
	cltq
	cmpq	%r13, %rax
	jbe	LBB0_37
## %bb.36:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_37:
	movq	%r15, %rdi
	callq	_free
	movb	(%r12), %al
	cmpb	(%r14), %al
	jne	LBB0_48
## %bb.38:
	decq	%r12
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rcx
	incq	%r14
	movzbl	2(%r12), %eax
	incq	%r12
	cmpb	1(%rcx), %al
	je	LBB0_39
## %bb.40:
	leaq	-1(%r14), %rbx
	cmpb	$47, (%r12)
	jne	LBB0_49
## %bb.41:
	cmpb	$47, (%rbx)
	jne	LBB0_49
## %bb.42:
	incq	%r12
LBB0_48:
	movq	%r14, %rbx
	cmpb	$47, %al
	je	LBB0_50
	jmp	LBB0_51
LBB0_43:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_do_symlink
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.44:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	jmp	LBB0_47
LBB0_45:
	movq	%rbx, %rdi
	movq	%rax, %r14
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_do_symlink
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.46:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
LBB0_47:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_metadata_log                   ## TAILCALL
LBB0_49:
	movb	(%r12), %al
	cmpb	$47, %al
	jne	LBB0_51
LBB0_50:
	movq	%r12, %r15
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r12), %r15
	decq	%rbx
	cmpb	$47, -1(%r12)
	movq	%r15, %r12
	jne	LBB0_51
LBB0_52:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movb	$0, (%r12)
	incq	%rbx
	leaq	L_.str.8(%rip), %r14
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_54 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_strlcat
	incq	%rbx
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$47, %al
	je	LBB0_53
## %bb.55:                              ##   in Loop: Header=BB0_54 Depth=1
	testb	%al, %al
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_54 Depth=1
	incq	%rbx
	jmp	LBB0_54
LBB0_57:
	incq	%r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_strlcat
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_58:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_dolink,4,2                     ## @dolink
	.comm	_LN_HARD,4,2                    ## @LN_HARD
	.comm	_LN_MIXED,4,2                   ## @LN_MIXED
	.comm	_errno,8,3                      ## @errno
	.comm	_EXDEV,8,3                      ## @EXDEV
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link %s -> %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: stat"

	.comm	_mode,4,2                       ## @mode
	.comm	_haveopt_m,4,2                  ## @haveopt_m
	.comm	_owner,8,3                      ## @owner
	.comm	_haveopt_o,4,2                  ## @haveopt_o
	.comm	_group,8,3                      ## @group
	.comm	_haveopt_g,4,2                  ## @haveopt_g
	.comm	_fflags,8,3                     ## @fflags
	.comm	_haveopt_f,4,2                  ## @haveopt_f
L_.str.2:                               ## @.str.2
	.asciz	"file"

	.comm	_LN_ABSOLUTE,4,2                ## @LN_ABSOLUTE
L_.str.3:                               ## @.str.3
	.asciz	"%s: realpath"

L_.str.4:                               ## @.str.4
	.asciz	"link"

	.comm	_LN_RELATIVE,4,2                ## @LN_RELATIVE
L_.str.5:                               ## @.str.5
	.asciz	"%s: strdup"

L_.str.6:                               ## @.str.6
	.asciz	"/"

L_.str.7:                               ## @.str.7
	.asciz	"resolved pathname too long"

L_.str.8:                               ## @.str.8
	.asciz	"../"

	.no_dead_strip	_makelink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makelink
_makelink:                              ; @makelink
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	mov	x9, x22
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
Lloh12:
	adrp	x26, _dolink@GOTPAGE
Lloh13:
	ldr	x26, [x26, _dolink@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh14:
	adrp	x27, _LN_HARD@GOTPAGE
Lloh15:
	ldr	x27, [x27, _LN_HARD@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh16:
	adrp	x10, _LN_MIXED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _LN_MIXED@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	mov	x0, x25
	mov	x1, x19
	mov	x2, x20
	bl	_do_link
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.2:
	sub	x1, x29, #96
	mov	x0, x19
	bl	_stat
	cbz	x0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_4:
	ldur	w0, [x29, #-96]
	bl	_S_ISREG
	cbz	x0, LBB0_22
; %bb.5:
Lloh24:
	adrp	x9, _mode@GOTPAGE
Lloh25:
	ldr	x9, [x9, _mode@GOTPAGEOFF]
	ldr	w22, [x9]
Lloh26:
	adrp	x8, _haveopt_m@GOTPAGE
Lloh27:
	ldr	x8, [x8, _haveopt_m@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.6:
	ldur	w8, [x29, #-96]
	and	w8, w8, #0x1ff
	str	w8, [x9]
LBB0_7:
Lloh29:
	adrp	x23, _owner@GOTPAGE
Lloh30:
	ldr	x23, [x23, _owner@GOTPAGEOFF]
	ldr	x24, [x23]
Lloh31:
	adrp	x8, _haveopt_o@GOTPAGE
Lloh32:
	ldr	x8, [x8, _haveopt_o@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	str	xzr, [x23]
LBB0_9:
Lloh34:
	adrp	x26, _group@GOTPAGE
Lloh35:
	ldr	x26, [x26, _group@GOTPAGEOFF]
	ldr	x27, [x26]
Lloh36:
	adrp	x8, _haveopt_g@GOTPAGE
Lloh37:
	ldr	x8, [x8, _haveopt_g@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.10:
	str	xzr, [x26]
LBB0_11:
Lloh39:
	adrp	x28, _fflags@GOTPAGE
Lloh40:
	ldr	x28, [x28, _fflags@GOTPAGEOFF]
	ldr	x21, [x28]
Lloh41:
	adrp	x8, _haveopt_f@GOTPAGE
Lloh42:
	ldr	x8, [x8, _haveopt_f@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
; %bb.12:
	str	xzr, [x28]
LBB0_13:
	mov	x0, x25
	bl	_digest_file
	mov	x20, x0
	ldur	w5, [x29, #-92]
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	bl	_metadata_log
	mov	x0, x20
	bl	_free
Lloh46:
	adrp	x8, _mode@GOTPAGE
Lloh47:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh48:
	str	w22, [x8]
	str	x24, [x23]
	str	x27, [x26]
	str	x21, [x28]
	b	LBB0_22
LBB0_14:
	ldr	w8, [x26]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:
Lloh49:
	adrp	x9, _errno@GOTPAGE
Lloh50:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
Lloh52:
	adrp	x10, _EXDEV@GOTPAGE
Lloh53:
	ldr	x10, [x10, _EXDEV@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_17
LBB0_16:
Lloh55:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	str	x19, [sp, #-16]!
Lloh58:
	adrp	x1, l_.str@PAGE
Lloh59:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_err
	add	sp, sp, #16
	ldr	w8, [x26]
LBB0_17:
Lloh60:
	adrp	x9, _LN_ABSOLUTE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _LN_ABSOLUTE@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.18:
	mov	x0, x25
	mov	x1, x21
	bl	_realpath
	cbnz	x0, LBB0_20
; %bb.19:
Lloh63:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x1, l_.str.3@PAGE
Lloh67:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_err
LBB0_20:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_do_symlink
Lloh68:
	adrp	x1, l_.str.4@PAGE
Lloh69:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, x21
LBB0_21:
	mov	x4, #0
	mov	w5, #0
	bl	_metadata_log
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh70:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh71:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.23:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh73:
	adrp	x9, _LN_RELATIVE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _LN_RELATIVE@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.25:
	ldrb	w8, [x25]
	mov	x0, x25
	cmp	w8, #47
	b.ne	LBB0_44
; %bb.26:
	mov	x1, x21
	bl	_realpath
	cbnz	x0, LBB0_28
; %bb.27:
Lloh76:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.3@PAGE
Lloh80:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_err
LBB0_28:
	mov	x0, x19
	bl	_strdup
	mov	x25, x0
	cbnz	x0, LBB0_30
; %bb.29:
Lloh81:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
Lloh84:
	adrp	x1, l_.str.5@PAGE
Lloh85:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_30:
	mov	x0, x25
	bl	_dirname
	mov	x26, x0
	mov	x1, x24
	bl	_realpath
	cbnz	x0, LBB0_32
; %bb.31:
Lloh86:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
Lloh89:
	adrp	x1, l_.str.3@PAGE
Lloh90:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x26
	bl	_err
LBB0_32:
Lloh91:
	adrp	x1, l_.str.6@PAGE
Lloh92:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.33:
Lloh93:
	adrp	x1, l_.str.6@PAGE
Lloh94:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	mov	x2, x22
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x22
	b.ls	LBB0_35
; %bb.34:
Lloh95:
	adrp	x1, l_.str.7@PAGE
Lloh96:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_35:
	mov	x0, x25
	mov	x1, x19
	bl	_strcpy
	mov	x0, x25
	bl	_basename
	mov	x1, x0
	mov	x0, x24
	mov	x2, x22
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x22
	b.ls	LBB0_37
; %bb.36:
Lloh97:
	adrp	x1, l_.str.7@PAGE
Lloh98:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_37:
	mov	x0, x25
	bl	_free
	ldrb	w9, [x21]
	ldrb	w8, [x24]
	cmp	w9, w8
	b.ne	LBB0_46
; %bb.38:
	sub	x21, x21, #1
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24, #1]!
	ldrb	w9, [x21, #2]
	add	x21, x21, #1
	cmp	w9, w8
	b.eq	LBB0_39
; %bb.40:
	mov	x10, x21
	ldrb	w11, [x10], #1
	sub	x8, x24, #1
	cmp	w11, #47
	b.ne	LBB0_47
; %bb.41:
	ldrb	w11, [x8]
	cmp	w11, #47
	b.ne	LBB0_47
; %bb.42:
	mov	x8, x24
	mov	x21, x10
	b	LBB0_49
LBB0_43:
	mov	x0, x25
LBB0_44:
	mov	x1, x19
	mov	x2, x20
	bl	_do_symlink
	ldur	x8, [x29, #-88]
Lloh99:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh100:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.45:
Lloh102:
	adrp	x1, l_.str.4@PAGE
Lloh103:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, x25
	mov	x4, #0
	mov	w5, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_metadata_log
LBB0_46:
	mov	x8, x24
	b	LBB0_49
LBB0_47:
	ldrb	w9, [x21]
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=1
	ldrb	w9, [x21, #-1]!
	sub	x8, x8, #1
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	cmp	w9, #47
	b.ne	LBB0_48
; %bb.50:
	strb	wzr, [x23]
	add	x25, x8, #1
Lloh104:
	adrp	x24, l_.str.8@PAGE
Lloh105:
	add	x24, x24, l_.str.8@PAGEOFF
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_strlcat
	add	x25, x25, #1
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x25]
	cmp	w8, #47
	b.eq	LBB0_51
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=1
	cbz	w8, LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_52 Depth=1
	add	x25, x25, #1
	b	LBB0_52
LBB0_55:
	add	x1, x21, #1
	mov	x0, x23
	mov	x2, x22
	bl	_strlcat
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	bl	_do_symlink
Lloh106:
	adrp	x1, l_.str.4@PAGE
Lloh107:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, x23
	b	LBB0_21
LBB0_56:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_dolink,4,2                     ; @dolink
	.comm	_LN_HARD,4,2                    ; @LN_HARD
	.comm	_LN_MIXED,4,2                   ; @LN_MIXED
	.comm	_errno,8,3                      ; @errno
	.comm	_EXDEV,8,3                      ; @EXDEV
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link %s -> %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: stat"

	.comm	_mode,4,2                       ; @mode
	.comm	_haveopt_m,4,2                  ; @haveopt_m
	.comm	_owner,8,3                      ; @owner
	.comm	_haveopt_o,4,2                  ; @haveopt_o
	.comm	_group,8,3                      ; @group
	.comm	_haveopt_g,4,2                  ; @haveopt_g
	.comm	_fflags,8,3                     ; @fflags
	.comm	_haveopt_f,4,2                  ; @haveopt_f
l_.str.2:                               ; @.str.2
	.asciz	"file"

	.comm	_LN_ABSOLUTE,4,2                ; @LN_ABSOLUTE
l_.str.3:                               ; @.str.3
	.asciz	"%s: realpath"

l_.str.4:                               ; @.str.4
	.asciz	"link"

	.comm	_LN_RELATIVE,4,2                ; @LN_RELATIVE
l_.str.5:                               ; @.str.5
	.asciz	"%s: strdup"

l_.str.6:                               ; @.str.6
	.asciz	"/"

l_.str.7:                               ; @.str.7
	.asciz	"resolved pathname too long"

l_.str.8:                               ; @.str.8
	.asciz	"../"

	.no_dead_strip	_makelink
.subsections_via_symbols
