	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mvsw61xx_reset
__mvsw61xx_reset:                       ## @_mvsw61xx_reset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_get_state
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_CONTROL@GOTPCREL(%rip), %r14
	movq	_MV_PORTCTRL_FORWARDING@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	(%r15), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_sw16
	incl	%r13d
	cmpl	(%r12), %r13d
	jl	LBB0_2
LBB0_3:
	movq	_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_MV_GLOBALREG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	%rax, %rbx
	movq	_MV_CONTROL_RESET@GOTPCREL(%rip), %r14
	orq	(%r14), %rbx
	movl	(%r15), %edi
	callq	_MV_GLOBALREG
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_sw16
	movl	(%r15), %edi
	callq	_MV_GLOBALREG
	movq	(%r14), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_mvsw61xx_wait_mask_s
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_MII_MV_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MV_SPEC_ENERGY_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MV_SPEC_MDI_CROSS_AUTO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MV_SPEC_DOWNSHIFT_COUNTER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_mvsw61xx_mdio_write
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_mvsw61xx_mdio_write
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$32, %r14
	cmpq	%rax, %r13
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%r14)
	movups	%xmm0, (%rax,%r14)
	movq	_PHYCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_PHYCTL_FC_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movq	_MV_PHYCTL_FC_DISABLE@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_sw16
	movq	_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sw16
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$4, %r13
	jbe	LBB0_8
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$5, %r13
	jb	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_MV_IDENT_VALUE_6176@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	_MV_PORT_STATUS_CMODE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_MV_PORT_STATUS_CMODE_100BASE_X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MV_PORT_STATUS_CMODE_1000BASE_X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MV_PORT_STATUS_CMODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_mvsw61xx_enable_serdes
	jmp	LBB0_20
LBB0_10:
	movl	4(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_26
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_21
## %bb.12:
	xorl	%esi, %esi
	jmp	LBB0_23
LBB0_9:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_21:
	andl	$-4, %edx
	leaq	128(%rax), %rdi
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -128(%rdi)
	movups	%xmm0, -120(%rdi)
	movups	%xmm0, -104(%rdi)
	movl	$0, -88(%rdi)
	movups	%xmm0, -80(%rdi)
	movups	%xmm0, -64(%rdi)
	movl	$0, -48(%rdi)
	movups	%xmm0, -40(%rdi)
	movups	%xmm0, -24(%rdi)
	movl	$0, -8(%rdi)
	addq	$4, %rsi
	movups	%xmm0, (%rdi)
	movups	%xmm0, 16(%rdi)
	addq	$160, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_22
LBB0_23:
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.24:
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rax,%rdx,8), %rax
	addq	$8, %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -8(%rax,%rdx)
	movups	%xmm0, (%rax,%rdx)
	movups	%xmm0, 16(%rax,%rdx)
	addq	$40, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_25
LBB0_26:
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 8(%rax)
	movq	%r12, %rdi
	callq	_mvsw61xx_update_state
	cmpl	$0, (%r12)
	jle	LBB0_29
## %bb.27:
	movq	_MV_PORTCTRL_FORWARDING@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	movq	_CONTROL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sr16
	movq	%rax, %r14
	orq	(%r15), %r14
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_MV_PORTREG
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_sw16
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_28
LBB0_29:
	xorl	%ebx, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTROL,4,2                    ## @CONTROL
	.comm	_MV_PORTCTRL_FORWARDING,8,3     ## @MV_PORTCTRL_FORWARDING
	.comm	_MV_CONTROL_RESET,8,3           ## @MV_CONTROL_RESET
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_PHYCTL,4,2                     ## @PHYCTL
	.comm	_MV_PHYCTL_FC_MASK,8,3          ## @MV_PHYCTL_FC_MASK
	.comm	_MV_PHYCTL_FC_DISABLE,8,3       ## @MV_PHYCTL_FC_DISABLE
	.comm	_ASSOC,4,2                      ## @ASSOC
	.comm	_MII_MV_SPEC_CTRL,4,2           ## @MII_MV_SPEC_CTRL
	.comm	_MV_SPEC_MDI_CROSS_AUTO,4,2     ## @MV_SPEC_MDI_CROSS_AUTO
	.comm	_MV_SPEC_ENERGY_DETECT,4,2      ## @MV_SPEC_ENERGY_DETECT
	.comm	_MV_SPEC_DOWNSHIFT_COUNTER,4,2  ## @MV_SPEC_DOWNSHIFT_COUNTER
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_MV_IDENT_VALUE_6176,8,3        ## @MV_IDENT_VALUE_6176
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_MV_PORT_STATUS_CMODE_MASK,8,3  ## @MV_PORT_STATUS_CMODE_MASK
	.comm	_MV_PORT_STATUS_CMODE_100BASE_X,8,3 ## @MV_PORT_STATUS_CMODE_100BASE_X
	.comm	_MV_PORT_STATUS_CMODE_1000BASE_X,8,3 ## @MV_PORT_STATUS_CMODE_1000BASE_X
	.comm	_MV_PORT_STATUS_CMODE_SGMII,8,3 ## @MV_PORT_STATUS_CMODE_SGMII
	.no_dead_strip	__mvsw61xx_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mvsw61xx_reset
__mvsw61xx_reset:                       ; @_mvsw61xx_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	bl	_get_state
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x24, _CONTROL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MV_PORTCTRL_FORWARDING@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MV_PORTCTRL_FORWARDING@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	x8, [x25]
	bic	x23, x0, x8
	ldr	w0, [x24]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_sw16
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x24]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh4:
	adrp	x23, _MV_CONTROL_RESET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MV_CONTROL_RESET@GOTPAGEOFF]
	ldr	x8, [x23]
	orr	x22, x8, x0
	ldr	w0, [x24]
	bl	_MV_GLOBALREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_sw16
	ldr	w0, [x24]
	bl	_MV_GLOBALREG
	mov	x1, x0
	ldr	x2, [x23]
	mov	x0, x19
	mov	w3, #0
	bl	_mvsw61xx_wait_mask_s
	tbnz	x0, #63, LBB0_22
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x26, #0
	mov	x22, #0
Lloh6:
	adrp	x27, _PHYCTL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PHYCTL@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh8:
	adrp	x8, _MII_MV_SPEC_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_MV_SPEC_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MV_SPEC_MDI_CROSS_AUTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MV_SPEC_MDI_CROSS_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MV_SPEC_ENERGY_DETECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MV_SPEC_ENERGY_DETECT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MV_SPEC_DOWNSHIFT_COUNTER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MV_SPEC_DOWNSHIFT_COUNTER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_mvsw61xx_mdio_write
Lloh20:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_mvsw61xx_mdio_write
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x26, x26, #32
	cmp	x22, x8
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	add	x8, x8, x26
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	ldr	w0, [x27]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh35:
	adrp	x8, _MV_PHYCTL_FC_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MV_PHYCTL_FC_MASK@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	bic	x8, x0, x8
Lloh38:
	adrp	x9, _MV_PHYCTL_FC_DISABLE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MV_PHYCTL_FC_DISABLE@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	orr	x23, x8, x9
	ldr	w0, [x27]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_sw16
Lloh41:
	adrp	x8, _ASSOC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ASSOC@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	lsl	w8, w28, w22
	sxtw	x2, w8
	mov	x0, x19
	bl	_sw16
	cbz	w21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x22, #4
	b.ls	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w21, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x22, #5
	b.lo	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
Lloh44:
	adrp	x9, _MV_IDENT_VALUE_6176@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MV_IDENT_VALUE_6176@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh47:
	adrp	x8, _STATUS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
Lloh50:
	adrp	x8, _MV_PORT_STATUS_CMODE_MASK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MV_PORT_STATUS_CMODE_MASK@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh53:
	adrp	x9, _MV_PORT_STATUS_CMODE_100BASE_X@GOTPAGE
Lloh54:
	ldr	x9, [x9, _MV_PORT_STATUS_CMODE_100BASE_X@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
Lloh56:
	adrp	x10, _MV_PORT_STATUS_CMODE_1000BASE_X@GOTPAGE
Lloh57:
	ldr	x10, [x10, _MV_PORT_STATUS_CMODE_1000BASE_X@GOTPAGEOFF]
Lloh58:
	ldr	x10, [x10]
Lloh59:
	adrp	x11, _MV_PORT_STATUS_CMODE_SGMII@GOTPAGE
Lloh60:
	ldr	x11, [x11, _MV_PORT_STATUS_CMODE_SGMII@GOTPAGEOFF]
Lloh61:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_mvsw61xx_enable_serdes
	b	LBB0_7
LBB0_15:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	ldr	x9, [x20, #40]
	add	x9, x9, #8
	movi.2d	v0, #0000000000000000
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-8]
	stp	q0, q0, [x9]
	add	x9, x9, #40
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #24]
	stur	q0, [x20, #8]
	mov	x0, x19
	bl	_mvsw61xx_update_state
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	w20, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	bl	_sr16
	ldr	x8, [x25]
	orr	x21, x8, x0
	ldr	w0, [x24]
	mov	x1, x20
	bl	_MV_PORTREG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sw16
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_20
LBB0_21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
Lloh62:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTROL,4,2                    ; @CONTROL
	.comm	_MV_PORTCTRL_FORWARDING,8,3     ; @MV_PORTCTRL_FORWARDING
	.comm	_MV_CONTROL_RESET,8,3           ; @MV_CONTROL_RESET
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_PHYCTL,4,2                     ; @PHYCTL
	.comm	_MV_PHYCTL_FC_MASK,8,3          ; @MV_PHYCTL_FC_MASK
	.comm	_MV_PHYCTL_FC_DISABLE,8,3       ; @MV_PHYCTL_FC_DISABLE
	.comm	_ASSOC,4,2                      ; @ASSOC
	.comm	_MII_MV_SPEC_CTRL,4,2           ; @MII_MV_SPEC_CTRL
	.comm	_MV_SPEC_MDI_CROSS_AUTO,4,2     ; @MV_SPEC_MDI_CROSS_AUTO
	.comm	_MV_SPEC_ENERGY_DETECT,4,2      ; @MV_SPEC_ENERGY_DETECT
	.comm	_MV_SPEC_DOWNSHIFT_COUNTER,4,2  ; @MV_SPEC_DOWNSHIFT_COUNTER
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_MV_IDENT_VALUE_6176,8,3        ; @MV_IDENT_VALUE_6176
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_MV_PORT_STATUS_CMODE_MASK,8,3  ; @MV_PORT_STATUS_CMODE_MASK
	.comm	_MV_PORT_STATUS_CMODE_100BASE_X,8,3 ; @MV_PORT_STATUS_CMODE_100BASE_X
	.comm	_MV_PORT_STATUS_CMODE_1000BASE_X,8,3 ; @MV_PORT_STATUS_CMODE_1000BASE_X
	.comm	_MV_PORT_STATUS_CMODE_SGMII,8,3 ; @MV_PORT_STATUS_CMODE_SGMII
	.no_dead_strip	__mvsw61xx_reset
.subsections_via_symbols
