	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_file_cloning_mode
_copy_file_cloning_mode:                ## @copy_file_cloning_mode
	.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
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	_tmp_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rdi, %r13
	movl	%r12d, %esi
	movq	%r15, %r8
	callq	_snprintf
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	(%r14), %ecx
	jge	LBB0_16
## %bb.1:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
LBB0_14:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_lcopy_attrs
	movl	%eax, %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-5, %eax
	jmp	LBB0_16
LBB0_2:
	movl	(%rbx), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	callq	_unlink
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_symlink
	testq	%rax, %rax
	jns	LBB0_14
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-7, %eax
	jmp	LBB0_16
LBB0_5:
	movl	(%rbx), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_14
## %bb.7:
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-6, %eax
	jmp	LBB0_16
LBB0_8:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %r12d
	movl	%eax, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_write
	cmpl	%r14d, %eax
	jne	LBB0_11
## %bb.12:
	movl	%r12d, %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-4, %eax
	jmp	LBB0_16
LBB0_9:
	movl	(%rbx), %r8d
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-2, %eax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_vkprintf
	movl	$-3, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ## @tmp_dir
L_.str.1:                               ## @.str.1
	.asciz	"%m\n"

L_.str.2:                               ## @.str.2
	.asciz	"mkdir (%s, %d) failed. %m\n"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.3:                               ## @.str.3
	.asciz	"open (%s, %d, %d) fail. %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d bytes of %d was written to %s. %m\n"

L_.str.5:                               ## @.str.5
	.asciz	"closing %s failed. %m\n"

L_.str.6:                               ## @.str.6
	.asciz	"lcopy_attrs returns error code %d.\n"

	.no_dead_strip	_copy_file_cloning_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_file_cloning_mode
_copy_file_cloning_mode:                ; @copy_file_cloning_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x4, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x24, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PATH_MAX@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh7:
	adrp	x8, _tmp_dir@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tmp_dir@GOTPAGEOFF]
Lloh9:
	ldr	x3, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	ldr	w8, [x24]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.1:
	cbz	w23, LBB0_5
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_lcopy_attrs
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	ldr	w0, [x20]
	bl	_S_ISLNK
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_unlink
	mov	x0, x22
	mov	x1, x19
	bl	_symlink
	tbz	x0, #63, LBB0_2
; %bb.7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	w0, #-7
	b	LBB0_9
LBB0_8:
	str	x0, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	add	sp, sp, #16
	mov	w0, #-5
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.10:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w0, [x20]
	bl	_S_ISDIR
	cbz	x0, LBB0_14
; %bb.12:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mkdir
	tbz	x0, #63, LBB0_2
; %bb.13:
	ldr	w8, [x20]
	stp	x19, x8, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	add	sp, sp, #16
	mov	w0, #-6
	b	LBB0_9
LBB0_14:
Lloh21:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w23, w8, w9
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_open
	tbnz	w0, #31, LBB0_18
; %bb.15:
	mov	x24, x0
	mov	x1, x22
	mov	x2, x21
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w21
	b.ne	LBB0_19
; %bb.16:
	mov	x0, x24
	bl	_close
	cbz	x0, LBB0_2
; %bb.17:
	str	x19, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	add	sp, sp, #16
	mov	w0, #-4
	b	LBB0_9
LBB0_18:
	ldr	w8, [x20]
	sub	sp, sp, #32
	stp	x23, x8, [sp, #8]
	str	x19, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	add	sp, sp, #32
	mov	w0, #-2
	b	LBB0_9
LBB0_19:
	sub	sp, sp, #32
	stp	x21, x19, [sp, #8]
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	add	sp, sp, #32
	mov	w0, #-3
	b	LBB0_9
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ; @tmp_dir
l_.str.1:                               ; @.str.1
	.asciz	"%m\n"

l_.str.2:                               ; @.str.2
	.asciz	"mkdir (%s, %d) failed. %m\n"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.3:                               ; @.str.3
	.asciz	"open (%s, %d, %d) fail. %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d bytes of %d was written to %s. %m\n"

l_.str.5:                               ; @.str.5
	.asciz	"closing %s failed. %m\n"

l_.str.6:                               ; @.str.6
	.asciz	"lcopy_attrs returns error code %d.\n"

	.no_dead_strip	_copy_file_cloning_mode
.subsections_via_symbols
