	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_mac_link_down
_mvpp2_mac_link_down:                   ## @mvpp2_mac_link_down
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	(%rdi), %edi
	callq	_to_net_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_phylink_autoneg_inband
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	movq	_MVPP22_XLG_CTRL0_REG@GOTPCREL(%rip), %r15
	cmoveq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r15
	movq	_MVPP22_XLG_CTRL0_FORCE_LINK_PASS@GOTPCREL(%rip), %r12
	cmoveq	_MVPP2_GMAC_FORCE_LINK_PASS@GOTPCREL(%rip), %r12
	movq	_MVPP22_XLG_CTRL0_FORCE_LINK_DOWN@GOTPCREL(%rip), %r13
	cmoveq	_MVPP2_GMAC_FORCE_LINK_DOWN@GOTPCREL(%rip), %r13
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	(%r12), %edi
	notl	%edi
	andl	%eax, %edi
	orl	(%r13), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%rbx, %rdi
	callq	_mvpp2_egress_disable
	movq	%rbx, %rdi
	callq	_mvpp2_ingress_disable
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_port_disable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ## @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL0_FORCE_LINK_PASS,4,2 ## @MVPP22_XLG_CTRL0_FORCE_LINK_PASS
	.comm	_MVPP22_XLG_CTRL0_FORCE_LINK_DOWN,4,2 ## @MVPP22_XLG_CTRL0_FORCE_LINK_DOWN
	.comm	_MVPP2_GMAC_AUTONEG_CONFIG,8,3  ## @MVPP2_GMAC_AUTONEG_CONFIG
	.comm	_MVPP2_GMAC_FORCE_LINK_PASS,4,2 ## @MVPP2_GMAC_FORCE_LINK_PASS
	.comm	_MVPP2_GMAC_FORCE_LINK_DOWN,4,2 ## @MVPP2_GMAC_FORCE_LINK_DOWN
	.no_dead_strip	_mvpp2_mac_link_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_mac_link_down
_mvpp2_mac_link_down:                   ; @mvpp2_mac_link_down
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	ldr	w0, [x0]
	bl	_to_net_dev
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x22
	bl	_phylink_autoneg_inband
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_mvpp2_is_xlg
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MVPP22_XLG_CTRL0_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP22_XLG_CTRL0_REG@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x10, x9, eq
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh4:
	adrp	x8, _MVPP2_GMAC_FORCE_LINK_PASS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MVPP2_GMAC_FORCE_LINK_PASS@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MVPP22_XLG_CTRL0_FORCE_LINK_PASS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MVPP22_XLG_CTRL0_FORCE_LINK_PASS@GOTPAGEOFF]
	csel	x22, x8, x9, eq
Lloh8:
	adrp	x8, _MVPP2_GMAC_FORCE_LINK_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MVPP2_GMAC_FORCE_LINK_DOWN@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MVPP22_XLG_CTRL0_FORCE_LINK_DOWN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MVPP22_XLG_CTRL0_FORCE_LINK_DOWN@GOTPAGEOFF]
	csel	x23, x8, x9, eq
	bl	_readl
	ldr	w8, [x22]
	bic	w8, w0, w8
	ldr	w9, [x23]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	bl	_mvpp2_egress_disable
	mov	x0, x19
	bl	_mvpp2_ingress_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mvpp2_port_disable
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ; @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL0_FORCE_LINK_PASS,4,2 ; @MVPP22_XLG_CTRL0_FORCE_LINK_PASS
	.comm	_MVPP22_XLG_CTRL0_FORCE_LINK_DOWN,4,2 ; @MVPP22_XLG_CTRL0_FORCE_LINK_DOWN
	.comm	_MVPP2_GMAC_AUTONEG_CONFIG,8,3  ; @MVPP2_GMAC_AUTONEG_CONFIG
	.comm	_MVPP2_GMAC_FORCE_LINK_PASS,4,2 ; @MVPP2_GMAC_FORCE_LINK_PASS
	.comm	_MVPP2_GMAC_FORCE_LINK_DOWN,4,2 ; @MVPP2_GMAC_FORCE_LINK_DOWN
	.no_dead_strip	_mvpp2_mac_link_down
.subsections_via_symbols
