	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dolink
_dolink:                                ## @dolink
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_itsdir
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_itssymlink
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r15, %rdi
	callq	_remove
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_7
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testq	%rbx, %rbx
	jne	LBB0_14
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hardlinkerr
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_14:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mkdirs
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hardlinkerr
	movl	%eax, %r12d
LBB0_16:
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_putc
	movq	%r13, %rdi
	callq	_getc
	cmpl	(%r14), %eax
	jne	LBB0_21
LBB0_23:
	movq	_directory@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_close_file
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_close_file
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_26
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_strerror
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %r12
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	jmp	LBB0_9
LBB0_7:
	callq	_strerror
	movq	%rax, %r14
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rax, %r15
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_directory@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r14, %r8
	movq	%r15, %r9
	jmp	LBB0_9
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rax, %r14
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
LBB0_8:
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_directory@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r15, %r8
	movq	%r14, %r9
LBB0_9:
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link from %s/%s failed: %s\n"

	.comm	_progname,8,3                   ## @progname
	.comm	_directory,8,3                  ## @directory
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%s: Can't remove %s/%s: %s\n"

	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
L_.str.2:                               ## @.str.2
	.asciz	"rb"

L_.str.3:                               ## @.str.3
	.asciz	"%s: Can't read %s/%s: %s\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"%s: Can't create %s/%s: %s\n"

	.comm	_EOF,4,2                        ## @EOF
L_.str.6:                               ## @.str.6
	.asciz	"copy used because hard link failed: %s"

	.no_dead_strip	_dolink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dolink
_dolink:                                ; @dolink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_itsdir
	cbnz	x0, LBB0_19
; %bb.1:
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_itssymlink
	mov	x21, x0
LBB0_3:
	mov	x0, x19
	bl	_remove
	mov	x22, x0
Lloh0:
	adrp	x23, _ENOENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_20
LBB0_5:
Lloh5:
	adrp	x24, _ENOTSUP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ENOTSUP@GOTPAGEOFF]
	cbz	w21, LBB0_7
; %bb.6:
	ldr	w21, [x24]
	cbnz	x22, LBB0_8
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_hardlinkerr
	mov	x21, x0
	cbz	x22, LBB0_10
LBB0_8:
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #1
	bl	_mkdirs
	mov	x0, x20
	mov	x1, x19
	bl	_hardlinkerr
	mov	x21, x0
LBB0_10:
	cbz	w21, LBB0_17
; %bb.11:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_21
; %bb.12:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_22
; %bb.13:
	mov	x23, x0
	mov	x0, x22
	bl	_getc
Lloh11:
	adrp	x25, _EOF@GOTPAGE
Lloh12:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x23
	bl	_putc
	mov	x0, x22
	bl	_getc
	b	LBB0_14
LBB0_16:
Lloh13:
	adrp	x25, _directory@GOTPAGE
Lloh14:
	ldr	x25, [x25, _directory@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x22
	mov	x2, x20
	bl	_close_file
	ldr	x1, [x25]
	mov	x0, x23
	mov	x2, x19
	bl	_close_file
	ldr	w8, [x24]
	cmp	w21, w8
	b.ne	LBB0_18
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x19, x0
	mov	x0, x21
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_warning
LBB0_19:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x21, x0
Lloh22:
	adrp	x8, _progname@GOTPAGE
Lloh23:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh24:
	ldr	x22, [x8]
Lloh25:
	adrp	x8, _directory@GOTPAGE
Lloh26:
	ldr	x8, [x8, _directory@GOTPAGEOFF]
Lloh27:
	ldr	x23, [x8]
Lloh28:
	adrp	x8, _EPERM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_strerror
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x20
	b	LBB0_24
LBB0_20:
	bl	_strerror
	mov	x20, x0
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh36:
	adrp	x8, _errno@GOTPAGE
Lloh37:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_strerror
	mov	x19, x0
Lloh39:
	adrp	x8, _stderr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w21, [x8]
Lloh42:
	adrp	x0, l_.str.3@PAGE
Lloh43:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
Lloh44:
	adrp	x8, _progname@GOTPAGE
Lloh45:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh46:
	ldr	x2, [x8]
Lloh47:
	adrp	x8, _directory@GOTPAGE
Lloh48:
	ldr	x8, [x8, _directory@GOTPAGEOFF]
Lloh49:
	ldr	x3, [x8]
	mov	x0, x21
	mov	x4, x20
	mov	x5, x19
	b	LBB0_24
LBB0_22:
Lloh50:
	adrp	x8, _errno@GOTPAGE
Lloh51:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_strerror
	mov	x20, x0
Lloh53:
	adrp	x8, _stderr@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
	ldr	w21, [x8]
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_23:
	bl	__
	mov	x1, x0
Lloh58:
	adrp	x8, _progname@GOTPAGE
Lloh59:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh60:
	ldr	x2, [x8]
Lloh61:
	adrp	x8, _directory@GOTPAGE
Lloh62:
	ldr	x8, [x8, _directory@GOTPAGEOFF]
Lloh63:
	ldr	x3, [x8]
	mov	x0, x21
	mov	x4, x19
	mov	x5, x20
LBB0_24:
	bl	_fprintf
Lloh64:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link from %s/%s failed: %s\n"

	.comm	_progname,8,3                   ; @progname
	.comm	_directory,8,3                  ; @directory
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%s: Can't remove %s/%s: %s\n"

	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
l_.str.2:                               ; @.str.2
	.asciz	"rb"

l_.str.3:                               ; @.str.3
	.asciz	"%s: Can't read %s/%s: %s\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"%s: Can't create %s/%s: %s\n"

	.comm	_EOF,4,2                        ; @EOF
l_.str.6:                               ; @.str.6
	.asciz	"copy used because hard link failed: %s"

	.no_dead_strip	_dolink
.subsections_via_symbols
