	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_SetReadOnly
_Devices_SetReadOnly:                   ## @Devices_SetReadOnly
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	xorl	%esi, %esi
	movq	_S_IREAD@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_S_IWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	orl	(%rcx), %esi
	callq	_chmod
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IREAD,4,2                    ## @S_IREAD
	.comm	_S_IWRITE,4,2                   ## @S_IWRITE
	.no_dead_strip	_Devices_SetReadOnly
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_SetReadOnly
_Devices_SetReadOnly:                   ; @Devices_SetReadOnly
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _S_IREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_IWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w1, #0
	csel	w9, w9, wzr, eq
	orr	w1, w9, w8
	bl	_chmod
	cmp	x0, #0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IREAD,4,2                    ; @S_IREAD
	.comm	_S_IWRITE,4,2                   ; @S_IWRITE
	.no_dead_strip	_Devices_SetReadOnly
.subsections_via_symbols
