	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xicp_mask
_xicp_mask:                             ## @xicp_mask
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movq	_MAX_XICP_IRQS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_rtas_exists
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	-20(%rbp), %r8
	movl	$1, %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_rtas_call_method
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XICP_IRQS,4,2              ## @MAX_XICP_IRQS
	.comm	_OPAL_SET_XIVE,4,2              ## @OPAL_SET_XIVE
	.no_dead_strip	_xicp_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xicp_mask
_xicp_mask:                             ; @xicp_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_device_get_softc
Lloh0:
	adrp	x8, _MAX_XICP_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_XICP_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_rtas_exists
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	add	x4, sp, #12
	mov	w1, #1
	mov	w2, #1
	mov	x3, x19
	bl	_rtas_call_method
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XICP_IRQS,4,2              ; @MAX_XICP_IRQS
	.comm	_OPAL_SET_XIVE,4,2              ; @OPAL_SET_XIVE
	.no_dead_strip	_xicp_mask
.subsections_via_symbols
