	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp22_gop_unmask_irq
_mvpp22_gop_unmask_irq:                 ## @mvpp22_gop_unmask_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rdi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	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
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MVPP22_XLG_EXT_INT_MASK@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_MVPP22_XLG_EXT_INT_MASK_GIG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MVPP22_XLG_EXT_INT_MASK_XLG@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %r14d
	movq	(%r15), %rsi
	addq	16(%rbx), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.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
	.no_dead_strip	_mvpp22_gop_unmask_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_unmask_irq
_mvpp22_gop_unmask_irq:                 ; @mvpp22_gop_unmask_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0]
	bl	_phy_interface_mode_is_rgmii
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_phy_interface_mode_is_8023z
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x20, _MVPP22_GMAC_INT_SUM_MASK@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MVPP22_GMAC_INT_SUM_MASK@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _MVPP22_GMAC_INT_SUM_MASK_LINK_STAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MVPP22_GMAC_INT_SUM_MASK_LINK_STAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x21, _MVPP22_XLG_EXT_INT_MASK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MVPP22_XLG_EXT_INT_MASK@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x0, [x19]
	bl	_mvpp2_is_xlg
Lloh10:
	adrp	x8, _MVPP22_XLG_EXT_INT_MASK_GIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MVPP22_XLG_EXT_INT_MASK_GIG@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MVPP22_XLG_EXT_INT_MASK_XLG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MVPP22_XLG_EXT_INT_MASK_XLG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.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
	.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
	.no_dead_strip	_mvpp22_gop_unmask_irq
.subsections_via_symbols
