	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setfile
_setfile:                               ## @setfile
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_S_ISUID@GOTPCREL(%rip), %r15
	movq	_S_ISGID@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	(%r15), %eax
	movq	_S_IRWXU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_S_IRWXO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rsi, %rbx
	andl	%eax, (%rsi)
	movq	%rdi, %r14
	movl	20(%rsi), %eax
	movl	%eax, _setfile.tspec(%rip)
	leaq	_setfile.tspec(%rip), %rdx
	movl	16(%rsi), %eax
	movl	%eax, _setfile.tspec+4(%rip)
	movq	_AT_FDCWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_utimensat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_cwarn
LBB0_2:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_chown
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_cwarn
LBB0_6:
	movl	(%r12), %esi
	orl	(%r15), %esi
	notl	%esi
	andl	(%rbx), %esi
	movl	%esi, (%rbx)
	jmp	LBB0_7
LBB0_3:
	movl	(%rbx), %esi
LBB0_7:
	movq	%r14, %rdi
	callq	_chmod
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_cwarn
LBB0_10:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_chflags
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cwarn                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_setfile.tspec,8,2 ## @setfile.tspec
	.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
	.comm	_AT_FDCWD,4,2                   ## @AT_FDCWD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"utimensat: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EPERM,8,3                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"chown: %s"

	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"chmod: %s"

L_.str.3:                               ## @.str.3
	.asciz	"chflags: %s"

	.no_dead_strip	_setfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setfile
_setfile:                               ; @setfile
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _S_ISUID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S_ISUID@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _S_ISGID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _S_ISGID@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh4:
	adrp	x9, _S_IRWXU@GOTPAGE
Lloh5:
	ldr	x9, [x9, _S_IRWXU@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _S_IRWXG@GOTPAGE
Lloh8:
	ldr	x10, [x10, _S_IRWXG@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh9:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh10:
	adrp	x9, _S_IRWXO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _S_IRWXO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x1]
	and	w8, w9, w8
	str	w8, [x1]
	ldr	d0, [x1, #16]
	rev64.2s	v0, v0
Lloh13:
	adrp	x2, _setfile.tspec@PAGE
Lloh14:
	add	x2, x2, _setfile.tspec@PAGEOFF
	str	d0, [x2]
Lloh15:
	adrp	x8, _AT_FDCWD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AT_FDCWD@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w3, #0
	bl	_utimensat
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_cwarn
LBB0_2:
	ldp	w2, w1, [x20, #8]
	mov	x0, x19
	bl	_chown
Lloh20:
	adrp	x23, _errno@GOTPAGE
Lloh21:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x23]
Lloh22:
	adrp	x9, _EPERM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_cwarn
LBB0_5:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w1, w9, w8
	str	w1, [x20]
	b	LBB0_7
LBB0_6:
	ldr	w1, [x20]
LBB0_7:
	mov	x0, x19
	bl	_chmod
Lloh27:
	adrp	x21, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x21, [x21, _EOPNOTSUPP@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x23]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_cwarn
LBB0_10:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_chflags
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x23]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	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_13:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	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
	b	_cwarn
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_setfile.tspec,8,3 ; @setfile.tspec
	.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
	.comm	_AT_FDCWD,4,2                   ; @AT_FDCWD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"utimensat: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EPERM,8,3                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"chown: %s"

	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"chmod: %s"

l_.str.3:                               ; @.str.3
	.asciz	"chflags: %s"

	.no_dead_strip	_setfile
.subsections_via_symbols
