	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_unmaskirq
_set_unmaskirq:                         ## @set_unmaskirq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_IDE_DFLAG_NO_UNMASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpl	$2, %esi
	jb	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_IDE_DFLAG_UNMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %ecx
	testl	%esi, %esi
	cmovel	%edx, %ecx
	movl	%ecx, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DFLAG_NO_UNMASK,4,2        ## @IDE_DFLAG_NO_UNMASK
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IDE_DFLAG_UNMASK,4,2           ## @IDE_DFLAG_UNMASK
	.no_dead_strip	_set_unmaskirq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_unmaskirq
_set_unmaskirq:                         ; @set_unmaskirq
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _IDE_DFLAG_NO_UNMASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IDE_DFLAG_NO_UNMASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w1, #2
	b.lo	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	x8, x0
	mov	w0, #0
Lloh7:
	adrp	x10, _IDE_DFLAG_UNMASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IDE_DFLAG_UNMASK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	bic	w11, w9, w10
	orr	w9, w10, w9
	cmp	w1, #0
	csel	w9, w11, w9, eq
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DFLAG_NO_UNMASK,4,2        ; @IDE_DFLAG_NO_UNMASK
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IDE_DFLAG_UNMASK,4,2           ; @IDE_DFLAG_UNMASK
	.no_dead_strip	_set_unmaskirq
.subsections_via_symbols
