	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_or_link_directory
_copy_or_link_directory:                ## @copy_or_link_directory
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	4(%rsi), %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir_if_missing
	movq	_DIR_ITERATOR_PEDANTIC@GOTPCREL(%rip), %rax
	movq	_DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%r15), %edi
	callq	_dir_iterator_begin
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	4(%r15), %esi
	movl	%eax, %edi
	callq	_die_errno
LBB0_2:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	callq	_dir_iterator_advance
	movq	_ITER_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir_if_missing
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_dir_iterator_advance
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_strbuf_addstr
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_strbuf_setlen
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_strbuf_addstr
	movl	4(%rbx), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fspathcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edi
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_die_errno
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_option_no_hardlinks@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %edi
	callq	_real_path
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_link
	testl	%eax, %eax
	je	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_option_local@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_die_errno
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_option_no_hardlinks@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edi
	movl	4(%r15), %esi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_copy_file_with_time
	testq	%rax, %rax
	je	LBB0_6
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_die_errno
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_copy_alternates
	jmp	LBB0_6
LBB0_7:
	movq	_ITER_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	4(%r15), %esi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ## @DIR_ITERATOR_PEDANTIC
	.comm	_DIR_ITERATOR_FOLLOW_SYMLINKS,4,2 ## @DIR_ITERATOR_FOLLOW_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to start iterator over '%s'"

	.comm	_ITER_OK,4,2                    ## @ITER_OK
L_.str.1:                               ## @.str.1
	.asciz	"info/alternates"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"failed to unlink '%s'"

	.comm	_option_no_hardlinks,4,2        ## @option_no_hardlinks
	.comm	_option_local,8,3               ## @option_local
L_.str.3:                               ## @.str.3
	.asciz	"failed to create link '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"failed to copy file to '%s'"

	.comm	_ITER_DONE,4,2                  ## @ITER_DONE
L_.str.5:                               ## @.str.5
	.asciz	"failed to iterate over '%s'"

	.no_dead_strip	_copy_or_link_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_or_link_directory
_copy_or_link_directory:                ; @copy_or_link_directory
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1, #4]
	mov	w1, #511
	bl	_mkdir_if_missing
Lloh0:
	adrp	x8, _DIR_ITERATOR_PEDANTIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_ITERATOR_PEDANTIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIR_ITERATOR_FOLLOW_SYMLINKS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w0, [x19, #4]
	bl	_dir_iterator_begin
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19, #4]
	bl	_die_errno
LBB0_2:
	mov	x0, x19
	mov	w1, #47
	bl	_strbuf_addch
	ldr	w23, [x19]
	mov	x0, x21
	mov	w1, #47
	bl	_strbuf_addch
	ldr	w24, [x21]
	mov	x0, x22
	bl	_dir_iterator_advance
Lloh8:
	adrp	x26, _ITER_OK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ITER_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.3:
Lloh10:
	adrp	x25, l_.str.1@PAGE
Lloh11:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh12:
	adrp	x28, _option_no_hardlinks@GOTPAGE
Lloh13:
	ldr	x28, [x28, _option_no_hardlinks@GOTPAGEOFF]
Lloh14:
	adrp	x27, _ENOENT@GOTPAGE
Lloh15:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21, #4]
	mov	w1, #511
	bl	_mkdir_if_missing
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_dir_iterator_advance
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_strbuf_setlen
	ldr	w1, [x22]
	mov	x0, x19
	bl	_strbuf_addstr
	mov	x0, x21
	mov	x1, x24
	bl	_strbuf_setlen
	ldr	w1, [x22]
	mov	x0, x21
	bl	_strbuf_addstr
	ldr	w0, [x22, #4]
	bl	_S_ISDIR
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22]
	mov	x1, x25
	bl	_fspathcmp
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21, #4]
	bl	_unlink
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	w1, [x21, #4]
	bl	_die_errno
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x28]
	cbnz	w8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #4]
	bl	_real_path
	ldr	w1, [x21, #4]
	bl	_link
	cbz	w0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh21:
	adrp	x8, _option_local@GOTPAGE
Lloh22:
	ldr	x8, [x8, _option_local@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	w1, [x21, #4]
	bl	_die_errno
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x28]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21, #4]
	ldr	w1, [x19, #4]
	mov	w2, #438
	bl	_copy_file_with_time
	cbz	x0, LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	w1, [x21, #4]
	bl	_die_errno
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_copy_alternates
	b	LBB0_5
LBB0_19:
Lloh28:
	adrp	x8, _ITER_DONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ITER_DONE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.20:
	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_21:
	mov	x0, x19
	mov	x1, x23
	bl	_strbuf_setlen
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	ldr	w1, [x19, #4]
	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	_die
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ITERATOR_PEDANTIC,4,2      ; @DIR_ITERATOR_PEDANTIC
	.comm	_DIR_ITERATOR_FOLLOW_SYMLINKS,4,2 ; @DIR_ITERATOR_FOLLOW_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to start iterator over '%s'"

	.comm	_ITER_OK,4,2                    ; @ITER_OK
l_.str.1:                               ; @.str.1
	.asciz	"info/alternates"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"failed to unlink '%s'"

	.comm	_option_no_hardlinks,4,2        ; @option_no_hardlinks
	.comm	_option_local,8,3               ; @option_local
l_.str.3:                               ; @.str.3
	.asciz	"failed to create link '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"failed to copy file to '%s'"

	.comm	_ITER_DONE,4,2                  ; @ITER_DONE
l_.str.5:                               ; @.str.5
	.asciz	"failed to iterate over '%s'"

	.no_dead_strip	_copy_or_link_directory
.subsections_via_symbols
