	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpic_mask_irq
_mpic_mask_irq:                         ## @mpic_mask_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_mpic_irq_is_percpu
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_mv_mpic_sc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MPIC_ISM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_MPIC_CPU_WRITE                 ## TAILCALL
LBB0_1:
	movq	_ERR_IRQ@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_2
## %bb.5:
	movq	_mv_mpic_sc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MPIC_ICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_MPIC_WRITE                     ## TAILCALL
LBB0_2:
	movq	_MSI_IRQ@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mpic_mask_irq_err              ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mv_mpic_sc,4,2                 ## @mv_mpic_sc
	.comm	_MPIC_ISM,8,3                   ## @MPIC_ISM
	.comm	_ERR_IRQ,8,3                    ## @ERR_IRQ
	.comm	_MPIC_ICE,4,2                   ## @MPIC_ICE
	.comm	_MSI_IRQ,8,3                    ## @MSI_IRQ
	.comm	_MPIC_INT_LOCAL,8,3             ## @MPIC_INT_LOCAL
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.no_dead_strip	_mpic_mask_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpic_mask_irq
_mpic_mask_irq:                         ; @mpic_mask_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mpic_irq_is_percpu
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _mv_mpic_sc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mv_mpic_sc@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MPIC_ISM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPIC_ISM@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MPIC_CPU_WRITE
LBB0_2:
Lloh6:
	adrp	x8, _ERR_IRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _mv_mpic_sc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mv_mpic_sc@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _MPIC_ICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPIC_ICE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MPIC_WRITE
LBB0_4:
Lloh15:
	adrp	x8, _MSI_IRQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSI_IRQ@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mpic_mask_irq_err
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_mv_mpic_sc,4,2                 ; @mv_mpic_sc
	.comm	_MPIC_ISM,8,3                   ; @MPIC_ISM
	.comm	_ERR_IRQ,8,3                    ; @ERR_IRQ
	.comm	_MPIC_ICE,4,2                   ; @MPIC_ICE
	.comm	_MSI_IRQ,8,3                    ; @MSI_IRQ
	.comm	_MPIC_INT_LOCAL,8,3             ; @MPIC_INT_LOCAL
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.no_dead_strip	_mpic_mask_irq
.subsections_via_symbols
