	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp22_mode_reconfigure
_mvpp22_mode_reconfigure:               ## @mvpp22_mode_reconfigure
	.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
	callq	_mvpp2_mac_reset_assert
	movq	%rbx, %rdi
	callq	_mvpp22_pcs_reset_assert
	movq	%rbx, %rdi
	callq	_mvpp22_comphy_init
	movq	%rbx, %rdi
	callq	_mvpp22_gop_init
	movq	%rbx, %rdi
	callq	_mvpp22_pcs_reset_deassert
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	_MVPP22_XLG_CTRL3_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_MVPP22_XLG_CTRL3_MACMODESELECT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_MVPP22_XLG_CTRL3_MACMODESELECT_GMAC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MVPP22_XLG_CTRL3_MACMODESELECT_10G@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %r14d
	movq	(%r15), %rsi
	addq	16(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	cmpq	$0, (%rbx)
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_gmac_max_rx_size_set     ## TAILCALL
LBB0_5:
	movl	8(%rbx), %edi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_xlg_max_rx_size_set      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_XLG_CTRL3_REG,8,3       ## @MVPP22_XLG_CTRL3_REG
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_MASK,4,2 ## @MVPP22_XLG_CTRL3_MACMODESELECT_MASK
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_10G,4,2 ## @MVPP22_XLG_CTRL3_MACMODESELECT_10G
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_GMAC,4,2 ## @MVPP22_XLG_CTRL3_MACMODESELECT_GMAC
	.no_dead_strip	_mvpp22_mode_reconfigure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp22_mode_reconfigure
_mvpp22_mode_reconfigure:               ; @mvpp22_mode_reconfigure
	.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
	bl	_mvpp2_mac_reset_assert
	mov	x0, x19
	bl	_mvpp22_pcs_reset_assert
	mov	x0, x19
	bl	_mvpp22_comphy_init
	mov	x0, x19
	bl	_mvpp22_gop_init
	mov	x0, x19
	bl	_mvpp22_pcs_reset_deassert
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _MVPP22_XLG_CTRL3_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MVPP22_XLG_CTRL3_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _MVPP22_XLG_CTRL3_MACMODESELECT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP22_XLG_CTRL3_MACMODESELECT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w0, [x19, #8]
	bl	_mvpp2_is_xlg
Lloh5:
	adrp	x8, _MVPP22_XLG_CTRL3_MACMODESELECT_GMAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MVPP22_XLG_CTRL3_MACMODESELECT_GMAC@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MVPP22_XLG_CTRL3_MACMODESELECT_10G@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MVPP22_XLG_CTRL3_MACMODESELECT_10G@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w0, w8, w21
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	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	_mvpp2_gmac_max_rx_size_set
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_mvpp2_is_xlg
	cbz	x0, LBB0_2
; %bb.4:
	mov	x0, x19
	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	_mvpp2_xlg_max_rx_size_set
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_XLG_CTRL3_REG,8,3       ; @MVPP22_XLG_CTRL3_REG
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_MASK,4,2 ; @MVPP22_XLG_CTRL3_MACMODESELECT_MASK
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_10G,4,2 ; @MVPP22_XLG_CTRL3_MACMODESELECT_10G
	.comm	_MVPP22_XLG_CTRL3_MACMODESELECT_GMAC,4,2 ; @MVPP22_XLG_CTRL3_MACMODESELECT_GMAC
	.no_dead_strip	_mvpp22_mode_reconfigure
.subsections_via_symbols
