	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rec_clone_file
_rec_clone_file:                        ## @rec_clone_file
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	callq	_S_ISLNK
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_snprintf
	movl	(%rbx), %edx
	movl	$-1, %r15d
	cmpl	%edx, %eax
	jge	LBB0_33
## %bb.2:
	movq	%r13, %r12
	movq	%r13, %rdi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_readlink
	movl	$-4, %r15d
	testl	%eax, %eax
	js	LBB0_33
## %bb.3:
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	jge	LBB0_33
## %bb.4:
	movl	%eax, %eax
	movb	$0, (%r13,%rax)
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	movl	$-1, %r15d
	cmpl	(%rbx), %eax
	jge	LBB0_33
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_symlink
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_lcopy_attrs
	testq	%rax, %rax
	jns	LBB0_32
## %bb.8:
	movl	$-6, %r15d
	jmp	LBB0_33
LBB0_9:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	callq	_S_ISDIR
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testq	%rax, %rax
	je	LBB0_28
## %bb.10:
	movq	%r15, %r14
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	movl	$-1, %r15d
	cmpl	(%r12), %eax
	jge	LBB0_33
## %bb.11:
	movq	%r14, %rbx
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_vkprintf
	movl	$-2, %r15d
	jmp	LBB0_33
LBB0_28:
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_snprintf
	movl	(%r12), %esi
	movl	$-1, %r15d
	cmpl	%esi, %eax
	jge	LBB0_33
## %bb.29:
	leaq	L_.str(%rip), %rdx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_snprintf
	cmpl	(%r12), %eax
	jge	LBB0_33
## %bb.30:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_link
	testq	%rax, %rax
	js	LBB0_31
LBB0_32:
	xorl	%r15d, %r15d
	jmp	LBB0_33
LBB0_13:
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	cmpl	(%r12), %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_33
## %bb.14:
	leaq	-104(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_getdir
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.18:
	leaq	L_.str(%rip), %r15
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	_PATH_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	(%rbx), %r8
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	cmpl	(%r13), %eax
	jge	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	8(%rbx), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_rec_clone_file
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_20
## %bb.24:
	movq	-104(%rbp), %rdi
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_vkprintf
	movl	$-5, %r15d
	jmp	LBB0_33
LBB0_31:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_vkprintf
	jmp	LBB0_33
LBB0_15:
	movl	$-2, %r15d
	jmp	LBB0_33
LBB0_17:
	xorl	%edi, %edi
LBB0_25:
	callq	_free_filelist
	movq	_PATH_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	movl	$-1, %r15d
	cmpl	(%r13), %eax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_33
## %bb.26:
	movq	%r12, %rdi
	callq	_lcopy_attrs
	testq	%rax, %rax
	jns	LBB0_32
## %bb.27:
	movl	$-7, %r15d
	jmp	LBB0_33
LBB0_21:
	movl	$-1, %r15d
	jmp	LBB0_33
LBB0_23:
	movl	$-3, %r15d
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	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"

L_.str.1:                               ## @.str.1
	.asciz	"symlink (%s, %s) failed. %m\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"link (%s, %s) fail. %m\n"

	.no_dead_strip	_rec_clone_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rec_clone_file
_rec_clone_file:                        ; @rec_clone_file
	.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
	sub	sp, sp, #16
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	ldr	x0, [x3]
	bl	_S_ISLNK
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w1, [x25]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	mov	x4, x21
	bl	_snprintf
	ldr	w2, [x25]
	cmp	w0, w2
	b.ge	LBB0_31
; %bb.2:
	mov	x0, x19
	mov	x1, x24
	bl	_readlink
	mov	x8, x0
	mov	w0, #-4
	tbnz	w8, #31, LBB0_32
; %bb.3:
	ldr	w1, [x25]
	cmp	w8, w1
	b.ge	LBB0_32
; %bb.4:
	strb	wzr, [x24, w8, uxtw]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.5:
	mov	x0, x24
	mov	x1, x19
	bl	_symlink
	tbnz	x0, #63, LBB0_24
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_lcopy_attrs
	tbz	x0, #63, LBB0_15
; %bb.7:
	mov	w0, #-6
	b	LBB0_32
LBB0_8:
	ldr	x0, [x20]
	bl	_S_ISDIR
	ldr	w1, [x25]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.10:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_mkdir
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x3, [x20]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
	mov	w0, #-2
	b	LBB0_32
LBB0_12:
	mov	x0, x19
	mov	x3, x23
	mov	x4, x21
	bl	_snprintf
	ldr	w1, [x25]
	cmp	w0, w1
	b.ge	LBB0_31
; %bb.13:
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x3, x22
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.14:
	mov	x0, x19
	mov	x1, x24
	bl	_link
	tbnz	x0, #63, LBB0_25
LBB0_15:
	mov	w0, #0
	b	LBB0_32
LBB0_16:
	ldr	w1, [x25]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.17:
	sub	x1, x29, #80
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_getdir
	tbnz	w0, #31, LBB0_26
; %bb.18:
	ldur	x26, [x29, #-80]
	cbz	x26, LBB0_27
; %bb.19:
Lloh21:
	adrp	x24, l_.str@PAGE
Lloh22:
	add	x24, x24, l_.str@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	x4, [x26]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x3, x26, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_rec_clone_file
	tbnz	w0, #31, LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x26, [x26, #16]
	cbnz	x26, LBB0_20
; %bb.23:
	ldur	x0, [x29, #-80]
	b	LBB0_28
LBB0_24:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x24
	mov	x3, x19
	bl	_vkprintf
	mov	w0, #-5
	b	LBB0_32
LBB0_25:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x3, x24
	bl	_vkprintf
	mov	w0, #-1
	b	LBB0_32
LBB0_26:
	mov	w0, #-2
	b	LBB0_32
LBB0_27:
	mov	x0, #0
LBB0_28:
	bl	_free_filelist
	ldr	w1, [x25]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.29:
	mov	x0, x19
	mov	x1, x20
	bl	_lcopy_attrs
	tbz	x0, #63, LBB0_15
; %bb.30:
	mov	w0, #-7
	b	LBB0_32
LBB0_31:
	mov	w0, #-1
LBB0_32:
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.33:
	sub	sp, x29, #64
	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_34:
	mov	w0, #-3
	b	LBB0_32
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.asciz	"symlink (%s, %s) failed. %m\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"link (%s, %s) fail. %m\n"

	.no_dead_strip	_rec_clone_file
.subsections_via_symbols
