	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_attrs
_change_attrs:                          ## @change_attrs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_noaction@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%rsi), %esi
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	cmpq	$-1, %rsi
	jne	LBB0_3
## %bb.2:
	cmpl	$-1, %edx
	je	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movq	_CE_NODUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	je	LBB0_16
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_chmod
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
LBB0_10:
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	cmpq	$-1, %rsi
	jne	LBB0_12
## %bb.11:
	cmpl	$-1, %edx
	je	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_chown
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
LBB0_14:
	movq	_CE_NODUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	je	LBB0_16
## %bb.15:
	movq	_UF_NODUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_chflags
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_noaction,8,3                   ## @noaction
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tchmod %o %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"\tchown %u:%u %s\n"

	.comm	_CE_NODUMP,4,2                  ## @CE_NODUMP
L_.str.2:                               ## @.str.2
	.asciz	"\tchflags nodump %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EPERM,8,3                      ## @EPERM
L_.str.3:                               ## @.str.3
	.asciz	"chmod(%s) in change_attrs"

L_.str.4:                               ## @.str.4
	.asciz	"change_attrs couldn't chmod(%s)"

L_.str.5:                               ## @.str.5
	.asciz	"can't chown %s"

	.comm	_UF_NODUMP,4,2                  ## @UF_NODUMP
L_.str.6:                               ## @.str.6
	.asciz	"can't chflags %s NODUMP"

	.no_dead_strip	_change_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_attrs
_change_attrs:                          ; @change_attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _noaction@GOTPAGE
Lloh1:
	ldr	x8, [x8, _noaction@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	stp	x1, x19, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x20, #8]
	ldr	w9, [x20, #16]
	cmn	x8, #1
	ccmn	w9, #1, #0, eq
	b.eq	LBB0_3
; %bb.2:
	stp	x9, x19, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_3:
	ldr	w8, [x20, #20]
Lloh7:
	adrp	x9, _CE_NODUMP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CE_NODUMP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.4:
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_5:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_chmod
	cbz	w0, LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _EPERM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_8:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_warn
LBB0_9:
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
	cmn	x1, #1
	ccmn	w2, #1, #0, eq
	b.eq	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_chown
	cbz	w0, LBB0_12
; %bb.11:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_warn
LBB0_12:
	ldr	w8, [x20, #20]
Lloh24:
	adrp	x9, _CE_NODUMP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CE_NODUMP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
Lloh27:
	adrp	x8, _UF_NODUMP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UF_NODUMP@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_chflags
	cbz	w0, LBB0_15
; %bb.14:
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_warn
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_noaction,8,3                   ; @noaction
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tchmod %o %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"\tchown %u:%u %s\n"

	.comm	_CE_NODUMP,4,2                  ; @CE_NODUMP
l_.str.2:                               ; @.str.2
	.asciz	"\tchflags nodump %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EPERM,8,3                      ; @EPERM
l_.str.3:                               ; @.str.3
	.asciz	"chmod(%s) in change_attrs"

l_.str.4:                               ; @.str.4
	.asciz	"change_attrs couldn't chmod(%s)"

l_.str.5:                               ; @.str.5
	.asciz	"can't chown %s"

	.comm	_UF_NODUMP,4,2                  ; @UF_NODUMP
l_.str.6:                               ; @.str.6
	.asciz	"can't chflags %s NODUMP"

	.no_dead_strip	_change_attrs
.subsections_via_symbols
