	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_nowerr
_set_nowerr:                            ## @set_nowerr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %esi
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_IDE_DFLAG_NOWERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	orl	%eax, 4(%rdi)
	testl	%esi, %esi
	jne	LBB0_6
LBB0_7:
	movq	_BAD_W_STAT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	notl	%eax
	andl	%eax, 4(%rdi)
	testl	%esi, %esi
	je	LBB0_7
LBB0_6:
	movq	_BAD_R_STAT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IDE_DFLAG_NOWERR,4,2           ## @IDE_DFLAG_NOWERR
	.comm	_BAD_R_STAT,4,2                 ## @BAD_R_STAT
	.comm	_BAD_W_STAT,4,2                 ## @BAD_W_STAT
	.no_dead_strip	_set_nowerr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_nowerr
_set_nowerr:                            ; @set_nowerr
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
Lloh3:
	adrp	x8, _IDE_DFLAG_NOWERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDE_DFLAG_NOWERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w1, LBB0_4
; %bb.3:
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x0, #4]
	mov	w8, #0
Lloh6:
	adrp	x9, _BAD_R_STAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BAD_R_STAT@GOTPAGEOFF]
Lloh8:
	adrp	x10, _BAD_W_STAT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BAD_W_STAT@GOTPAGEOFF]
	cmp	w1, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	w9, [x0]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IDE_DFLAG_NOWERR,4,2           ; @IDE_DFLAG_NOWERR
	.comm	_BAD_R_STAT,4,2                 ; @BAD_R_STAT
	.comm	_BAD_W_STAT,4,2                 ; @BAD_W_STAT
	.no_dead_strip	_set_nowerr
.subsections_via_symbols
