	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CopyStat
_CopyStat:                              ## @CopyStat
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	leaq	-56(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	-44(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_utime
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	andl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_chmod
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PrintablePath
	movq	%rax, %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_5:
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_chown
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PrintablePath
	movq	%rax, %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_7:
	movl	-52(%rbp), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_chown
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PrintablePath
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting access bits failed for [%s]: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"setting group failed for [%s]: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting user failed for [%s]: %s\n"

	.no_dead_strip	_CopyStat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CopyStat
_CopyStat:                              ; @CopyStat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_9
; %bb.2:
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_9
; %bb.3:
	ldur	d0, [sp, #20]
	str	d0, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_utime
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _S_IRWXU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IRWXU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _S_IRWXG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _S_IRWXG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _S_IRWXO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S_IRWXO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w1, w9, w8
	mov	x0, x19
	bl	_chmod
Lloh9:
	adrp	x23, _stderr@GOTPAGE
Lloh10:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh11:
	adrp	x22, _errno@GOTPAGE
Lloh12:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_PrintablePath
	mov	x21, x0
	ldr	w0, [x22]
	bl	_strerror
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_fprintf
LBB0_5:
	ldr	w2, [sp, #16]
	mov	x0, x19
	mov	w1, #-1
	bl	_chown
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_PrintablePath
	mov	x21, x0
	ldr	w0, [x22]
	bl	_strerror
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_fprintf
LBB0_7:
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #-1
	bl	_chown
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_PrintablePath
	mov	x19, x0
	ldr	w0, [x22]
	bl	_strerror
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting access bits failed for [%s]: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"setting group failed for [%s]: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting user failed for [%s]: %s\n"

	.no_dead_strip	_CopyStat
.subsections_via_symbols
