	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_370_xp_irq_mask
_armada_370_xp_irq_mask:                ## @armada_370_xp_irq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_irqd_to_hwirq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_is_percpu_irq
	testl	%eax, %eax
	movq	_per_cpu_int_base@GOTPCREL(%rip), %rax
	cmoveq	_main_int_base@GOTPCREL(%rip), %rax
	movq	_ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPCREL(%rip), %rcx
	cmoveq	_ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_main_int_base,8,3              ## @main_int_base
	.comm	_ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS,8,3 ## @ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS
	.comm	_per_cpu_int_base,8,3           ## @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_SET_MASK_OFFS,8,3 ## @ARMADA_370_XP_INT_SET_MASK_OFFS
	.no_dead_strip	_armada_370_xp_irq_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_370_xp_irq_mask
_armada_370_xp_irq_mask:                ; @armada_370_xp_irq_mask
	.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
	bl	_irqd_to_hwirq
	mov	x19, x0
	bl	_is_percpu_irq
Lloh0:
	adrp	x8, _main_int_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _main_int_base@GOTPAGEOFF]
Lloh2:
	adrp	x9, _per_cpu_int_base@GOTPAGE
Lloh3:
	ldr	x9, [x9, _per_cpu_int_base@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
Lloh4:
	adrp	x9, _ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS@GOTPAGEOFF]
Lloh6:
	adrp	x10, _ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ARMADA_370_XP_INT_SET_MASK_OFFS@GOTPAGEOFF]
	ldr	x8, [x8]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_main_int_base,8,3              ; @main_int_base
	.comm	_ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS,8,3 ; @ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS
	.comm	_per_cpu_int_base,8,3           ; @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_SET_MASK_OFFS,8,3 ; @ARMADA_370_XP_INT_SET_MASK_OFFS
	.no_dead_strip	_armada_370_xp_irq_mask
.subsections_via_symbols
