	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copymodes
_copymodes:                             ## @copymodes
	.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	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r13
	movl	(%rsi), %r14d
	movq	8(%rsi), %r15
	movl	16(%rsi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	20(%rsi), %ebx
	movl	24(%rsi), %edx
	movl	28(%rsi), %esi
	movl	%r12d, %edi
	callq	_fchown
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	_S_ISUID@GOTPCREL(%rip), %rax
	movq	_S_ISGID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_8
LBB0_1:
	movl	$18, %edi
	callq	_umask
	movl	%eax, %ebx
	movq	_DEFFILEMODE@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	notl	%esi
	andl	(%rax), %esi
	movl	%r12d, %edi
	callq	_fchmod
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.2:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_umask                          ## TAILCALL
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_maybe_warn
LBB0_7:
	movq	_S_ISUID@GOTPCREL(%rip), %rax
	movq	_S_ISGID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%esi, %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_8:
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRWXG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	andl	%r14d, %esi
	movl	%r12d, %edi
	callq	_fchmod
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_maybe_warn
LBB0_10:
	movl	%ebx, -56(%rbp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movl	%r12d, %edi
	callq	_futimens
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	callq	_maybe_warn
LBB0_12:
	testq	%r15, %r15
	je	LBB0_15
## %bb.13:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_fchflags
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_maybe_warn
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFFILEMODE,4,2                ## @DEFFILEMODE
	.comm	_errno,8,3                      ## @errno
	.comm	_EPERM,8,3                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't fchown: %s"

	.comm	_S_ISUID,4,2                    ## @S_ISUID
	.comm	_S_ISGID,4,2                    ## @S_ISGID
	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
L_.str.1:                               ## @.str.1
	.asciz	"couldn't fchmod: %s"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't futimens: %s"

L_.str.3:                               ## @.str.3
	.asciz	"couldn't fchflags: %s"

	.no_dead_strip	_copymodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copymodes
_copymodes:                             ; @copymodes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	w22, [x1]
	ldr	x21, [x1, #8]
	ldr	d8, [x1, #16]
	ldp	w2, w1, [x1, #24]
	mov	x0, x20
	bl	_fchown
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _S_ISUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_ISUID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_ISGID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_ISGID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_3:
	mov	w0, #18
	bl	_umask
	mov	x19, x0
Lloh6:
	adrp	x8, _DEFFILEMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFFILEMODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w1, w8, w0
	mov	x0, x20
	bl	_fchmod
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_umask
LBB0_4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _EPERM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_maybe_warn
LBB0_6:
Lloh17:
	adrp	x8, _S_ISUID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_ISUID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _S_ISGID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _S_ISGID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w22, w22, w8
LBB0_7:
Lloh23:
	adrp	x9, _S_IRWXU@GOTPAGE
Lloh24:
	ldr	x9, [x9, _S_IRWXU@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _S_IRWXO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _S_IRWXO@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w1, w8, w22
	mov	x0, x20
	bl	_fchmod
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_maybe_warn
LBB0_9:
	rev64.2s	v0, v8
	str	d0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_futimens
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_maybe_warn
LBB0_11:
	cbz	x21, LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	bl	_fchflags
	tbz	x0, #63, LBB0_14
; %bb.13:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_maybe_warn
LBB0_14:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFFILEMODE,4,2                ; @DEFFILEMODE
	.comm	_errno,8,3                      ; @errno
	.comm	_EPERM,8,3                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't fchown: %s"

	.comm	_S_ISUID,4,2                    ; @S_ISUID
	.comm	_S_ISGID,4,2                    ; @S_ISGID
	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
l_.str.1:                               ; @.str.1
	.asciz	"couldn't fchmod: %s"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't futimens: %s"

l_.str.3:                               ; @.str.3
	.asciz	"couldn't fchflags: %s"

	.no_dead_strip	_copymodes
.subsections_via_symbols
