	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp22_gop_mask_irq
_mvpp22_gop_mask_irq:                   ## @mvpp22_gop_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_MVPP22_XLG_EXT_INT_MASK@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_XLG_EXT_INT_MASK_XLG@GOTPCREL(%rip), %rcx
	movq	_MVPP22_XLG_EXT_INT_MASK_GIG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_6:
	movq	_MVPP22_GMAC_INT_SUM_MASK@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_GMAC_INT_SUM_MASK_LINK_STAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_XLG_EXT_INT_MASK,8,3    ## @MVPP22_XLG_EXT_INT_MASK
	.comm	_MVPP22_XLG_EXT_INT_MASK_XLG,4,2 ## @MVPP22_XLG_EXT_INT_MASK_XLG
	.comm	_MVPP22_XLG_EXT_INT_MASK_GIG,4,2 ## @MVPP22_XLG_EXT_INT_MASK_GIG
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP22_GMAC_INT_SUM_MASK,8,3   ## @MVPP22_GMAC_INT_SUM_MASK
	.comm	_MVPP22_GMAC_INT_SUM_MASK_LINK_STAT,4,2 ## @MVPP22_GMAC_INT_SUM_MASK_LINK_STAT
	.no_dead_strip	_mvpp22_gop_mask_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp22_gop_mask_irq
_mvpp22_gop_mask_irq:                   ; @mvpp22_gop_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
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _MVPP22_XLG_EXT_INT_MASK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MVPP22_XLG_EXT_INT_MASK@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _MVPP22_XLG_EXT_INT_MASK_XLG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP22_XLG_EXT_INT_MASK_XLG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MVPP22_XLG_EXT_INT_MASK_GIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MVPP22_XLG_EXT_INT_MASK_GIG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_phy_interface_mode_is_rgmii
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_phy_interface_mode_is_8023z
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x20, _MVPP22_GMAC_INT_SUM_MASK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MVPP22_GMAC_INT_SUM_MASK@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh13:
	adrp	x8, _MVPP22_GMAC_INT_SUM_MASK_LINK_STAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MVPP22_GMAC_INT_SUM_MASK_LINK_STAT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_XLG_EXT_INT_MASK,8,3    ; @MVPP22_XLG_EXT_INT_MASK
	.comm	_MVPP22_XLG_EXT_INT_MASK_XLG,4,2 ; @MVPP22_XLG_EXT_INT_MASK_XLG
	.comm	_MVPP22_XLG_EXT_INT_MASK_GIG,4,2 ; @MVPP22_XLG_EXT_INT_MASK_GIG
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP22_GMAC_INT_SUM_MASK,8,3   ; @MVPP22_GMAC_INT_SUM_MASK
	.comm	_MVPP22_GMAC_INT_SUM_MASK_LINK_STAT,4,2 ; @MVPP22_GMAC_INT_SUM_MASK_LINK_STAT
	.no_dead_strip	_mvpp22_gop_mask_irq
.subsections_via_symbols
