	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_link_status_isr
_mvpp2_link_status_isr:                 ## @mvpp2_link_status_isr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	32(%rsi), %r14
	movq	%rsi, %rdi
	callq	_mvpp22_gop_mask_irq
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	8(%rbx), %rdi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_8:
	movq	_MVPP22_GMAC_INT_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_GMAC_INT_STAT_LINK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.9:
	movq	_MVPP2_GMAC_STATUS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_MVPP2_GMAC_STATUS0_LINK_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	8(%rbx), %rdi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MVPP22_XLG_INT_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_XLG_INT_STAT_LINK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_MVPP22_XLG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_XLG_STATUS_LINK_UP@GOTPCREL(%rip), %rcx
LBB0_10:
	testl	%eax, (%rcx)
	sete	%r15b
	setne	%al
	movb	$1, %r12b
	jmp	LBB0_11
LBB0_3:
	movb	$1, %r15b
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_11:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movzbl	%al, %esi
	callq	_phylink_mac_change
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	sete	%al
	xorb	$1, %r12b
	orb	%al, %r12b
	jne	LBB0_17
## %bb.14:
	testb	%r15b, %r15b
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_mvpp2_ingress_disable
	movq	%rbx, %rdi
	callq	_mvpp2_egress_disable
	movq	%rbx, %rdi
	callq	_mvpp2_interrupts_disable
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	callq	_mvpp2_interrupts_enable
	movq	%rbx, %rdi
	callq	_mvpp2_egress_enable
	movq	%rbx, %rdi
	callq	_mvpp2_ingress_enable
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r14, %rdi
	callq	_netif_tx_wake_all_queues
LBB0_17:
	movq	%rbx, %rdi
	callq	_mvpp22_gop_unmask_irq
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_XLG_INT_STAT,8,3        ## @MVPP22_XLG_INT_STAT
	.comm	_MVPP22_XLG_INT_STAT_LINK,4,2   ## @MVPP22_XLG_INT_STAT_LINK
	.comm	_MVPP22_XLG_STATUS,8,3          ## @MVPP22_XLG_STATUS
	.comm	_MVPP22_XLG_STATUS_LINK_UP,4,2  ## @MVPP22_XLG_STATUS_LINK_UP
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP22_GMAC_INT_STAT,8,3       ## @MVPP22_GMAC_INT_STAT
	.comm	_MVPP22_GMAC_INT_STAT_LINK,4,2  ## @MVPP22_GMAC_INT_STAT_LINK
	.comm	_MVPP2_GMAC_STATUS0,8,3         ## @MVPP2_GMAC_STATUS0
	.comm	_MVPP2_GMAC_STATUS0_LINK_UP,4,2 ## @MVPP2_GMAC_STATUS0_LINK_UP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mvpp2_link_status_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_link_status_isr
_mvpp2_link_status_isr:                 ; @mvpp2_link_status_isr
	.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, x1
	ldr	x20, [x1, #32]
	mov	x0, x1
	bl	_mvpp22_gop_mask_irq
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_1:
	ldr	x0, [x19, #8]
	bl	_phy_interface_mode_is_rgmii
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_phy_interface_mode_is_8023z
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
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_11
LBB0_4:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _MVPP22_GMAC_INT_STAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVPP22_GMAC_INT_STAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _MVPP22_GMAC_INT_STAT_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP22_GMAC_INT_STAT_LINK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _MVPP2_GMAC_STATUS0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MVPP2_GMAC_STATUS0@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh12:
	adrp	x8, _MVPP2_GMAC_STATUS0_LINK_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_LINK_UP@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_mvpp2_is_xlg
	cbz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19, #24]
Lloh14:
	adrp	x9, _MVPP22_XLG_INT_STAT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MVPP22_XLG_INT_STAT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh17:
	adrp	x8, _MVPP22_XLG_INT_STAT_LINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MVPP22_XLG_INT_STAT_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x9, _MVPP22_XLG_STATUS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MVPP22_XLG_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _MVPP22_XLG_STATUS_LINK_UP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MVPP22_XLG_STATUS_LINK_UP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w21, eq
	cset	w1, ne
	mov	w22, #1
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
LBB0_10:
	bl	_phylink_mac_change
	b	LBB0_16
LBB0_11:
	mov	w22, #0
	mov	w1, #0
	mov	w21, #1
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_10
LBB0_12:
	mov	x0, x20
	bl	_netif_running
	cmp	w0, #0
	cset	w8, eq
	eor	w9, w22, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_16
; %bb.13:
	tbz	w21, #0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_mvpp2_ingress_disable
	mov	x0, x19
	bl	_mvpp2_egress_disable
	mov	x0, x19
	bl	_mvpp2_interrupts_disable
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_mvpp2_interrupts_enable
	mov	x0, x19
	bl	_mvpp2_egress_enable
	mov	x0, x19
	bl	_mvpp2_ingress_enable
	mov	x0, x20
	bl	_netif_carrier_on
	mov	x0, x20
	bl	_netif_tx_wake_all_queues
LBB0_16:
	mov	x0, x19
	bl	_mvpp22_gop_unmask_irq
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_XLG_INT_STAT,8,3        ; @MVPP22_XLG_INT_STAT
	.comm	_MVPP22_XLG_INT_STAT_LINK,4,2   ; @MVPP22_XLG_INT_STAT_LINK
	.comm	_MVPP22_XLG_STATUS,8,3          ; @MVPP22_XLG_STATUS
	.comm	_MVPP22_XLG_STATUS_LINK_UP,4,2  ; @MVPP22_XLG_STATUS_LINK_UP
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP22_GMAC_INT_STAT,8,3       ; @MVPP22_GMAC_INT_STAT
	.comm	_MVPP22_GMAC_INT_STAT_LINK,4,2  ; @MVPP22_GMAC_INT_STAT_LINK
	.comm	_MVPP2_GMAC_STATUS0,8,3         ; @MVPP2_GMAC_STATUS0
	.comm	_MVPP2_GMAC_STATUS0_LINK_UP,4,2 ; @MVPP2_GMAC_STATUS0_LINK_UP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mvpp2_link_status_isr
.subsections_via_symbols
